Examples of Relationship


Examples of org.objectweb.celtix.ws.addressing.v200408.Relationship

     *
     * @param internal the 2005/08 RelatesToType
     * @return an equivalent 2004/08 Relationship
     */
    public static Relationship convert(RelatesToType internal) {
        Relationship exposed = null;
        if (internal != null) {
            exposed = Names200408.WSA_OBJECT_FACTORY.createRelationship();
            exposed.setValue(internal.getValue());
            String internalRelationshipType = internal.getRelationshipType();
            if (internalRelationshipType != null) {
                QName exposedRelationshipType =
                    Names.WSA_RELATIONSHIP_REPLY.equals(
                                                    internalRelationshipType)
                    ? new QName(Names200408.WSA_NAMESPACE_NAME,
                                Names.WSA_REPLY_NAME)
                    : new QName(internalRelationshipType);
                exposed.setRelationshipType(exposedRelationshipType);
            }
            putAll(exposed.getOtherAttributes(), internal.getOtherAttributes());
        }
        return exposed;
    }
View Full Code Here

Examples of org.openbel.bel.xbel.model.Relationship

        String comment = source.getComment();
        dest.setComment(comment);

        // Set statement relationship, if present on source
        Relationship r = source.getRelationship();
        if (r != null)
            dest.setRelationshipType(fromString(r.value()));

        XBELObject object = source.getObject();
        if (object != null) {
            if (object.isSetStatement()) {
                XBELStatement statement = object.getStatement();
View Full Code Here

Examples of org.openmrs.Relationship

  @ResponseBody
  public Object createNewRelationship(@RequestBody SimpleObject post, HttpServletRequest request,
          HttpServletResponse response) throws ResponseException {
    initRelationshipController();
    validatePost(post);
    Relationship relationship = createRelationshipFromPost(post);
    relationship = service.saveRelationship(relationship);
    return RestUtil.created(response, getRelationshipAsSimpleObject(relationship));
  }
View Full Code Here

Examples of twitter4j.Relationship

            JSONArray list = res.asJSONArray();
            int size = list.length();
            ResponseList<Relationship> relationships = new ResponseListImpl<Relationship>(size, res);
            for (int i = 0; i < size; i++) {
                JSONObject json = list.getJSONObject(i);
                Relationship relationship = new RelationshipJSONImpl(json);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(relationship, json);
                }
                relationships.add(relationship);
            }
View Full Code Here

Examples of weave.config.DataConfig.Relationship

        );
      stmt = conn.prepareStatement(query);
      rs = stmt.executeQuery();
      rs.setFetchSize(SQLResult.FETCH_SIZE);
      while (rs.next())
        result.add(new Relationship(rs.getInt(FIELD_PARENT), rs.getInt(FIELD_CHILD)));
      return result;
    }
    catch (SQLException e)
    {
      if (query != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.