You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by wi...@apache.org on 2005/08/30 15:29:25 UTC
svn commit: r264778 [5/6] - in
/webservices/muse/trunk/src/examples/client/src/resource: ./ target/
target/.xmlbeans/ target/.xmlbeans/lib/ target/.xmlbeans/src/
target/.xmlbeans/src/org/ target/.xmlbeans/src/org/apache/
target/.xmlbeans/src/org/apache...
Added: webservices/muse/trunk/src/examples/client/src/resource/target/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/TestResourceResourcePropertiesDocumentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/TestResourceResourcePropertiesDocumentImpl.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/TestResourceResourcePropertiesDocumentImpl.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/TestResourceResourcePropertiesDocumentImpl.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,1155 @@
+/*
+ * An XML document type.
+ * Localname: TestResourceResourceProperties
+ * Namespace: http://wsdmdemo.org/service/weather-station
+ * Java type: org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument
+ *
+ * Automatically generated - do not modify.
+ */
+package org.wsdmdemo.service.weatherStation.impl;
+/**
+ * A document containing one TestResourceResourceProperties(@http://wsdmdemo.org/service/weather-station) element.
+ *
+ * This is a complex type.
+ */
+public class TestResourceResourcePropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument
+{
+
+ public TestResourceResourcePropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName TESTRESOURCERESOURCEPROPERTIES$0 =
+ new javax.xml.namespace.QName("http://wsdmdemo.org/service/weather-station", "TestResourceResourceProperties");
+
+
+ /**
+ * Gets the "TestResourceResourceProperties" element
+ */
+ public org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties getTestResourceResourceProperties()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties)get_store().find_element_user(TESTRESOURCERESOURCEPROPERTIES$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "TestResourceResourceProperties" element
+ */
+ public void setTestResourceResourceProperties(org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties testResourceResourceProperties)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties)get_store().find_element_user(TESTRESOURCERESOURCEPROPERTIES$0, 0);
+ if (target == null)
+ {
+ target = (org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties)get_store().add_element_user(TESTRESOURCERESOURCEPROPERTIES$0);
+ }
+ target.set(testResourceResourceProperties);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "TestResourceResourceProperties" element
+ */
+ public org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties addNewTestResourceResourceProperties()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties)get_store().add_element_user(TESTRESOURCERESOURCEPROPERTIES$0);
+ return target;
+ }
+ }
+ /**
+ * An XML TestResourceResourceProperties(@http://wsdmdemo.org/service/weather-station).
+ *
+ * This is a complex type.
+ */
+ public static class TestResourceResourcePropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.wsdmdemo.service.weatherStation.TestResourceResourcePropertiesDocument.TestResourceResourceProperties
+ {
+
+ public TestResourceResourcePropertiesImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName NAME$0 =
+ new javax.xml.namespace.QName("http://wsdmdemo.org/service/weather-station", "Name");
+ private static final javax.xml.namespace.QName PRICE$2 =
+ new javax.xml.namespace.QName("http://wsdmdemo.org/service/weather-station", "Price");
+ private static final javax.xml.namespace.QName TESTMETRIC$4 =
+ new javax.xml.namespace.QName("http://wsdmdemo.org/service/weather-station", "TestMetric");
+ private static final javax.xml.namespace.QName TOPIC$6 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic");
+ private static final javax.xml.namespace.QName FIXEDTOPICSET$8 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet");
+ private static final javax.xml.namespace.QName TOPICEXPRESSIONDIALECTS$10 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects");
+ private static final javax.xml.namespace.QName RESOURCEID$12 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId");
+ private static final javax.xml.namespace.QName MANAGEABILITYCAPABILITY$14 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability");
+ private static final javax.xml.namespace.QName CURRENTTIME$16 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime");
+ private static final javax.xml.namespace.QName OPERATIONALSTATUS$18 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus");
+ private static final javax.xml.namespace.QName LASTRESPONSETIME$20 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastResponseTime");
+
+
+ /**
+ * Gets the "Name" element
+ */
+ public java.lang.String getName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "Name" element
+ */
+ public org.apache.xmlbeans.XmlString xgetName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "Name" element
+ */
+ public void setName(java.lang.String name)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
+ }
+ target.setStringValue(name);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "Name" element
+ */
+ public void xsetName(org.apache.xmlbeans.XmlString name)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
+ }
+ target.set(name);
+ }
+ }
+
+ /**
+ * Gets the "Price" element
+ */
+ public double getPrice()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRICE$2, 0);
+ if (target == null)
+ {
+ return 0.0;
+ }
+ return target.getDoubleValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "Price" element
+ */
+ public org.apache.xmlbeans.XmlDouble xgetPrice()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlDouble target = null;
+ target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(PRICE$2, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "Price" element
+ */
+ public void setPrice(double price)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRICE$2, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRICE$2);
+ }
+ target.setDoubleValue(price);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "Price" element
+ */
+ public void xsetPrice(org.apache.xmlbeans.XmlDouble price)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlDouble target = null;
+ target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(PRICE$2, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(PRICE$2);
+ }
+ target.set(price);
+ }
+ }
+
+ /**
+ * Gets the "TestMetric" element
+ */
+ public org.wsdmdemo.service.weatherStation.TestMetricMetricType getTestMetric()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestMetricMetricType target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestMetricMetricType)get_store().find_element_user(TESTMETRIC$4, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "TestMetric" element
+ */
+ public void setTestMetric(org.wsdmdemo.service.weatherStation.TestMetricMetricType testMetric)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestMetricMetricType target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestMetricMetricType)get_store().find_element_user(TESTMETRIC$4, 0);
+ if (target == null)
+ {
+ target = (org.wsdmdemo.service.weatherStation.TestMetricMetricType)get_store().add_element_user(TESTMETRIC$4);
+ }
+ target.set(testMetric);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "TestMetric" element
+ */
+ public org.wsdmdemo.service.weatherStation.TestMetricMetricType addNewTestMetric()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStation.TestMetricMetricType target = null;
+ target = (org.wsdmdemo.service.weatherStation.TestMetricMetricType)get_store().add_element_user(TESTMETRIC$4);
+ return target;
+ }
+ }
+
+ /**
+ * Gets array of all "Topic" elements
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType[] getTopicArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(TOPIC$6, targetList);
+ org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType[] result = new org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets ith "Topic" element
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType getTopicArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType target = null;
+ target = (org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType)get_store().find_element_user(TOPIC$6, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Returns number of "Topic" element
+ */
+ public int sizeOfTopicArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(TOPIC$6);
+ }
+ }
+
+ /**
+ * Sets array of all "Topic" element
+ */
+ public void setTopicArray(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType[] topicArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(topicArray, TOPIC$6);
+ }
+ }
+
+ /**
+ * Sets ith "Topic" element
+ */
+ public void setTopicArray(int i, org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType topic)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType target = null;
+ target = (org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType)get_store().find_element_user(TOPIC$6, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(topic);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "Topic" element
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType insertNewTopic(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType target = null;
+ target = (org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType)get_store().insert_element_user(TOPIC$6, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "Topic" element
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType addNewTopic()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType target = null;
+ target = (org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType)get_store().add_element_user(TOPIC$6);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "Topic" element
+ */
+ public void removeTopic(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(TOPIC$6, i);
+ }
+ }
+
+ /**
+ * Gets the "FixedTopicSet" element
+ */
+ public boolean getFixedTopicSet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIXEDTOPICSET$8, 0);
+ if (target == null)
+ {
+ return false;
+ }
+ return target.getBooleanValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "FixedTopicSet" element
+ */
+ public org.apache.xmlbeans.XmlBoolean xgetFixedTopicSet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FIXEDTOPICSET$8, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "FixedTopicSet" element
+ */
+ public void setFixedTopicSet(boolean fixedTopicSet)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIXEDTOPICSET$8, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIXEDTOPICSET$8);
+ }
+ target.setBooleanValue(fixedTopicSet);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "FixedTopicSet" element
+ */
+ public void xsetFixedTopicSet(org.apache.xmlbeans.XmlBoolean fixedTopicSet)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FIXEDTOPICSET$8, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(FIXEDTOPICSET$8);
+ }
+ target.set(fixedTopicSet);
+ }
+ }
+
+ /**
+ * Gets array of all "TopicExpressionDialects" elements
+ */
+ public java.lang.String[] getTopicExpressionDialectsArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(TOPICEXPRESSIONDIALECTS$10, 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 "TopicExpressionDialects" element
+ */
+ public java.lang.String getTopicExpressionDialectsArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) array of all "TopicExpressionDialects" elements
+ */
+ public org.apache.xmlbeans.XmlAnyURI[] xgetTopicExpressionDialectsArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(TOPICEXPRESSIONDIALECTS$10, targetList);
+ org.apache.xmlbeans.XmlAnyURI[] result = new org.apache.xmlbeans.XmlAnyURI[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets (as xml) ith "TopicExpressionDialects" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI xgetTopicExpressionDialectsArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return (org.apache.xmlbeans.XmlAnyURI)target;
+ }
+ }
+
+ /**
+ * Returns number of "TopicExpressionDialects" element
+ */
+ public int sizeOfTopicExpressionDialectsArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(TOPICEXPRESSIONDIALECTS$10);
+ }
+ }
+
+ /**
+ * Sets array of all "TopicExpressionDialects" element
+ */
+ public void setTopicExpressionDialectsArray(java.lang.String[] topicExpressionDialectsArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(topicExpressionDialectsArray, TOPICEXPRESSIONDIALECTS$10);
+ }
+ }
+
+ /**
+ * Sets ith "TopicExpressionDialects" element
+ */
+ public void setTopicExpressionDialectsArray(int i, java.lang.String topicExpressionDialects)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.setStringValue(topicExpressionDialects);
+ }
+ }
+
+ /**
+ * Sets (as xml) array of all "TopicExpressionDialects" element
+ */
+ public void xsetTopicExpressionDialectsArray(org.apache.xmlbeans.XmlAnyURI[]topicExpressionDialectsArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(topicExpressionDialectsArray, TOPICEXPRESSIONDIALECTS$10);
+ }
+ }
+
+ /**
+ * Sets (as xml) ith "TopicExpressionDialects" element
+ */
+ public void xsetTopicExpressionDialectsArray(int i, org.apache.xmlbeans.XmlAnyURI topicExpressionDialects)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(topicExpressionDialects);
+ }
+ }
+
+ /**
+ * Inserts the value as the ith "TopicExpressionDialects" element
+ */
+ public void insertTopicExpressionDialects(int i, java.lang.String topicExpressionDialects)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target =
+ (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ target.setStringValue(topicExpressionDialects);
+ }
+ }
+
+ /**
+ * Appends the value as the last "TopicExpressionDialects" element
+ */
+ public void addTopicExpressionDialects(java.lang.String topicExpressionDialects)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOPICEXPRESSIONDIALECTS$10);
+ target.setStringValue(topicExpressionDialects);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "TopicExpressionDialects" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI insertNewTopicExpressionDialects(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().insert_element_user(TOPICEXPRESSIONDIALECTS$10, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "TopicExpressionDialects" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI addNewTopicExpressionDialects()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(TOPICEXPRESSIONDIALECTS$10);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "TopicExpressionDialects" element
+ */
+ public void removeTopicExpressionDialects(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(TOPICEXPRESSIONDIALECTS$10, i);
+ }
+ }
+
+ /**
+ * Gets the "ResourceId" element
+ */
+ public java.lang.String getResourceId()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCEID$12, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "ResourceId" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI xgetResourceId()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(RESOURCEID$12, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "ResourceId" element
+ */
+ public void setResourceId(java.lang.String resourceId)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCEID$12, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESOURCEID$12);
+ }
+ target.setStringValue(resourceId);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "ResourceId" element
+ */
+ public void xsetResourceId(org.apache.xmlbeans.XmlAnyURI resourceId)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(RESOURCEID$12, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(RESOURCEID$12);
+ }
+ target.set(resourceId);
+ }
+ }
+
+ /**
+ * Gets array of all "ManageabilityCapability" elements
+ */
+ public java.lang.String[] getManageabilityCapabilityArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(MANAGEABILITYCAPABILITY$14, 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 "ManageabilityCapability" element
+ */
+ public java.lang.String getManageabilityCapabilityArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGEABILITYCAPABILITY$14, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) array of all "ManageabilityCapability" elements
+ */
+ public org.apache.xmlbeans.XmlAnyURI[] xgetManageabilityCapabilityArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(MANAGEABILITYCAPABILITY$14, targetList);
+ org.apache.xmlbeans.XmlAnyURI[] result = new org.apache.xmlbeans.XmlAnyURI[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets (as xml) ith "ManageabilityCapability" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI xgetManageabilityCapabilityArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(MANAGEABILITYCAPABILITY$14, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return (org.apache.xmlbeans.XmlAnyURI)target;
+ }
+ }
+
+ /**
+ * Returns number of "ManageabilityCapability" element
+ */
+ public int sizeOfManageabilityCapabilityArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(MANAGEABILITYCAPABILITY$14);
+ }
+ }
+
+ /**
+ * Sets array of all "ManageabilityCapability" element
+ */
+ public void setManageabilityCapabilityArray(java.lang.String[] manageabilityCapabilityArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(manageabilityCapabilityArray, MANAGEABILITYCAPABILITY$14);
+ }
+ }
+
+ /**
+ * Sets ith "ManageabilityCapability" element
+ */
+ public void setManageabilityCapabilityArray(int i, java.lang.String manageabilityCapability)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGEABILITYCAPABILITY$14, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.setStringValue(manageabilityCapability);
+ }
+ }
+
+ /**
+ * Sets (as xml) array of all "ManageabilityCapability" element
+ */
+ public void xsetManageabilityCapabilityArray(org.apache.xmlbeans.XmlAnyURI[]manageabilityCapabilityArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(manageabilityCapabilityArray, MANAGEABILITYCAPABILITY$14);
+ }
+ }
+
+ /**
+ * Sets (as xml) ith "ManageabilityCapability" element
+ */
+ public void xsetManageabilityCapabilityArray(int i, org.apache.xmlbeans.XmlAnyURI manageabilityCapability)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(MANAGEABILITYCAPABILITY$14, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(manageabilityCapability);
+ }
+ }
+
+ /**
+ * Inserts the value as the ith "ManageabilityCapability" element
+ */
+ public void insertManageabilityCapability(int i, java.lang.String manageabilityCapability)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target =
+ (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(MANAGEABILITYCAPABILITY$14, i);
+ target.setStringValue(manageabilityCapability);
+ }
+ }
+
+ /**
+ * Appends the value as the last "ManageabilityCapability" element
+ */
+ public void addManageabilityCapability(java.lang.String manageabilityCapability)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MANAGEABILITYCAPABILITY$14);
+ target.setStringValue(manageabilityCapability);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "ManageabilityCapability" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI insertNewManageabilityCapability(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().insert_element_user(MANAGEABILITYCAPABILITY$14, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "ManageabilityCapability" element
+ */
+ public org.apache.xmlbeans.XmlAnyURI addNewManageabilityCapability()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlAnyURI target = null;
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(MANAGEABILITYCAPABILITY$14);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "ManageabilityCapability" element
+ */
+ public void removeManageabilityCapability(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(MANAGEABILITYCAPABILITY$14, i);
+ }
+ }
+
+ /**
+ * Gets the "CurrentTime" element
+ */
+ public java.util.Calendar getCurrentTime()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURRENTTIME$16, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getCalendarValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "CurrentTime" element
+ */
+ public org.apache.xmlbeans.XmlDateTime xgetCurrentTime()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlDateTime target = null;
+ target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CURRENTTIME$16, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "CurrentTime" element
+ */
+ public void setCurrentTime(java.util.Calendar currentTime)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURRENTTIME$16, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURRENTTIME$16);
+ }
+ target.setCalendarValue(currentTime);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "CurrentTime" element
+ */
+ public void xsetCurrentTime(org.apache.xmlbeans.XmlDateTime currentTime)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlDateTime target = null;
+ target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CURRENTTIME$16, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(CURRENTTIME$16);
+ }
+ target.set(currentTime);
+ }
+ }
+
+ /**
+ * Gets the "OperationalStatus" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus.Enum getOperationalStatus()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPERATIONALSTATUS$18, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus.Enum)target.getEnumValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "OperationalStatus" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus xgetOperationalStatus()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus)get_store().find_element_user(OPERATIONALSTATUS$18, 0);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "OperationalStatus" element
+ */
+ public void setOperationalStatus(org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus.Enum operationalStatus)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPERATIONALSTATUS$18, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPERATIONALSTATUS$18);
+ }
+ target.setEnumValue(operationalStatus);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "OperationalStatus" element
+ */
+ public void xsetOperationalStatus(org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus operationalStatus)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus)get_store().find_element_user(OPERATIONALSTATUS$18, 0);
+ if (target == null)
+ {
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.OperationalStatus)get_store().add_element_user(OPERATIONALSTATUS$18);
+ }
+ target.set(operationalStatus);
+ }
+ }
+
+ /**
+ * Gets the "LastResponseTime" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric getLastResponseTime()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric)get_store().find_element_user(LASTRESPONSETIME$20, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "LastResponseTime" element
+ */
+ public void setLastResponseTime(org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric lastResponseTime)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric)get_store().find_element_user(LASTRESPONSETIME$20, 0);
+ if (target == null)
+ {
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric)get_store().add_element_user(LASTRESPONSETIME$20);
+ }
+ target.set(lastResponseTime);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "LastResponseTime" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric addNewLastResponseTime()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric)get_store().add_element_user(LASTRESPONSETIME$20);
+ return target;
+ }
+ }
+ }
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.properties
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.properties?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.properties (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.properties Tue Aug 30 06:29:12 2005
@@ -0,0 +1,14 @@
+# NOTE: This file is generated, but is meant to be modified.
+# It will NOT be overwritten by subsequent runs of Wsdl2Java.
+
+endpoint.url = http://localhost:8080/muse/services/testresource
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# webapp located somewhere other than the default location of
+# ../webapps/muse (e.g. \${env.CATALINA_HOME}/webapps/muse )
+#muse.webapp.dir =
+
+# Uncomment and modify the below lines if you require a proxy to connect to external web sites.
+#http.proxyHost = proxy.xyz.com
+#http.proxyPort = 8088
+#http.nonProxyHosts = localhost
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.xml
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.xml?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.xml (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/build.xml Tue Aug 30 06:29:12 2005
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+
+<!-- ***** WARNING: This file will be overwritten during generation. ***** -->
+
+<project name="TestResource_buildfile" default="usage" basedir=".">
+
+ <property environment="env" />
+ <property file="build.properties" />
+ <property file="../../build.properties" />
+ <property file="../build.properties" />
+
+ <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+ <property name="ant.home" value="env.ANT_HOME"/>
+
+ <property name="classes.dir" location="C:\cygwin\home\wire\workspaces\wsdm_interop_workspace\client\src\resource\target\TestResource\classes" />
+ <property name="jar.dir" location="C:\cygwin\home\wire\workspaces\wsdm_interop_workspace\client\src\resource\target\.xmlbeans\lib" />
+ <property name="src.dir" location="C:\cygwin\home\wire\workspaces\wsdm_interop_workspace\client\src\resource\target\TestResource\src\java" />
+ <property name="wsdl.file" location="C:\cygwin\home\wire\workspaces\wsdm_interop_workspace\client\src\resource\target\TestResource\src\java/../wsdl/testresource.wsdl" />
+
+ <target name="init" unless="TestResource.classpath">
+
+ <fail message="Please set the location of the muse.webapp.dir in build.properties" unless="muse.webapp.dir" />
+ <echo>Using webapp dir: ${muse.webapp.dir}</echo>
+ <path id="TestResource.classpath.id">
+ <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+ <fileset dir="${muse.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+ <fileset dir="${jar.dir}" />
+ <pathelement location="${activation.jar}" />
+ <pathelement location="${mail.jar}" />
+ </path>
+ <property name="TestResource.classpath" refid="TestResource.classpath.id" />
+
+ </target>
+
+ <target name="compile"
+ depends="init"
+ description="compile all classes below classes directory">
+ <mkdir dir="${classes.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="TestResource.classpath.id"
+ debug="on"
+ excludes="xmlbeans/**"/>
+ <copy todir="${classes.dir}">
+ <fileset dir="${src.dir}" excludes="**/*.java,**/package.html" />
+ </copy>
+ </target>
+
+ <target name="deploy"
+ depends="init"
+ description="deploys the TestResource service to the ${muse.webapp.dir} webapp">
+
+ <copy file="${wsdl.file}" todir="${muse.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />
+ <echo>Deploying TestResource classes to ${muse.webapp.dir}/WEB-INF/classes/...</echo>
+ <copy todir="${muse.webapp.dir}/WEB-INF/classes">
+ <fileset dir="${classes.dir}" />
+ </copy>
+
+ <copy file="${jar.dir}/testresource-xbeans.jar" todir="${muse.webapp.dir}/WEB-INF/lib" />
+ <!-- update server-config.wsdd using WsddUpdater -->
+ <taskdef name="wsddUpdater" classname="org.apache.ws.util.platform.axis.tool.WsddUpdater" classpathref="TestResource.classpath.id" />
+ <property name="config.wsdd" location="${muse.webapp.dir}/WEB-INF/server-config.wsdd" /> <!-- normalize path -->
+ <wsddUpdater configWsdd="${config.wsdd}">
+ <wsddPaths dir="${src.dir}" includes="**/TestResource_deploy.wsdd" />
+ </wsddUpdater>
+
+ <!-- update jndi-config.wsdd using JndiConfigUpdater -->
+ <taskdef name="jndiUpdater" classname="org.apache.ws.util.jndi.tools.JndiConfigUpdater" classpathref="TestResource.classpath.id" />
+ <property name="jndi.config" location="${muse.webapp.dir}/WEB-INF/classes/jndi-config.xml" /> <!-- normalize path -->
+ <jndiUpdater jndiConfig="${jndi.config}">
+ <jndiConfigPaths dir="${src.dir}" includes="**/TestResource_jndi-config.xml" />
+ </jndiUpdater>
+
+ </target>
+
+ <target name="sendRequest"
+ description="sends a request to the TestResource service">
+
+ <ant antfile="soapclient.xml">
+ <property name="url" value="${endpoint.url}" />
+ </ant>
+
+ </target>
+
+ <target name="clean" description="delete the generated source and class files">
+ <delete dir="${classes.dir}" />
+ </target>
+
+ <target name="usage">
+ <java classname="org.apache.tools.ant.Main">
+ <arg value="-buildfile" />
+ <arg value="${ant.file}" />
+ <arg value="-projecthelp" />
+ </java>
+ </target>
+
+</project>
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceHome.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceHome.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceHome.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceHome.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,39 @@
+package org.apache.ws.service.testresource;
+
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.commons.collections.map.ReferenceMap;
+import java.util.Map;
+
+/**
+ * The class acts as an extension of the AbstractResourceHome which
+ * maintains a reference to the STATIC map needed for accessing
+ * resources via JNDI. This ensures the resources will be accessible
+ * when serialized upon lookup from certain JNDI providers.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
+ */
+abstract class AbstractTestResourceHome extends AbstractResourceHome
+{
+
+ /**
+ * Map containing all TestResourceResource instances - this map <em>must</em> be static for
+ * compatibility with certain JNDI providers.
+ */
+ private static Map s_resources;
+
+ /**
+ * Returns a map of all TestResourceResource instances. Called by the {@link AbstractResourceHome}
+ * superclass.
+ */
+ protected synchronized final Map getResourceMap()
+ {
+ if ( s_resources == null )
+ {
+ s_resources = AbstractResourceHome.createResourceMap( m_resourceIsPersistent );
+ }
+ return s_resources;
+ }
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceResource.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceResource.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceResource.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceResource.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,152 @@
+
+package org.apache.ws.service.testresource;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * An abstract base class for the TestResource resource.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
+ */
+public abstract class AbstractTestResourceResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
+
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /** The EndpointReference for this resource **/
+ protected EndpointReference m_endpointReference;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+
+ /**
+ * A list of termination listeners to be notified when the resource is terminated.
+ */
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param listener DOCUMENT_ME
+ */
+ public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+ {
+ m_terminationListeners.add(listener);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID()
+ {
+ return m_id;
+ }
+
+ public void destroy()
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
+ for (int i = 0; i < m_terminationListeners.size(); i++)
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+ resourceTerminationEventListener.terminationOccurred(rte);
+ }
+ return;
+ }
+
+ public void init()
+ {
+
+ org.apache.ws.service.testresource.TestResourceResourcePropertiesDocument propsDoc = org.apache.ws.service.testresource.TestResourceResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ org.apache.ws.resource.properties.ResourceProperty topicProp = getResourcePropertySet().get( org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC );
+ topicProp.setCallback( new org.apache.ws.notification.base.TopicResourcePropertyCallback( getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty fixedTopicSetProp = getResourcePropertySet().get( org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET );
+ fixedTopicSetProp.setCallback( new org.apache.ws.notification.base.FixedTopicSetResourcePropertyCallback( getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty topicExpressionDialectsProp = getResourcePropertySet().get( org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS );
+ topicExpressionDialectsProp.setCallback( new org.apache.ws.notification.base.TopicExpressionDialectsResourcePropertyCallback() );
+
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+ *
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
+ public EndpointReference getEndpointReference()
+ {
+ return m_endpointReference;
+ }
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ *
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
+ public void setEndpointReference(EndpointReference epr)
+ {
+ m_endpointReference = epr;
+ }
+
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
+ {
+ return m_propSet;
+ }
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceService.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceService.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceService.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/AbstractTestResourceService.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,130 @@
+
+package org.apache.ws.service.testresource;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
+import org.apache.ws.resource.handler.WsrfService;
+import org.apache.ws.resource.AbstractPortType;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import javax.xml.namespace.QName;
+
+/**
+ * An abstract base class for the TestResource service.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
+ */
+public abstract class AbstractTestResourceService extends AbstractPortType
+ implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType {
+
+ public static final String TARGET_NSURI = "http://ws.apache.org/service/testresource";
+ public static final String TARGET_NSPREFIX = "testresource";
+
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractTestResourceService( ResourceContext resourceContext )
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestQname DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getMethodName( QName requestQname )
+ {
+ if ( !m_isInitialized )
+ {
+ init( );
+ }
+
+ return m_methodNameMap.getMethodName( requestQname );
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public final SoapMethodNameMap getMethodNameMap( )
+ {
+ return m_methodNameMap;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
+ {
+ m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://ws.apache.org/service/testresource}TestOperation") , "testOperation" );
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * @see org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType#getMultipleResourceProperties
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
+ }
+
+ /**
+ * @see
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).subscribe( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
+ }
+
+
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceCustomOperationsPortType.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceCustomOperationsPortType.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceCustomOperationsPortType.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,17 @@
+
+package org.apache.ws.service.testresource;
+
+/**
+ * An interface containing all custom operations from the TestResource service's
+ * most-derived portType.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
+ */
+public interface TestResourceCustomOperationsPortType
+{
+
+ public org.apache.ws.service.testresource.TestOperationResponseDocument testOperation( org.apache.ws.service.testresource.TestOperationDocument requestDoc ) ;
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceHome.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceHome.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceHome.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceHome.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,88 @@
+
+package org.apache.ws.service.testresource;
+
+import org.apache.ws.resource.Resource;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.ResourceContextException;
+import org.apache.ws.resource.ResourceException;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.addressing.EndpointReference;
+
+import javax.xml.namespace.QName;
+
+import java.io.Serializable;
+
+/**
+ * The home for TestResource resources.
+ * <p />
+ * NOTE: This file is generated, but is meant to be modified.
+ * It will NOT be overwritten by subsequent runs of Wsdl2Java.
+ */
+public class TestResourceHome
+ extends AbstractTestResourceHome
+ implements Serializable
+{
+
+ /** The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. **/
+ public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/service/testresource}TestResource");
+
+ /** The management PortType associated with this resource. This is useful for building EPR's.**/
+ public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/service/testresource}TestResourcePortType");
+
+ /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+ public static final String PORT_NAME = "TestResource";
+
+ /** The name of the resource key for this resource. **/
+ public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/service/testresource}ResourceIdentifier");
+
+ /**
+ * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+ */
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+ /** A constant for the JNDI Lookup name for this home. **/
+ public static final String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+
+ /**
+ * Create and add any resource instances.
+ *
+ * @throws Exception on error
+ */
+ public void init() throws Exception
+ {
+ super.init();
+ // TODO: Create and add any known resource instances here.
+ // If this is home for a singleton service (i.e. a service that exposes exactly one resource),
+ // use null as the resource identifier when creating the instance.
+ String instance1Id = "0001";
+ TestResourceResource instance1 = (TestResourceResource) createInstance( instance1Id );
+ add( instance1 );
+ }
+
+ public QName getServiceName()
+ {
+ return SERVICE_NAME;
+ }
+
+ public QName getPortType()
+ {
+ return PORT_TYPE;
+ }
+
+ public String getServicePortName()
+ {
+ return PORT_NAME;
+ }
+
+ public QName getResourceKeyNameQName()
+ {
+ return RESOURCE_KEY_NAME;
+ }
+
+ public org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceVersionHolder()
+ {
+ return SPEC_NAMESPACE_SET;
+ }
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourcePropertyQNames.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourcePropertyQNames.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourcePropertyQNames.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourcePropertyQNames.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,38 @@
+package org.apache.ws.service.testresource;
+
+import javax.xml.namespace.QName;
+
+/**
+ * QNames of the resource properties associated with the TestResource resource.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
+ */
+public interface TestResourcePropertyQNames
+{
+
+ QName LASTRESPONSETIME =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastResponseTime", "mows-xs");
+ QName TESTMETRIC =
+ new QName( "http://ws.apache.org/service/testresource", "TestMetric", "tns");
+ QName MANAGEABILITYCAPABILITY =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName PRICE =
+ new QName( "http://ws.apache.org/service/testresource", "Price", "tns");
+ QName NAME =
+ new QName( "http://ws.apache.org/service/testresource", "Name", "tns");
+ QName RESOURCEID =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
+ QName FIXEDTOPICSET =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName OPERATIONALSTATUS =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
+ QName CURRENTTIME =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");
+ QName TOPIC =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
+}
Added: webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceResource.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceResource.java?rev=264778&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceResource.java (added)
+++ webservices/muse/trunk/src/examples/client/src/resource/target/TestResource/src/java/org/apache/ws/service/testresource/TestResourceResource.java Tue Aug 30 06:29:12 2005
@@ -0,0 +1,182 @@
+
+package org.apache.ws.service.testresource;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+
+import org.apache.ws.muws.v1_0.MuwsConstants;
+import org.apache.ws.muws.v1_0.capability.IdentityCapability;
+import org.apache.ws.muws.v1_0.capability.ManageabilityCharacteristicsCapability;
+import org.apache.ws.muws.v1_0.capability.OperationalStatusCapability;
+import org.apache.ws.muws.v1_0.topics.ManagementEventTopic;
+import org.apache.ws.muws.v1_0.topics.impl.XmlBeansManagementEventTopicImpl;
+import org.apache.ws.notification.topics.TopicSpace;
+import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
+import org.apache.ws.service.testresource.AbstractTestResourceResource;
+import org.apache.ws.service.testresource.TestResourcePropertyQNames;
+import org.apache.xmlbeans.GDurationBuilder;
+import org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
+
+/**
+ * A TestResource WS-Resource.
+ * <p />
+ * NOTE: This file is generated, but is meant to be modified.
+ * It will NOT be overwritten by subsequent runs of Wsdl2Java.
+ */
+public class TestResourceResource extends AbstractTestResourceResource
+
+{
+
+ /**
+ * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+ */
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+
+ /**
+ * Initializes this resource's state (properties, etc.).
+ */
+ public void init()
+ {
+ super.init();
+
+ /**
+ * The ResourcePropertySet which contains all the defined ResourceProperties
+ */
+ org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+ org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+
+
+ try{
+ /** TOPICS * */
+ TopicSpace muwsTopicSpace = new TopicSpaceImpl(
+ MuwsConstants.NSURI_MUWS_PART2_TOPICS);
+ getTopicSpaceSet().addTopicSpace(muwsTopicSpace);
+
+ // identity
+ ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl(
+ IdentityCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(identityCapability);
+ // manageability
+ ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl(
+ ManageabilityCharacteristicsCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(manageabilityCharacteristicsCapability);
+
+ // operational status
+ ManagementEventTopic operationalCapability = new XmlBeansManagementEventTopicImpl(
+ OperationalStatusCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(operationalCapability);
+ /** END TOPICS * */
+
+ // DEFINE CAPABILITIES
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}
+ // ManageabilityCapability Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.MANAGEABILITYCAPABILITY);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+
+ // identity capability
+ prop_manageabilitycapability
+ .setManageabilityCapability(IdentityCapability.URI);
+ resourceProperty.add(prop_manageabilitycapability);
+
+ // operational status capability
+ prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory
+ .newInstance();
+ prop_manageabilitycapability
+ .setManageabilityCapability(OperationalStatusCapability.URI);
+ resourceProperty.add(prop_manageabilitycapability);
+
+ // manageability listener capability
+// resourceProperty
+// .addChangeListener(manageabilityCharacteristicsCapability);
+
+ // END DEFINE CAPABILITIES
+
+
+ // DEFINE PROPERTIES
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}
+ // ResourceId Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.RESOURCEID);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
+ prop_resourceid.setResourceId("urn:" + getID());
+ resourceProperty.add(prop_resourceid);
+ resourceProperty.addChangeListener(identityCapability);
+
+
+ // init the {http://ws.apache.org/service/testresource}
+ // Name Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.NAME);
+ org.apache.ws.service.testresource.NameDocument prop_name = org.apache.ws.service.testresource.NameDocument.Factory.newInstance();
+ prop_name.setName("UnitTestResource");
+ resourceProperty.add(prop_name);
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd}
+ // LastResponseTime Resource Property
+ Calendar resetAt = Calendar.getInstance();
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.LASTRESPONSETIME);
+ org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.LastResponseTimeDocument prop_lastresponsetime = org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.LastResponseTimeDocument.Factory.newInstance();
+ DurationMetric durationMetric = DurationMetric.Factory.newInstance();
+ GDurationBuilder builder = new GDurationBuilder(+1, 1, 2, 3, 4, 5,
+ 6, new BigDecimal("0.789"));
+ durationMetric.setGDurationValue(builder.toGDuration());
+ durationMetric.setLastUpdated(resetAt);
+ durationMetric.setResetAt(resetAt);
+ prop_lastresponsetime.setLastResponseTime(durationMetric);
+ resourceProperty.add(prop_lastresponsetime);
+
+
+ // init the {http://ws.apache.org/service/testresource}
+ // TestMetric Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.TESTMETRIC);
+ org.apache.ws.service.testresource.TestMetricDocument prop_testmetric = org.apache.ws.service.testresource.TestMetricDocument.Factory.newInstance();
+
+ org.apache.ws.service.testresource.TestMetricMetricType testMetricMetricType = prop_testmetric
+ .addNewTestMetric();
+ testMetricMetricType.setDoubleValue(100.0);
+ testMetricMetricType.setResetAt(resetAt);
+
+ resourceProperty.add(prop_testmetric);
+
+
+ // init the {http://ws.apache.org/service/testresource}
+ // Price Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.PRICE);
+ org.apache.ws.service.testresource.PriceDocument prop_price = org.apache.ws.service.testresource.PriceDocument.Factory.newInstance();
+ prop_price.setPrice(0.99);
+ resourceProperty.add(prop_price);
+
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}
+ // OperationalStatus Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.OPERATIONALSTATUS);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();
+ prop_operationalstatus
+ .setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+ resourceProperty.add(prop_operationalstatus);
+ resourceProperty.addChangeListener(operationalCapability);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}
+ // CurrentTime Resource Property
+ resourceProperty = resourcePropertySet.get(TestResourcePropertyQNames.CURRENTTIME);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CurrentTimeDocument prop_currenttime = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CurrentTimeDocument.Factory.newInstance();
+ prop_currenttime.setCurrentTime(Calendar.getInstance());
+ // TODO: Initialize the prop_currenttime by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_currenttime);
+
+
+ }
+ catch (Exception e)
+ {
+ throw new javax.xml.rpc.JAXRPCException("There was a problem in initializing your resource properties. Please check your init() method. Cause: " + e.getLocalizedMessage());
+ }
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic is implemented by the framework.
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects is implemented by the framework.
+
+
+
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org