Package edu.indiana.extreme.namespaces.x2004.x01.gFac

Examples of edu.indiana.extreme.namespaces.x2004.x01.gFac.HostDescriptionType


    }

    private boolean isJobCancelledOrAborted(JobPortResource job)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = (JobStateType) resourceProperty.get(0);
        org.apache.xmlbeans.StringEnumAbstractBase stateVal = o.enumValue();
        return stateVal == JobStateType.ABORTED || stateVal == JobStateType.CANCELED || stateVal == JobStateType.COMPLETED;
    }
View Full Code Here


    }

    private void setJobState(JobPortResource job, JobStateType.Enum state)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = null;
        if (resourceProperty != null)
        {
         o = (JobStateType) resourceProperty.get(0);
         o.set(state);
        }

        resourceProperty = (XmlBeansResourceProperty) getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        if (resourceProperty != null)
        {
            o = (JobStateType) resourceProperty.get(0);
            o.set(state);
        }
    }
View Full Code Here

      org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet =
         instance.getResourcePropertySet(  );
      creationResponse.setJobReference( (EndpointReferenceType) ( (XmlBeansResourceProperty) resourcePropertySet
                                                                  .get( JobPortPropertyQNames.JOB_REFERENCE ) )
                                                                .toXmlObjects(  )[0] );
      JobStateType jobState =
         (JobStateType) ( (XmlBeansResourceProperty) resourcePropertySet.get( JobPortPropertyQNames.JOB_STATE ) )
                        .toXmlObjects(  )[0];
      creationResponse.xsetJobState( jobState ); //only way I could get to compile
      creationResponse.setSuccessStatusCode( "successful-ok" );
   }
View Full Code Here

    }

    private boolean isJobCancelledOrAborted(JobPortResource job)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = (JobStateType) resourceProperty.get(0);
        org.apache.xmlbeans.StringEnumAbstractBase stateVal = o.enumValue();
        return stateVal == JobStateType.ABORTED || stateVal == JobStateType.CANCELED || stateVal == JobStateType.COMPLETED;
    }
View Full Code Here

    }

    private void setJobState(JobPortResource job, JobStateType.Enum state)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = null;
        if (resourceProperty != null)
        {
         o = (JobStateType) resourceProperty.get(0);
         o.set(state);
        }

        resourceProperty = (XmlBeansResourceProperty) getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        if (resourceProperty != null)
        {
            o = (JobStateType) resourceProperty.get(0);
            o.set(state);
        }
    }
View Full Code Here

    }

    private boolean isJobCancelledOrAborted(JobPortResource job)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = (JobStateType) resourceProperty.get(0);
        org.apache.xmlbeans.StringEnumAbstractBase stateVal = o.enumValue();
        return stateVal == JobStateType.ABORTED || stateVal == JobStateType.CANCELED || stateVal == JobStateType.COMPLETED;
    }
View Full Code Here

    }

    private void setJobState(JobPortResource job, JobStateType.Enum state)
    {
        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) job.getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        JobStateType o = null;
        if (resourceProperty != null)
        {
         o = (JobStateType) resourceProperty.get(0);
         o.set(state);
        }

        resourceProperty = (XmlBeansResourceProperty) getResourcePropertySet().get(JobPortPropertyQNames.JOB_STATE);
        if (resourceProperty != null)
        {
            o = (JobStateType) resourceProperty.get(0);
            o.set(state);
        }
    }
View Full Code Here

      org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet =
         instance.getResourcePropertySet(  );
      creationResponse.setJobReference( (EndpointReferenceType) ( (XmlBeansResourceProperty) resourcePropertySet
                                                                  .get( JobPortPropertyQNames.JOB_REFERENCE ) )
                                                                .toXmlObjects(  )[0] );
      JobStateType jobState =
         (JobStateType) ( (XmlBeansResourceProperty) resourcePropertySet.get( JobPortPropertyQNames.JOB_STATE ) )
                        .toXmlObjects(  )[0];
      creationResponse.xsetJobState( jobState ); //only way I could get to compile
      creationResponse.setSuccessStatusCode( "successful-ok" );
   }
View Full Code Here

      org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet =
         instance.getResourcePropertySet(  );
      creationResponse.setJobReference( (EndpointReferenceType) ( (XmlBeansResourceProperty) resourcePropertySet
                                                                  .get( JobPortPropertyQNames.JOB_REFERENCE ) )
                                                                .toXmlObjects(  )[0] );
      JobStateType jobState =
         (JobStateType) ( (XmlBeansResourceProperty) resourcePropertySet.get( JobPortPropertyQNames.JOB_STATE ) )
                        .toXmlObjects(  )[0];
      creationResponse.xsetJobState( jobState ); //only way I could get to compile
      creationResponse.setSuccessStatusCode( "successful-ok" );
   }
View Full Code Here

        resourceProperty.add(operationsSupportedDocument);

        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
        DocumentFormatSupportedDocument documentFormatSupportedDocument =
                DocumentFormatSupportedDocument.Factory.newInstance();
        MimeMediaTypes mimeMediaTypes =
                documentFormatSupportedDocument.addNewDocumentFormatSupported();
        mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
        resourceProperty.add(documentFormatSupportedDocument);
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.namespaces.x2004.x01.gFac.HostDescriptionType

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.