Package org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.impl

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.impl.CapabilityDocumentImpl


         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


        return m_substitutableMsg;
    }

    public XmlObject getXmlObject()
    {
        SituationDocument situationDoc = SituationDocument.Factory.newInstance();

        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.SituationType situationType = situationDoc.addNewSituation();
        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.SituationCategoryType situationCategoryType = situationType.addNewSituationCategory();
        XmlBeanUtils.addChildElement( situationCategoryType, ( (XmlObjectWrapper) m_situationCategory ).getXmlObject() );

        if ( m_message != null )
        {
View Full Code Here

        return m_substitutionMsg;
    }

    public XmlObject getXmlObject()
    {
        SituationDocument situationDocument = SituationDocument.Factory.newInstance();

        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.SituationType situationType = situationDocument.addNewSituation();
        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.SituationCategoryType situationCategoryType = situationType.addNewSituationCategory();
        XmlBeanUtils.addChildElement(situationCategoryType, ((XmlObjectWrapper) m_situationCategory).getXmlObject());

        if (m_message != null)
        {
View Full Code Here

            currentOperationalStateDocument.addNewCurrentOperationalState();
            resourceProperty.add(currentOperationalStateDocument);

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.LASTOPERATIONALSTATETRANSITION);
            LastOperationalStateTransitionDocument lastOperationalStateTransitionDocument = LastOperationalStateTransitionDocument.Factory.newInstance();
            StateTransitionType stateTransitionType = lastOperationalStateTransitionDocument.addNewLastOperationalStateTransition();
            stateTransitionType.addNewEnteredState();
            stateTransitionType.addNewPreviousState();
            stateTransitionType.setTime(Calendar.getInstance());
            stateTransitionType.setTransitionIdentifier("");
            resourceProperty.add(lastOperationalStateTransitionDocument);

            /*----------------- MOWS EndpointIdentification props -----------------*/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.ENDPOINTREFERENCE);
            EndpointReferenceDocument endpointReferenceDocument = EndpointReferenceDocument.Factory.newInstance();
View Full Code Here

            XmlBeanUtils.addChildElement(replyAnyXmlContentsType, getCurrentTemperatureResponseDocument);

            //todo flesh out
            //StateInformation
            RequestProcessingStateInformationType requestProcessingStateInformationType = notif.addNewStateInformation();
            StateTransitionType stateTransitionType = requestProcessingStateInformationType.addNewStateTransition();

            XmlObject currentState = XmlObject.Factory.parse("<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>");

            StateType enteredState = stateTransitionType.addNewEnteredState();
            XmlBeanUtils.addChildElement(enteredState, currentState);

            StateType prevState = stateTransitionType.addNewPreviousState();
            XmlBeanUtils.addChildElement(prevState, currentState);

            stateTransitionType.setTransitionIdentifier("urn:NONE");
            stateTransitionType.setTime(currentTime);
            notif.setCurrentTime(currentTime);

            Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
            XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
            ManagementEventDocument mgmtEvent = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
View Full Code Here

            currentOperationalStateDocument.addNewCurrentOperationalState();
            resourceProperty.add(currentOperationalStateDocument);

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.LASTOPERATIONALSTATETRANSITION);
            LastOperationalStateTransitionDocument lastOperationalStateTransitionDocument = LastOperationalStateTransitionDocument.Factory.newInstance();
            StateTransitionType stateTransitionType = lastOperationalStateTransitionDocument.addNewLastOperationalStateTransition();
            stateTransitionType.addNewEnteredState();
            stateTransitionType.addNewPreviousState();
            stateTransitionType.setTime(Calendar.getInstance());
            stateTransitionType.setTransitionIdentifier("");
            resourceProperty.add(lastOperationalStateTransitionDocument);

            /*----------------- MOWS EndpointIdentification props -----------------*/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.ENDPOINTREFERENCE);
            EndpointReferenceDocument endpointReferenceDocument = EndpointReferenceDocument.Factory.newInstance();
View Full Code Here

            RequestProcessingStateInformationType requestProcessingStateInformationType = notif.addNewStateInformation();
            StateTransitionType stateTransitionType = requestProcessingStateInformationType.addNewStateTransition();

            XmlObject currentState = XmlObject.Factory.parse("<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>");

            StateType enteredState = stateTransitionType.addNewEnteredState();
            XmlBeanUtils.addChildElement(enteredState, currentState);

            StateType prevState = stateTransitionType.addNewPreviousState();
            XmlBeanUtils.addChildElement(prevState, currentState);

            stateTransitionType.setTransitionIdentifier("urn:NONE");
            stateTransitionType.setTime(currentTime);
            notif.setCurrentTime(currentTime);
View Full Code Here

        return (String[]) m_values.toArray(new String[0]);
    }

    public XmlObject getXmlObject()
    {       
        SubstitutableMsgType substitutableMsgType = SubstitutableMsgType.Factory.newInstance();
        substitutableMsgType.setMsgId(m_messageId);
        substitutableMsgType.setMsgIdType(m_msgType);
        for (int i = 0; i < m_values.size(); i++)
        {
            String s = (String) m_values.get(i);
            org.apache.xmlbeans.XmlAnySimpleType xmlAnySimpleType = substitutableMsgType.addNewValue();
            xmlAnySimpleType.setStringValue(s);
        }
        return substitutableMsgType;
    }
View Full Code Here

        return (String[]) m_values.toArray(new String[0]);
    }

    public XmlObject getXmlObject()
    {       
        SubstitutableMsgType substitutableMsgType = SubstitutableMsgType.Factory.newInstance();
        substitutableMsgType.setMsgId(m_messageId);
        substitutableMsgType.setMsgIdType(m_msgType);
        for (int i = 0; i < m_values.size(); i++)
        {
            String s = (String) m_values.get(i);
            org.apache.xmlbeans.XmlAnySimpleType xmlAnySimpleType = substitutableMsgType.addNewValue();
            xmlAnySimpleType.setStringValue(s);
        }
        return substitutableMsgType;
    }
View Full Code Here

      XmlObject[] relationArry = m_resource.getResourceProperty(RELATIONSHIP_QNAME);
      model = new Vector();
      IWc wc=new WcImpl(0,"Wc",null);
      model.add(wc);

      RelationshipTypeImpl relationshipSample = (RelationshipTypeImpl) relationArry[0];
     
      for (int i = 0; i < relationArry.length; i++) {
        RelationshipTypeImpl relationship = (RelationshipTypeImpl) relationArry[i];
        IWs ws1=new WsImpl(relationship,notificationListenerUrl,messagesJPanel1);
        model.add(ws1);
      }
     
      // Capture the name of the defaultActive WS
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.impl.CapabilityDocumentImpl

Copyright © 2018 www.massapicom. 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.