Examples of RelationshipType


Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType

            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance(  );
         RelationshipDocument                                                      relationshipDocument =
            RelationshipDocument.Factory.newInstance(  );

         //add new type
         RelationshipType     relationshipType     = relationshipDocument.addNewRelationship(  );
         RelationshipTypeType relationshipTypeType = relationshipType.addNewType(  );
         XmlObject            relationType         =
            XmlObject.Factory.parse( "<" + ExampleConstants.RELATIONSHIP_RELATION.getPrefix(  ) + ":"
                                     + ExampleConstants.RELATIONSHIP_RELATION.getLocalPart(  ) + " xmlns:"
                                     + ExampleConstants.RELATIONSHIP_RELATION.getPrefix(  ) + "=" + "\""
                                     + ExampleConstants.RELATIONSHIP_RELATION.getNamespaceURI(  ) + "\" />" );
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType

    */
   public void removeRelationship( org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipDocument requestDoc )
   throws Exception
   {
      // get participants of relationship to be removed
      RelationshipType relationshipRemove = requestDoc.getRemoveRelationship(  ).getRelationship(  );

      // get the relationship property from properties set
      // then walk all relationships and compare them with the relationship which needs to be removed.
      // when the match exist the relationship will be removed from the relationship properties list
      // this will genarate realtionshipremoved notification
      org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet(  );
      org.apache.ws.resource.properties.ResourceProperty    resourceProperty = null;
      resourceProperty = resourcePropertySet.get( BusinessprocesstypePropertyQNames.RELATIONSHIP );

      if ( resourceProperty.isEmpty(  ) )
      {
         return;
      }

      for ( int i = 0; i < resourceProperty.size(  ); i++ )
      {
         Object relationObj = resourceProperty.get( i );
         if ( relationObj instanceof RelationshipType )
         {
            RelationshipType relationship = (RelationshipType) relationObj;
            if ( ExampleUtils.CompareRelationships( relationshipRemove, relationship ) )
            {
               resourceProperty.remove( relationObj );

               //continue to walk - you can have more then one this same relationship
View Full Code Here

Examples of org.openbel.framework.common.enums.RelationshipType

     * {@inheritDoc}
     */
    @Override
    public void checkRelationship(final Statement statement)
            throws SemanticWarning {
        RelationshipType r = statement.getRelationshipType();
        Object o = statement.getObject();

        if (o != null) {

            // Relationship must be present.
View Full Code Here

Examples of org.openbel.framework.ws.model.RelationshipType

            Node src = e.getSource(), tgt = e.getTarget();
            if (src == null || tgt == null) {
                final String msg = "edge missing source and target nodes";
                throw new RequestException(msg);
            }
            RelationshipType rel = e.getRelationship();
            if (rel == null) {
                final String msg = "edge missing relationship";
                throw new RequestException(msg);
            }
            if (noLength(src.getLabel())) {
View Full Code Here

Examples of org.openmrs.RelationshipType

  public String getRelationships(@RequestParam Map<String, String> params, HttpServletRequest request)
          throws ResponseException {
    initRelationshipController();
    Person fromPerson = Context.getPersonService().getPersonByUuid(params.get("fromPerson"));
    Person toPerson = Context.getPersonService().getPersonByUuid(params.get("toPerson"));
    RelationshipType rType = Context.getPersonService().getRelationshipTypeByName(params.get("relationshipType"));
    List<Relationship> relationships = service.getRelationships(fromPerson, toPerson, rType);
    ArrayList results = new ArrayList();
    for (Relationship relationship : relationships) {
      results.add(getRelationshipAsSimpleObject(relationship));
    }
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.