Examples of RelationshipDocument


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

            EndpointReferenceType weatherStationEpr = (EndpointReferenceType) propElems[0];
            ResourcePropertySet resourcePropertySet = ((PropertiesResource) this).getResourcePropertySet();
            ResourceProperty resourceProperty = resourcePropertySet.get(WeatherClientConfigPropertyQNames.RELATIONSHIP);

            //define a relationship
            RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();
            RelationshipType relationshipType = InteropRequestUtils.createRelationshipType(relationshipDocument.addNewRelationship());

            //add self as a participant
            RelationshipParticipantType parentRelationshipParticipantType = relationshipType.addNewParticipant();
            XmlBeansEndpointReference xmlEpr = (XmlBeansEndpointReference) this.getEndpointReference();
            EndpointReferenceType configEndpointReferenceType = (EndpointReferenceType) xmlEpr.getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
View Full Code Here

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

        //iterate the relationships
        Iterator iterator = resourceProperty.iterator();
        List removeList = new ArrayList();
        while (iterator.hasNext())
        {
            RelationshipDocument relationshipDocument = (RelationshipDocument) iterator.next();
            RelationshipParticipantType[] participantArray = relationshipDocument.getRelationship().getParticipantArray();

            for (int i = 0; i < participantArray.length; i++)
            {
                RelationshipParticipantType relationshipParticipantType = participantArray[i];
                if (resourceId != null && resourceId.equals(relationshipParticipantType.getResourceId()))
View Full Code Here

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

        //get the request epr
        org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument.AddWeatherStation addWeatherStation = requestDoc.getAddWeatherStation();
        org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType addedEpr = addWeatherStation.getEndpointReference();

        //define a relationship
        RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();


        //define the relationship type
        RelationshipType relationshipType = InteropRequestUtils.createRelationshipType(relationshipDocument.addNewRelationship());


        //add self as a participant
        RelationshipParticipantType parentRelationshipParticipantType = relationshipType.addNewParticipant();
        WeatherStationDirResource resource = (WeatherStationDirResource) getResource();
View Full Code Here

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

     * @param childEpr
     */
    private void addRelation(ResourceProperty resourceProperty, EndpointReferenceType childEpr)
    {
        //define a relationship
        RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();
        RelationshipType relationshipType = InteropRequestUtils.createRelationshipType(relationshipDocument.addNewRelationship());

        //add self as a participant
        RelationshipParticipantType parentRelationshipParticipantType = relationshipType.addNewParticipant();
        XmlBeansEndpointReference dirEpr = (XmlBeansEndpointReference) getEndpointReference();
        EndpointReferenceType dirEndpointReferenceType = (EndpointReferenceType) dirEpr.getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
View Full Code Here

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

            /*----------------- MUWS Relationships props -----------------*/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RELATIONSHIP);
            resourceProperty.addChangeListener(relationshipCapability);//add for management events

            RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();

            //add new type
            RelationshipType relationshipType = null;
            try
            {
                relationshipType = relationshipDocument.addNewRelationship();
                RelationshipTypeType relationshipTypeType = relationshipType.addNewType();
                XmlObject relationType = XmlObject.Factory.parse("<" + RELATIONSHIP_RELATION.getPrefix() + ":" + RELATIONSHIP_RELATION.getLocalPart() + " xmlns:" + RELATIONSHIP_RELATION.getPrefix() + "=" + "\"" + RELATIONSHIP_RELATION.getNamespaceURI() + "\" />");
                XmlBeanUtils.addChildElement(relationshipTypeType, relationType);
            }
            catch (XmlException e)
View Full Code Here

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

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
         resourceProperty = resourcePropertySet.get( ApplicationPropertyQNames.RELATIONSHIP );
         org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship    =
            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(  ) + "=" + "\""
View Full Code Here

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

    resourceProperty.add(prop_resourcetype);

    // this is to satisfy the init
    resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);
    org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = 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() + "\" />");
        XmlBeanUtils.addChildElement(relationshipTypeType, relationType);
       prop_relationship.setRelationship(relationshipType);
    resourceProperty.add(prop_relationship);
View Full Code Here

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

            /*----------------- MUWS Relationships props -----------------*/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RELATIONSHIP);
            resourceProperty.addChangeListener(relationshipCapability);//add for management events

            RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();

            //add new type
            RelationshipType relationshipType = null;
            try
            {
                relationshipType = relationshipDocument.addNewRelationship();
                RelationshipTypeType relationshipTypeType = relationshipType.addNewType();
                XmlObject relationType = XmlObject.Factory.parse("<" + RELATIONSHIP_RELATION.getPrefix() + ":" + RELATIONSHIP_RELATION.getLocalPart() + " xmlns:" + RELATIONSHIP_RELATION.getPrefix() + "=" + "\"" + RELATIONSHIP_RELATION.getNamespaceURI() + "\" />");
                XmlBeanUtils.addChildElement(relationshipTypeType, relationType);
            }
            catch (XmlException e)
View Full Code Here

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

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
         resourceProperty = resourcePropertySet.get( BusinessprocesstypePropertyQNames.RELATIONSHIP );
         org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship    =
            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(  ) + "=" + "\""
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.