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 sc...@apache.org on 2005/05/26 17:45:59 UTC
svn commit: r178646 [7/8] - in /incubator/muse/trunk/src/ieeedemo: ./ lib/
src/.xmlbeans/ src/.xmlbeans/src/ src/.xmlbeans/src/org/
src/.xmlbeans/src/org/wsdmdemo/ src/.xmlbeans/src/org/wsdmdemo/service/
src/.xmlbeans/src/org/wsdmdemo/service/weatherClientConfig/
src/.xmlbeans/src/org/wsdmdemo/service/weatherClientConfig/impl/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStation/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/
src/java/org/ src/java/org/wsdmdemo/ src/java/org/wsdmdemo/service/
src/java/org/wsdmdemo/service/weatherClientConfig/
src/java/org/wsdmdemo/service/weatherStation/
src/java/org/wsdmdemo/service/weatherStationDir/
Added: incubator/muse/trunk/src/ieeedemo/src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/WeatherStationDirectoryResourcePropertiesDocumentImpl.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/WeatherStationDirectoryResourcePropertiesDocumentImpl.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/WeatherStationDirectoryResourcePropertiesDocumentImpl.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/WeatherStationDirectoryResourcePropertiesDocumentImpl.java Thu May 26 08:45:57 2005
@@ -0,0 +1,889 @@
+/*
+ * An XML document type.
+ * Localname: WeatherStationDirectoryResourceProperties
+ * Namespace: http://wsdmdemo.org/service/weather-station-dir
+ * Java type: org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument
+ *
+ * Automatically generated - do not modify.
+ */
+package org.wsdmdemo.service.weatherStationDir.impl;
+/**
+ * A document containing one WeatherStationDirectoryResourceProperties(@http://wsdmdemo.org/service/weather-station-dir) element.
+ *
+ * This is a complex type.
+ */
+public class WeatherStationDirectoryResourcePropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument
+{
+
+ public WeatherStationDirectoryResourcePropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName WEATHERSTATIONDIRECTORYRESOURCEPROPERTIES$0 =
+ new javax.xml.namespace.QName("http://wsdmdemo.org/service/weather-station-dir", "WeatherStationDirectoryResourceProperties");
+
+
+ /**
+ * Gets the "WeatherStationDirectoryResourceProperties" element
+ */
+ public org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties getWeatherStationDirectoryResourceProperties()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties)get_store().find_element_user(WEATHERSTATIONDIRECTORYRESOURCEPROPERTIES$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "WeatherStationDirectoryResourceProperties" element
+ */
+ public void setWeatherStationDirectoryResourceProperties(org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties weatherStationDirectoryResourceProperties)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties)get_store().find_element_user(WEATHERSTATIONDIRECTORYRESOURCEPROPERTIES$0, 0);
+ if (target == null)
+ {
+ target = (org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties)get_store().add_element_user(WEATHERSTATIONDIRECTORYRESOURCEPROPERTIES$0);
+ }
+ target.set(weatherStationDirectoryResourceProperties);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "WeatherStationDirectoryResourceProperties" element
+ */
+ public org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties addNewWeatherStationDirectoryResourceProperties()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties target = null;
+ target = (org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties)get_store().add_element_user(WEATHERSTATIONDIRECTORYRESOURCEPROPERTIES$0);
+ return target;
+ }
+ }
+ /**
+ * An XML WeatherStationDirectoryResourceProperties(@http://wsdmdemo.org/service/weather-station-dir).
+ *
+ * This is a complex type.
+ */
+ public static class WeatherStationDirectoryResourcePropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.WeatherStationDirectoryResourceProperties
+ {
+
+ public WeatherStationDirectoryResourcePropertiesImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName TOPIC$0 =
+ 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$2 =
+ 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$4 =
+ 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$6 =
+ 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$8 =
+ 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 RELATIONSHIP$10 =
+ new javax.xml.namespace.QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship");
+
+
+ /**
+ * 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$0, 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$0, 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$0);
+ }
+ }
+
+ /**
+ * 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$0);
+ }
+ }
+
+ /**
+ * 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$0, 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$0, 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$0);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "Topic" element
+ */
+ public void removeTopic(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(TOPIC$0, 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$2, 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$2, 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$2, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIXEDTOPICSET$2);
+ }
+ 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$2, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(FIXEDTOPICSET$2);
+ }
+ 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$4, 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$4, 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$4, 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$4, 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$4);
+ }
+ }
+
+ /**
+ * Sets array of all "TopicExpressionDialects" element
+ */
+ public void setTopicExpressionDialectsArray(java.lang.String[] topicExpressionDialectsArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(topicExpressionDialectsArray, TOPICEXPRESSIONDIALECTS$4);
+ }
+ }
+
+ /**
+ * 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$4, 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$4);
+ }
+ }
+
+ /**
+ * 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$4, 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$4, 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$4);
+ 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$4, 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$4);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "TopicExpressionDialects" element
+ */
+ public void removeTopicExpressionDialects(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(TOPICEXPRESSIONDIALECTS$4, 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$6, 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$6, 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$6, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESOURCEID$6);
+ }
+ 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$6, 0);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(RESOURCEID$6);
+ }
+ 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$8, 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$8, 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$8, 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$8, 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$8);
+ }
+ }
+
+ /**
+ * Sets array of all "ManageabilityCapability" element
+ */
+ public void setManageabilityCapabilityArray(java.lang.String[] manageabilityCapabilityArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(manageabilityCapabilityArray, MANAGEABILITYCAPABILITY$8);
+ }
+ }
+
+ /**
+ * 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$8, 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$8);
+ }
+ }
+
+ /**
+ * 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$8, 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$8, 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$8);
+ 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$8, 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$8);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "ManageabilityCapability" element
+ */
+ public void removeManageabilityCapability(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(MANAGEABILITYCAPABILITY$8, i);
+ }
+ }
+
+ /**
+ * Gets array of all "Relationship" elements
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType[] getRelationshipArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(RELATIONSHIP$10, targetList);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType[] result = new org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets ith "Relationship" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType getRelationshipArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType)get_store().find_element_user(RELATIONSHIP$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Returns number of "Relationship" element
+ */
+ public int sizeOfRelationshipArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(RELATIONSHIP$10);
+ }
+ }
+
+ /**
+ * Sets array of all "Relationship" element
+ */
+ public void setRelationshipArray(org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType[] relationshipArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(relationshipArray, RELATIONSHIP$10);
+ }
+ }
+
+ /**
+ * Sets ith "Relationship" element
+ */
+ public void setRelationshipArray(int i, org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType relationship)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType)get_store().find_element_user(RELATIONSHIP$10, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(relationship);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "Relationship" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType insertNewRelationship(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType)get_store().insert_element_user(RELATIONSHIP$10, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "Relationship" element
+ */
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType addNewRelationship()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType target = null;
+ target = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType)get_store().add_element_user(RELATIONSHIP$10);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "Relationship" element
+ */
+ public void removeRelationship(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(RELATIONSHIP$10, i);
+ }
+ }
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,148 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * An abstract Weather-client-config WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractWeather-client-configResource 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.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+
+ //init the RelationshipsProperties Resource for sending Relationship events...NOTE: THIS DOES NOT REGISTER THE TOPICS
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet, this);
+
+
+ }
+
+ /**
+ * 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: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeather-client-configService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,145 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+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;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * This class should be generated on every "generation" against the WSDL.
+ * This will ensure it is always up-to-date with the WSDL.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractWeather-client-configService 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, org.apache.ws.muws.v1_0.capability.RelationshipsCapability {
+
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-client-config";
+ public static final String TARGET_NSPREFIX = "weather-client-config";
+
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeather-client-configService( 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://wsdmdemo.org/service/weather-client-config}SetWeatherStation") , "SetWeatherStation" );
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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 );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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 );
+ }
+
+
+
+org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument queryRelationshipsByType( org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument requestDoc )
+{
+ return new org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl( getResourceContext( ) ).queryRelationshipsByType( requestDoc );
+}
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/SetFailedFaultException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/SetFailedFaultException.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/SetFailedFaultException.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/SetFailedFaultException.java Thu May 26 08:45:57 2005
@@ -0,0 +1,46 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ */
+public class SetFailedFaultException
+ extends AbstractBaseFaultException
+{
+
+ private static final Messages MSG = MessagesImpl.getInstance();
+ private static final Log LOG = LogFactory.getLog( SetFailedFaultException.class );
+
+ private QName m_name;
+
+ /**
+ * Constructs a new SetFailedFaultException .
+ *
+ * @param namespaces
+ * @param faultString
+ */
+ public SetFailedFaultException( NamespaceVersionHolder namespaces, String faultString )
+ {
+ super( namespaces, faultString );
+ m_name = new QName( "http://wsdmdemo.org/service/weather-client-config", "SetFailedFaultException");
+ }
+
+ /**
+ * Returns the element name for this base fault.
+ *
+ * @return the element name for this base fault
+ */
+ public QName getBaseFaultName()
+ {
+ return m_name;
+ }
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configCustomOperationsPortType.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configCustomOperationsPortType.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configCustomOperationsPortType.java Thu May 26 08:45:57 2005
@@ -0,0 +1,17 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-client-configCustomOperationsPortType
+{
+
+ public org.wsdmdemo.service.weatherClientConfig.SetWeatherStationResponseDocument SetWeatherStation( org.wsdmdemo.service.weatherClientConfig.SetWeatherStationDocument requestDoc ) throws org.wsdmdemo.service.weatherClientConfig.SetFailedFaultException ;
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configHome.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configHome.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configHome.java Thu May 26 08:45:57 2005
@@ -0,0 +1,115 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+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.ResourceKey;
+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;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * Home for Weather-client-config WS-Resources.
+ */
+public class Weather-client-configHome
+ extends AbstractResourceHome
+ 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://wsdmdemo.org/service/weather-client-config}weather-client-config");
+
+ /** 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://wsdmdemo.org/service/weather-client-config}WeatherClientConfigPortType");
+
+ /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+ public static final String PORT_NAME = "weather-client-config";
+
+ /** The name of the resource key for this resource. **/
+ public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-client-config}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;
+
+ /**
+ *
+ * @param resourceContext
+ *
+ * @return A Resource
+ *
+ * @throws ResourceException
+ * @throws ResourceContextException
+ * @throws ResourceUnknownException
+ */
+ public Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ ResourceKey key = resourceContext.getResourceKey();
+ Resource resource = null;
+ try
+ {
+ resource = find( key ); //attempt to find from the underlying cache
+ }
+ catch ( ResourceException re )
+ {
+ //TODO add any checking for key validity if you plan to create instances here
+
+ /**
+ * Commented below is an example of creating a resource instance, adding its epr and adding to the cache.
+ * Note: You can set the EndpointReference on your Resource using the setter (not in Resource interface)
+ */
+
+ /*
+ try
+ {
+ Weather-client-configResource myresource = (Weather-client-configResource)createInstance(key); //this will create the resource IF it is has default constructor. It also calls init() on the resource.
+ //the next line will create an EPR
+ EndpointReference epr = getEndpointReference(resourceContext.getBaseURL( ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
+ myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
+ add(key, myresource); //make sure to add your instance to the underlying cache to be found in future requests using find(..)
+ }
+ catch (Exception e)
+ {
+ throw new ResourceException(e);
+ }
+ */
+
+ }
+ return resource;
+ }
+
+ 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;
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configPropertyQNames.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configPropertyQNames.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configPropertyQNames.java Thu May 26 08:45:57 2005
@@ -0,0 +1,31 @@
+package org.wsdmdemo.service.weatherClientConfig;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Weather-client-config WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-client-configPropertyQNames
+{
+
+ 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 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 RELATIONSHIP =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "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: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,98 @@
+
+package org.wsdmdemo.service.weatherClientConfig;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * A Weather-client-config WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class Weather-client-configResource extends AbstractWeather-client-configResource
+
+{
+
+ /**
+ * 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{
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-client-configPropertyQNames.MANAGEABILITYCAPABILITY);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+ // TODO: Initialize the prop_manageabilitycapability by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_manageabilitycapability);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-client-configPropertyQNames.RESOURCEID);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
+ // TODO: Initialize the prop_resourceid by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_resourceid);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-client-configPropertyQNames.OPERATIONALSTATUS);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();
+ // TODO: Initialize the prop_operationalstatus by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_operationalstatus);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-client-configPropertyQNames.RELATIONSHIP);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
+ // TODO: Initialize the prop_relationship by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_relationship);
+
+
+ }
+ 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.
+
+
+
+
+ /**
+ * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+ *
+ * </br>
+ * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
+ * </br>
+ * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+ * </br>
+ * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
+ * Concrete dialect.
+ * </br>
+ *
+ * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+ *
+ * @param topicSpaceSet
+ * @param propSet
+ */
+ org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet() , getResourcePropertySet());
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-configService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,65 @@
+package org.wsdmdemo.service.weatherClientConfig;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+
+import javax.xml.rpc.JAXRPCException;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * This class should be generated ONCE (and not overwritten) to maintain user-added code.
+ * If there is a change to the WSDL, then the generated implemented interfaces
+ * (representing the "base" portTypes) will change, thus showing a compile error to the
+ * user.
+ *
+ * NOTE: This class is generated. However, it will not be overwritten by subsequent
+ * calls to the code generator.
+ *
+ */
+public class Weather-client-configService
+ extends AbstractWeather-client-configService
+ implements Weather-client-configCustomOperationsPortType
+{
+
+
+ /**
+ * 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();
+
+ /**
+ * Creates a new {@link Weather-client-configService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public Weather-client-configService( ResourceContext resourceContext )
+ {
+ super(resourceContext);
+ init();
+ }
+
+ /**
+ * Returns a collection of Spec Namespaces associated with this Service
+ *
+ * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces
+ * associated with this service.
+ */
+ protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
+ {
+ return SPEC_NAMESPACE_SET;
+ }
+
+
+ public org.wsdmdemo.service.weatherClientConfig.SetWeatherStationResponseDocument SetWeatherStation( org.wsdmdemo.service.weatherClientConfig.SetWeatherStationDocument requestDoc ) throws org.wsdmdemo.service.weatherClientConfig.SetFailedFaultException
+ {
+ org.wsdmdemo.service.weatherClientConfig.SetWeatherStationResponseDocument responseDocument = org.wsdmdemo.service.weatherClientConfig.SetWeatherStationResponseDocument.Factory.newInstance();
+ org.wsdmdemo.service.weatherClientConfig.SetWeatherStationResponseDocument.SetWeatherStationResponse response = responseDocument.addNewSetWeatherStationResponse();
+ //TODO implement method and populate the response object
+ return responseDocument;
+ }
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_deploy.wsdd?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_deploy.wsdd (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_deploy.wsdd Thu May 26 08:45:57 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!-- **** WARNING: This file will be overwritten during generation **** -->
+<deployment xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <service name="weather-client-config" provider="java:WSRF" style="document" use="literal">
+
+ <wsdlFile>/wsdl/weather-client-config.wsdl</wsdlFile>
+
+ <requestFlow>
+ <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+ <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+ <parameter name="referencePropertyNames" value="*" />
+ </handler>
+ </requestFlow>
+
+ <responseFlow>
+ <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+ <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+ <parameter name="referencePropertyNames" value="*" />
+ </handler>
+ </responseFlow>
+
+ </service>
+
+</deployment>
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_jndi-config.xml?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_jndi-config.xml (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/Weather-client-config_jndi-config.xml Thu May 26 08:45:57 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+
+<!-- **** WARNING: This file will be overwritten during generation **** -->
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+ <service name="weather-client-config">
+ <resource name="home" type="org.wsdmdemo.service.weatherClientConfig.Weather-client-configHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherClientConfig.Weather-client-configService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherClientConfig.Weather-client-configResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-client-config</value>
+ </parameter>
+
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://wsdmdemo.org/service/weather-client-config}ResourceIdentifier</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
+
+</jndiConfig>
+
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,148 @@
+
+package org.wsdmdemo.service.weatherStation;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * An abstract Weather-station WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractWeather-stationResource 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.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+
+ //init the RelationshipsProperties Resource for sending Relationship events...NOTE: THIS DOES NOT REGISTER THE TOPICS
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet, this);
+
+
+ }
+
+ /**
+ * 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: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeather-stationService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,145 @@
+
+package org.wsdmdemo.service.weatherStation;
+
+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;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * This class should be generated on every "generation" against the WSDL.
+ * This will ensure it is always up-to-date with the WSDL.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractWeather-stationService 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, org.apache.ws.muws.v1_0.capability.RelationshipsCapability {
+
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station";
+ public static final String TARGET_NSPREFIX = "weather-station";
+
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeather-stationService( 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://wsdmdemo.org/service/weather-station}Recalibrate") , "Recalibrate" );
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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 );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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 );
+ }
+
+
+
+org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument queryRelationshipsByType( org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument requestDoc )
+{
+ return new org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl( getResourceContext( ) ).queryRelationshipsByType( requestDoc );
+}
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationCustomOperationsPortType.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationCustomOperationsPortType.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationCustomOperationsPortType.java Thu May 26 08:45:57 2005
@@ -0,0 +1,17 @@
+
+package org.wsdmdemo.service.weatherStation;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-stationCustomOperationsPortType
+{
+
+ public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument Recalibrate( org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc ) ;
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org