Added: incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterAttributesDocumentImpl.java URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterAttributesDocumentImpl.java?view=auto&rev=154347 ============================================================================== --- incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterAttributesDocumentImpl.java (added) +++ incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterAttributesDocumentImpl.java Fri Feb 18 12:56:32 2005 @@ -0,0 +1,1108 @@ +/* + * An XML document type. + * Localname: printer_attributes + * Namespace: http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd + * Java type: org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument + * + * Automatically generated - do not modify. + */ +package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.impl; +/** + * A document containing one printer_attributes(@http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd) element. + * + * This is a complex type. + */ +public class PrinterAttributesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument +{ + + public PrinterAttributesDocumentImpl(org.apache.xmlbeans.SchemaType sType) + { + super(sType); + } + + private static final javax.xml.namespace.QName PRINTERATTRIBUTES$0 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_attributes"); + + + /** + * Gets the "printer_attributes" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes getPrinterAttributes() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes)get_store().find_element_user(PRINTERATTRIBUTES$0, 0); + if (target == null) + { + return null; + } + return target; + } + } + + /** + * Sets the "printer_attributes" element + */ + public void setPrinterAttributes(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes printerAttributes) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes)get_store().find_element_user(PRINTERATTRIBUTES$0, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes)get_store().add_element_user(PRINTERATTRIBUTES$0); + } + target.set(printerAttributes); + } + } + + /** + * Appends and returns a new empty "printer_attributes" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes addNewPrinterAttributes() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes)get_store().add_element_user(PRINTERATTRIBUTES$0); + return target; + } + } + /** + * An XML printer_attributes(@http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd). + * + * This is a complex type. + */ + public static class PrinterAttributesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterAttributesDocument.PrinterAttributes + { + + public PrinterAttributesImpl(org.apache.xmlbeans.SchemaType sType) + { + super(sType); + } + + private static final javax.xml.namespace.QName PRINTERREFERENCE$0 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_reference"); + private static final javax.xml.namespace.QName PRINTERNAME$2 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_name"); + private static final javax.xml.namespace.QName PRINTERSTATE$4 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_state"); + private static final javax.xml.namespace.QName PRINTERISACCEPTINGJOBS$6 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_is_accepting_jobs"); + private static final javax.xml.namespace.QName QUEUEDJOBCOUNT$8 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "queued_job_count"); + private static final javax.xml.namespace.QName OPERATIONSSUPPORTED$10 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "operations_supported"); + private static final javax.xml.namespace.QName DOCUMENTFORMATSUPPORTED$12 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "document_format_supported"); + private static final javax.xml.namespace.QName JOBHOLDUNTILDEFAULT$14 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_hold_until_default"); + private static final javax.xml.namespace.QName JOBHOLDUNTILSUPPORTED$16 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_hold_until_supported"); + private static final javax.xml.namespace.QName JOBPROPERTIES$18 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_properties"); + + + /** + * Gets the "printer_reference" element + */ + public org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType getPrinterReference() + { + synchronized (monitor()) + { + check_orphaned(); + org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType target = null; + target = (org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType)get_store().find_element_user(PRINTERREFERENCE$0, 0); + if (target == null) + { + return null; + } + return target; + } + } + + /** + * True if has "printer_reference" element + */ + public boolean isSetPrinterReference() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(PRINTERREFERENCE$0) != 0; + } + } + + /** + * Sets the "printer_reference" element + */ + public void setPrinterReference(org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType printerReference) + { + synchronized (monitor()) + { + check_orphaned(); + org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType target = null; + target = (org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType)get_store().find_element_user(PRINTERREFERENCE$0, 0); + if (target == null) + { + target = (org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType)get_store().add_element_user(PRINTERREFERENCE$0); + } + target.set(printerReference); + } + } + + /** + * Appends and returns a new empty "printer_reference" element + */ + public org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType addNewPrinterReference() + { + synchronized (monitor()) + { + check_orphaned(); + org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType target = null; + target = (org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType)get_store().add_element_user(PRINTERREFERENCE$0); + return target; + } + } + + /** + * Unsets the "printer_reference" element + */ + public void unsetPrinterReference() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(PRINTERREFERENCE$0, 0); + } + } + + /** + * Gets the "printer_name" element + */ + public java.lang.String getPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERNAME$2, 0); + if (target == null) + { + return null; + } + return target.getStringValue(); + } + } + + /** + * Gets (as xml) the "printer_name" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name xgetPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().find_element_user(PRINTERNAME$2, 0); + return target; + } + } + + /** + * True if has "printer_name" element + */ + public boolean isSetPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(PRINTERNAME$2) != 0; + } + } + + /** + * Sets the "printer_name" element + */ + public void setPrinterName(java.lang.String printerName) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERNAME$2, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRINTERNAME$2); + } + target.setStringValue(printerName); + } + } + + /** + * Sets (as xml) the "printer_name" element + */ + public void xsetPrinterName(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name printerName) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().find_element_user(PRINTERNAME$2, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().add_element_user(PRINTERNAME$2); + } + target.set(printerName); + } + } + + /** + * Unsets the "printer_name" element + */ + public void unsetPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(PRINTERNAME$2, 0); + } + } + + /** + * Gets the "printer_state" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType.Enum getPrinterState() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERSTATE$4, 0); + if (target == null) + { + return null; + } + return (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType.Enum)target.getEnumValue(); + } + } + + /** + * Gets (as xml) the "printer_state" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType xgetPrinterState() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType)get_store().find_element_user(PRINTERSTATE$4, 0); + return target; + } + } + + /** + * True if has "printer_state" element + */ + public boolean isSetPrinterState() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(PRINTERSTATE$4) != 0; + } + } + + /** + * Sets the "printer_state" element + */ + public void setPrinterState(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType.Enum printerState) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERSTATE$4, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRINTERSTATE$4); + } + target.setEnumValue(printerState); + } + } + + /** + * Sets (as xml) the "printer_state" element + */ + public void xsetPrinterState(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType printerState) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType)get_store().find_element_user(PRINTERSTATE$4, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterStateType)get_store().add_element_user(PRINTERSTATE$4); + } + target.set(printerState); + } + } + + /** + * Unsets the "printer_state" element + */ + public void unsetPrinterState() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(PRINTERSTATE$4, 0); + } + } + + /** + * Gets the "printer_is_accepting_jobs" element + */ + public boolean getPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERISACCEPTINGJOBS$6, 0); + if (target == null) + { + return false; + } + return target.getBooleanValue(); + } + } + + /** + * Gets (as xml) the "printer_is_accepting_jobs" element + */ + public org.apache.xmlbeans.XmlBoolean xgetPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlBoolean target = null; + target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PRINTERISACCEPTINGJOBS$6, 0); + return target; + } + } + + /** + * True if has "printer_is_accepting_jobs" element + */ + public boolean isSetPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(PRINTERISACCEPTINGJOBS$6) != 0; + } + } + + /** + * Sets the "printer_is_accepting_jobs" element + */ + public void setPrinterIsAcceptingJobs(boolean printerIsAcceptingJobs) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERISACCEPTINGJOBS$6, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRINTERISACCEPTINGJOBS$6); + } + target.setBooleanValue(printerIsAcceptingJobs); + } + } + + /** + * Sets (as xml) the "printer_is_accepting_jobs" element + */ + public void xsetPrinterIsAcceptingJobs(org.apache.xmlbeans.XmlBoolean printerIsAcceptingJobs) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlBoolean target = null; + target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PRINTERISACCEPTINGJOBS$6, 0); + if (target == null) + { + target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(PRINTERISACCEPTINGJOBS$6); + } + target.set(printerIsAcceptingJobs); + } + } + + /** + * Unsets the "printer_is_accepting_jobs" element + */ + public void unsetPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(PRINTERISACCEPTINGJOBS$6, 0); + } + } + + /** + * Gets the "queued_job_count" element + */ + public java.math.BigInteger getQueuedJobCount() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(QUEUEDJOBCOUNT$8, 0); + if (target == null) + { + return null; + } + return target.getBigIntegerValue(); + } + } + + /** + * Gets (as xml) the "queued_job_count" element + */ + public org.apache.xmlbeans.XmlInteger xgetQueuedJobCount() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlInteger target = null; + target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(QUEUEDJOBCOUNT$8, 0); + return target; + } + } + + /** + * True if has "queued_job_count" element + */ + public boolean isSetQueuedJobCount() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(QUEUEDJOBCOUNT$8) != 0; + } + } + + /** + * Sets the "queued_job_count" element + */ + public void setQueuedJobCount(java.math.BigInteger queuedJobCount) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(QUEUEDJOBCOUNT$8, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(QUEUEDJOBCOUNT$8); + } + target.setBigIntegerValue(queuedJobCount); + } + } + + /** + * Sets (as xml) the "queued_job_count" element + */ + public void xsetQueuedJobCount(org.apache.xmlbeans.XmlInteger queuedJobCount) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlInteger target = null; + target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(QUEUEDJOBCOUNT$8, 0); + if (target == null) + { + target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(QUEUEDJOBCOUNT$8); + } + target.set(queuedJobCount); + } + } + + /** + * Unsets the "queued_job_count" element + */ + public void unsetQueuedJobCount() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(QUEUEDJOBCOUNT$8, 0); + } + } + + /** + * Gets the "operations_supported" element + */ + public java.util.List getOperationsSupported() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPERATIONSSUPPORTED$10, 0); + if (target == null) + { + return null; + } + return target.getListValue(); + } + } + + /** + * Gets (as xml) the "operations_supported" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType xgetOperationsSupported() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType)get_store().find_element_user(OPERATIONSSUPPORTED$10, 0); + return target; + } + } + + /** + * True if has "operations_supported" element + */ + public boolean isSetOperationsSupported() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(OPERATIONSSUPPORTED$10) != 0; + } + } + + /** + * Sets the "operations_supported" element + */ + public void setOperationsSupported(java.util.List operationsSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPERATIONSSUPPORTED$10, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPERATIONSSUPPORTED$10); + } + target.setListValue(operationsSupported); + } + } + + /** + * Sets (as xml) the "operations_supported" element + */ + public void xsetOperationsSupported(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType operationsSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType)get_store().find_element_user(OPERATIONSSUPPORTED$10, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsType)get_store().add_element_user(OPERATIONSSUPPORTED$10); + } + target.set(operationsSupported); + } + } + + /** + * Unsets the "operations_supported" element + */ + public void unsetOperationsSupported() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(OPERATIONSSUPPORTED$10, 0); + } + } + + /** + * Gets the "document_format_supported" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes getDocumentFormatSupported() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes)get_store().find_element_user(DOCUMENTFORMATSUPPORTED$12, 0); + if (target == null) + { + return null; + } + return target; + } + } + + /** + * True if has "document_format_supported" element + */ + public boolean isSetDocumentFormatSupported() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(DOCUMENTFORMATSUPPORTED$12) != 0; + } + } + + /** + * Sets the "document_format_supported" element + */ + public void setDocumentFormatSupported(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes documentFormatSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes)get_store().find_element_user(DOCUMENTFORMATSUPPORTED$12, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes)get_store().add_element_user(DOCUMENTFORMATSUPPORTED$12); + } + target.set(documentFormatSupported); + } + } + + /** + * Appends and returns a new empty "document_format_supported" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes addNewDocumentFormatSupported() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes)get_store().add_element_user(DOCUMENTFORMATSUPPORTED$12); + return target; + } + } + + /** + * Unsets the "document_format_supported" element + */ + public void unsetDocumentFormatSupported() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(DOCUMENTFORMATSUPPORTED$12, 0); + } + } + + /** + * Gets the "job_hold_until_default" element + */ + public java.lang.String getJobHoldUntilDefault() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBHOLDUNTILDEFAULT$14, 0); + if (target == null) + { + return null; + } + return target.getStringValue(); + } + } + + /** + * Gets (as xml) the "job_hold_until_default" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod xgetJobHoldUntilDefault() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)get_store().find_element_user(JOBHOLDUNTILDEFAULT$14, 0); + return target; + } + } + + /** + * True if has "job_hold_until_default" element + */ + public boolean isSetJobHoldUntilDefault() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(JOBHOLDUNTILDEFAULT$14) != 0; + } + } + + /** + * Sets the "job_hold_until_default" element + */ + public void setJobHoldUntilDefault(java.lang.String jobHoldUntilDefault) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBHOLDUNTILDEFAULT$14, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBHOLDUNTILDEFAULT$14); + } + target.setStringValue(jobHoldUntilDefault); + } + } + + /** + * Sets (as xml) the "job_hold_until_default" element + */ + public void xsetJobHoldUntilDefault(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod jobHoldUntilDefault) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)get_store().find_element_user(JOBHOLDUNTILDEFAULT$14, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)get_store().add_element_user(JOBHOLDUNTILDEFAULT$14); + } + target.set(jobHoldUntilDefault); + } + } + + /** + * Unsets the "job_hold_until_default" element + */ + public void unsetJobHoldUntilDefault() + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(JOBHOLDUNTILDEFAULT$14, 0); + } + } + + /** + * Gets array of all "job_hold_until_supported" elements + */ + public java.lang.String[] getJobHoldUntilSupportedArray() + { + synchronized (monitor()) + { + check_orphaned(); + java.util.List targetList = new java.util.ArrayList(); + get_store().find_all_element_users(JOBHOLDUNTILSUPPORTED$16, targetList); + java.lang.String[] result = new java.lang.String[targetList.size()]; + for (int i = 0, len = targetList.size() ; i < len ; i++) + result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue(); + return result; + } + } + + /** + * Gets ith "job_hold_until_supported" element + */ + public java.lang.String getJobHoldUntilSupportedArray(int i) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBHOLDUNTILSUPPORTED$16, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + return target.getStringValue(); + } + } + + /** + * Gets (as xml) array of all "job_hold_until_supported" elements + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod[] xgetJobHoldUntilSupportedArray() + { + synchronized (monitor()) + { + check_orphaned(); + java.util.List targetList = new java.util.ArrayList(); + get_store().find_all_element_users(JOBHOLDUNTILSUPPORTED$16, targetList); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod[] result = new org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod[targetList.size()]; + targetList.toArray(result); + return result; + } + } + + /** + * Gets (as xml) ith "job_hold_until_supported" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod xgetJobHoldUntilSupportedArray(int i) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)get_store().find_element_user(JOBHOLDUNTILSUPPORTED$16, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + return (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)target; + } + } + + /** + * Returns number of "job_hold_until_supported" element + */ + public int sizeOfJobHoldUntilSupportedArray() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(JOBHOLDUNTILSUPPORTED$16); + } + } + + /** + * Sets array of all "job_hold_until_supported" element + */ + public void setJobHoldUntilSupportedArray(java.lang.String[] jobHoldUntilSupportedArray) + { + synchronized (monitor()) + { + check_orphaned(); + arraySetterHelper(jobHoldUntilSupportedArray, JOBHOLDUNTILSUPPORTED$16); + } + } + + /** + * Sets ith "job_hold_until_supported" element + */ + public void setJobHoldUntilSupportedArray(int i, java.lang.String jobHoldUntilSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBHOLDUNTILSUPPORTED$16, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + target.setStringValue(jobHoldUntilSupported); + } + } + + /** + * Sets (as xml) array of all "job_hold_until_supported" element + */ + public void xsetJobHoldUntilSupportedArray(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod[]jobHoldUntilSupportedArray) + { + synchronized (monitor()) + { + check_orphaned(); + arraySetterHelper(jobHoldUntilSupportedArray, JOBHOLDUNTILSUPPORTED$16); + } + } + + /** + * Sets (as xml) ith "job_hold_until_supported" element + */ + public void xsetJobHoldUntilSupportedArray(int i, org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod jobHoldUntilSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.HoldPeriod)get_store().find_element_user(JOBHOLDUNTILSUPPORTED$16, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + target.set(jobHoldUntilSupported); + } + } + + /** + * Inserts the value as the ith "job_hold_until_supported" element + */ + public void insertJobHoldUntilSupported(int i, java.lang.String jobHoldUntilSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = + (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(JOBHOLDUNTILSUPPORTED$16, i); + target.setStringValue(jobHoldUntilSupported); + } + } + + /** + * Appends the value as the last "job_hold_until_supported" element + */ + public void addJobHoldUntilSupported(java.lang.String jobHoldUntilSupported) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBHOLDUNTILSUPPORTED$16); + target.setStringValue(jobHoldUntilSupported); + } + } + + /** + * Removes the ith "job_hold_until_supported" element + */ + public void removeJobHoldUntilSupported(int i) + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(JOBHOLDUNTILSUPPORTED$16, i); + } + } + + /** + * Gets array of all "job_properties" elements + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties[] getJobPropertiesArray() + { + synchronized (monitor()) + { + check_orphaned(); + java.util.List targetList = new java.util.ArrayList(); + get_store().find_all_element_users(JOBPROPERTIES$18, targetList); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties[] result = new org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties[targetList.size()]; + targetList.toArray(result); + return result; + } + } + + /** + * Gets ith "job_properties" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties getJobPropertiesArray(int i) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties)get_store().find_element_user(JOBPROPERTIES$18, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + return target; + } + } + + /** + * Returns number of "job_properties" element + */ + public int sizeOfJobPropertiesArray() + { + synchronized (monitor()) + { + check_orphaned(); + return get_store().count_elements(JOBPROPERTIES$18); + } + } + + /** + * Sets array of all "job_properties" element + */ + public void setJobPropertiesArray(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties[] jobPropertiesArray) + { + synchronized (monitor()) + { + check_orphaned(); + arraySetterHelper(jobPropertiesArray, JOBPROPERTIES$18); + } + } + + /** + * Sets ith "job_properties" element + */ + public void setJobPropertiesArray(int i, org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties jobProperties) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties)get_store().find_element_user(JOBPROPERTIES$18, i); + if (target == null) + { + throw new IndexOutOfBoundsException(); + } + target.set(jobProperties); + } + } + + /** + * Inserts and returns a new empty value (as xml) as the ith "job_properties" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties insertNewJobProperties(int i) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties)get_store().insert_element_user(JOBPROPERTIES$18, i); + return target; + } + } + + /** + * Appends and returns a new empty value (as xml) as the last "job_properties" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties addNewJobProperties() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties)get_store().add_element_user(JOBPROPERTIES$18); + return target; + } + } + + /** + * Removes the ith "job_properties" element + */ + public void removeJobProperties(int i) + { + synchronized (monitor()) + { + check_orphaned(); + get_store().remove_element(JOBPROPERTIES$18, i); + } + } + } +}
Added: incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterIsAcceptingJobsDocumentImpl.java URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterIsAcceptingJobsDocumentImpl.java?view=auto&rev=154347 ============================================================================== --- incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterIsAcceptingJobsDocumentImpl.java (added) +++ incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterIsAcceptingJobsDocumentImpl.java Fri Feb 18 12:56:32 2005 @@ -0,0 +1,94 @@ +/* + * An XML document type. + * Localname: printer_is_accepting_jobs + * Namespace: http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd + * Java type: org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterIsAcceptingJobsDocument + * + * Automatically generated - do not modify. + */ +package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.impl; +/** + * A document containing one printer_is_accepting_jobs(@http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd) element. + * + * This is a complex type. + */ +public class PrinterIsAcceptingJobsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterIsAcceptingJobsDocument +{ + + public PrinterIsAcceptingJobsDocumentImpl(org.apache.xmlbeans.SchemaType sType) + { + super(sType); + } + + private static final javax.xml.namespace.QName PRINTERISACCEPTINGJOBS$0 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_is_accepting_jobs"); + + + /** + * Gets the "printer_is_accepting_jobs" element + */ + public boolean getPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERISACCEPTINGJOBS$0, 0); + if (target == null) + { + return false; + } + return target.getBooleanValue(); + } + } + + /** + * Gets (as xml) the "printer_is_accepting_jobs" element + */ + public org.apache.xmlbeans.XmlBoolean xgetPrinterIsAcceptingJobs() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlBoolean target = null; + target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PRINTERISACCEPTINGJOBS$0, 0); + return target; + } + } + + /** + * Sets the "printer_is_accepting_jobs" element + */ + public void setPrinterIsAcceptingJobs(boolean printerIsAcceptingJobs) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERISACCEPTINGJOBS$0, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRINTERISACCEPTINGJOBS$0); + } + target.setBooleanValue(printerIsAcceptingJobs); + } + } + + /** + * Sets (as xml) the "printer_is_accepting_jobs" element + */ + public void xsetPrinterIsAcceptingJobs(org.apache.xmlbeans.XmlBoolean printerIsAcceptingJobs) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.XmlBoolean target = null; + target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PRINTERISACCEPTINGJOBS$0, 0); + if (target == null) + { + target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(PRINTERISACCEPTINGJOBS$0); + } + target.set(printerIsAcceptingJobs); + } + } +} Added: incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterNameDocumentImpl.java URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterNameDocumentImpl.java?view=auto&rev=154347 ============================================================================== --- incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterNameDocumentImpl.java (added) +++ incubator/apollo/trunk/src/site/content/example/src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/PrinterNameDocumentImpl.java Fri Feb 18 12:56:32 2005 @@ -0,0 +1,94 @@ +/* + * An XML document type. + * Localname: printer_name + * Namespace: http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd + * Java type: org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterNameDocument + * + * Automatically generated - do not modify. + */ +package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.impl; +/** + * A document containing one printer_name(@http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd) element. + * + * This is a complex type. + */ +public class PrinterNameDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterNameDocument +{ + + public PrinterNameDocumentImpl(org.apache.xmlbeans.SchemaType sType) + { + super(sType); + } + + private static final javax.xml.namespace.QName PRINTERNAME$0 = + new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_name"); + + + /** + * Gets the "printer_name" element + */ + public java.lang.String getPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERNAME$0, 0); + if (target == null) + { + return null; + } + return target.getStringValue(); + } + } + + /** + * Gets (as xml) the "printer_name" element + */ + public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name xgetPrinterName() + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().find_element_user(PRINTERNAME$0, 0); + return target; + } + } + + /** + * Sets the "printer_name" element + */ + public void setPrinterName(java.lang.String printerName) + { + synchronized (monitor()) + { + check_orphaned(); + org.apache.xmlbeans.SimpleValue target = null; + target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRINTERNAME$0, 0); + if (target == null) + { + target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRINTERNAME$0); + } + target.setStringValue(printerName); + } + } + + /** + * Sets (as xml) the "printer_name" element + */ + public void xsetPrinterName(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name printerName) + { + synchronized (monitor()) + { + check_orphaned(); + org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name target = null; + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().find_element_user(PRINTERNAME$0, 0); + if (target == null) + { + target = (org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Name)get_store().add_element_user(PRINTERNAME$0); + } + target.set(printerName); + } + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
