Package org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema

Examples of org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema.IntegerMetric


            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


        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

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CORRELATABLEPROPERTIES);
            CorrelatablePropertiesDocument correlatablePropertiesDocument = CorrelatablePropertiesDocument.Factory.newInstance();
            CorrelatablePropertiesType correlatablePropertiesType = correlatablePropertiesDocument.addNewCorrelatableProperties();
            correlatablePropertiesType.setDialect(MuwsConstants.PBM_DIALECT);
            correlatablePropertiesType.setNegativeAssertionPossible(false);
            MatchDocument matchDocument = MatchDocument.Factory.newInstance();
            matchDocument.setMatch(WeatherstationPropertyQNames.FCCID);
            XmlBeanUtils.addChildElement(correlatablePropertiesType, matchDocument);
            resourceProperty.add(correlatablePropertiesDocument);
            resourceProperty.addChangeListener(correlatablePropertiesCapability);//add for management events

            /*----------------- MUWS Relationships props -----------------*/
 
View Full Code Here

 
  /**
   * prepare request
   * */
  protected CreateSMSDocument getCreateSMSDocument(String ...keyValueParams){
    CreateSMSDocument in=CreateSMSDocument.Factory.newInstance();
    in.addNewCreateSMS();
    if(initialLifeTime>0){
      in.getCreateSMS().addNewTerminationTime().setCalendarValue(getTermTime());
    }
    if(storageType!=null){
      if(log.isDebugEnabled()) {
        log.debug("Will create storage of type : "+storageType);
      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
View Full Code Here

 
  /**
   * prepare request
   * */
  protected CreateSMSDocument getCreateSMSDocument(String ...keyValueParams){
    CreateSMSDocument in=CreateSMSDocument.Factory.newInstance();
    in.addNewCreateSMS();
    if(initialLifeTime>0){
      in.getCreateSMS().addNewTerminationTime().setCalendarValue(getTermTime());
    }
    if(storageType!=null){
      if(log.isDebugEnabled()) {
        log.debug("Will create storage of type : "+storageType);
      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
View Full Code Here

      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
          String arg=keyValueParams[i];
          String[]sp=arg.split("=",2);
          PropertyType prop=params.addNewProperty();
          prop.setName(sp[0]);
          prop.setValue(sp[1]);
          if(log.isDebugEnabled()) {
            log.debug("Have parameter : "+arg);
          }
View Full Code Here

      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
          String arg=keyValueParams[i];
          String[]sp=arg.split("=",2);
          PropertyType prop=params.addNewProperty();
          prop.setName(sp[0]);
          prop.setValue(sp[1]);
          if(log.isDebugEnabled()) {
            log.debug("Have parameter : "+arg);
          }
View Full Code Here

    }
    if(storageType!=null){
      if(log.isDebugEnabled()) {
        log.debug("Will create storage of type : "+storageType);
      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
          String arg=keyValueParams[i];
          String[]sp=arg.split("=",2);
          PropertyType prop=params.addNewProperty();
          prop.setName(sp[0]);
View Full Code Here

    }
    if(storageType!=null){
      if(log.isDebugEnabled()) {
        log.debug("Will create storage of type : "+storageType);
      }
      StorageDescriptionType desc=in.getCreateSMS().addNewStorageDescription();
      desc.setStorageBackendType(storageType);
      if(keyValueParams.length>1){
        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
          String arg=keyValueParams[i];
          String[]sp=arg.split("=",2);
          PropertyType prop=params.addNewProperty();
          prop.setName(sp[0]);
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema.IntegerMetric

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.