You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/06/12 18:06:57 UTC

svn commit: r413693 [1/3] - in /webservices/muse/trunk/modules/muse-wsdm-muws: specs/ src/org/apache/muse/ws/dm/muws/ src/org/apache/muse/ws/dm/muws/ext/ src/org/apache/muse/ws/dm/muws/ext/faults/ src/org/apache/muse/ws/dm/muws/impl/ src/org/apache/mus...

Author: danj
Date: Mon Jun 12 09:06:54 2006
New Revision: 413693

URL: http://svn.apache.org/viewvc?rev=413693&view=rev
Log:
Initial check-in of IBM-donated code for Muse 2.0 - with 
support for Axis2 (re-try after failure due to problem 
with email to muse-commits).

Currently, the modules that are not implementations of the 
WS-* specs - core, utils, WS-A/SOAP, etc. - have working 
Maven 2.0 build files. Right now they simply compile and 
write to the user's local $module/build directory. I have 
not determined how to get Maven to skip this intermediary 
copy and just put the jars in the user's local repository.

I currently use a script to build each module's POM file, 
but as I learn more about Maven I will hopefully find a way 
to aggregate POM files into one larger project. If not, I 
will provide a simple Ant script.

I'm not sure where the design doc should go, and don't 
want to mess with the web site yet, so please look at the 
design-doc.zip that was uploaded to JIRA along with the 
other IBM contributions until I determine the proper place.

Added:
    webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-PBM.xsd
    webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part1-1_1.xsd
    webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.wsdl
    webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.xsd
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Configuration.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelatableProperties.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Correlation.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelationFactory.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Description.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Identity.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCapability.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCharacteristics.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Match.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metric.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metrics.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/MuwsConstants.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/OperationalStatus.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Participant.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipResource.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipType.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Relationships.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/State.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/StateTransition.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/StateType.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ext/MuwsExtConstants.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ext/faults/RelationshipCreationFailedFault.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/AbstractManageabilityCapability.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/AllMatch.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/AnyMatch.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/ComplexMatch.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/MatchCorrelation.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/MatchFactory.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/MetricDecorationProvider.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/MetricOnDemandListener.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/MetricUpdateListener.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/QueryRelationships.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/QueryRelationshipsHandler.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/QueryRelationshipsResponse.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleConfiguration.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleCorrelatableProperties.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleCorrelationFactory.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleDescription.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleIdentity.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleManageabilityCharacteristics.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleMetric.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleMetrics.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleOperationalStatus.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleParticipant.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleRelationshipResource.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleRelationshipType.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleRelationships.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleState.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleStateTransition.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/SimpleStateType.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/impl/XPathCorrelation.java
    webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/remote/RelationshipsClient.java

Added: webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-PBM.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-PBM.xsd?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-PBM.xsd (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-PBM.xsd Mon Jun 12 09:06:54 2006
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema
+    targetNamespace="http://docs.oasis-open.org/wsdm/pbm.xsd"	
+    xmlns:pbm="http://docs.oasis-open.org/wsdm/pbm.xsd"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    elementFormDefault="qualified" attributeFormDefault="unqualified">
+
+  <xs:element name="Match" type="xs:QName"/>
+
+  <xs:complexType name="MatchAllType">
+    <xs:choice>
+      <xs:element ref="pbm:Match"/>
+      <xs:element ref="pbm:MatchAny"/>
+    </xs:choice>
+  </xs:complexType>
+
+  <xs:complexType name="MatchAnyType">
+    <xs:choice>
+      <xs:element ref="pbm:Match"/>
+      <xs:element ref="pbm:MatchAll"/>
+    </xs:choice>
+  </xs:complexType>
+
+  <xs:element name="MatchAll" type="pbm:MatchAllType"/>
+
+  <xs:element name="MatchAny" type="pbm:MatchAnyType"/>
+
+</xs:schema>
+
+
+

Added: webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part1-1_1.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part1-1_1.xsd?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part1-1_1.xsd (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part1-1_1.xsd Mon Jun 12 09:06:54 2006
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema
+    targetNamespace="http://docs.oasis-open.org/wsdm/muws1-2.xsd"	
+    xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
+    xmlns:wsa="http://www.w3.org/2005/08/addressing"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    elementFormDefault="qualified" attributeFormDefault="unqualified">
+
+    <xs:import namespace="http://www.w3.org/2005/08/addressing"
+             schemaLocation="WS-Addressing-2005_08.xsd"/>
+
+
+  <xs:element name="ResourceId" type="xs:anyURI"/>
+  <xs:element name="ManageabilityCapability" type="xs:anyURI"/>
+
+
+  <xs:complexType name="CorrelatablePropertiesType">
+    <xs:sequence>
+      <xs:any minOccurs="0" maxOccurs="unbounded"
+              namespace="##other" processContents="lax"/>
+    </xs:sequence>
+    <xs:attribute name="Dialect" type="xs:anyURI"/>
+    <xs:attribute name="NegativeAssertionPossible" type="xs:boolean"/>
+    <xs:anyAttribute namespace="##other"/>
+  </xs:complexType>
+
+  <xs:element name="CorrelatableProperties"
+              type="muws1:CorrelatablePropertiesType"/>
+
+ 
+  <xs:complexType name="ComponentAddressType">
+    <xs:sequence>
+      <xs:any namespace="##any" processContents="lax"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="ComponentType">
+    <xs:sequence>
+      <xs:element name="ResourceId" type="xs:anyURI"
+                  minOccurs="0"/>
+      <xs:element name="ComponentAddress"
+                  type="muws1:ComponentAddressType"
+                  minOccurs="0" maxOccurs="unbounded"/>
+      <xs:any minOccurs="0" maxOccurs="unbounded"
+              namespace="##other" processContents="lax"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other"/>
+  </xs:complexType>
+
+   
+  <xs:complexType name="ManagementEventType">
+    <xs:sequence>
+      <xs:element name="EventId" type="xs:anyURI"/>
+      <xs:element name="SourceComponent" type="muws1:ComponentType"/>
+      <xs:element name="ReporterComponent" type="muws1:ComponentType"
+                  minOccurs="0"/>
+      <xs:any minOccurs="0" maxOccurs="unbounded"
+              namespace="##other" processContents="lax"/>
+    </xs:sequence>
+    <xs:attribute name="ReportTime" type="xs:dateTime" use="optional"/>
+    <xs:anyAttribute namespace="##other"/>
+  </xs:complexType>
+
+  <xs:element name="ManagementEvent" 
+              type="muws1:ManagementEventType"/>
+
+  <xs:element name="ManageabilityEndpointReference"
+              type="wsa:EndpointReferenceType"/>
+
+
+<!--   
+                                       SCHEMA COPY Material
+Copy and paste element references below into the schema of a resource properties document.
+These references are provide to insure that the correct minOccurs/maxOccurs attributes are specified in a resource property document schema.
+
+NOTE: You must import the MUWS Part 1 schema namespace (MUWS1).
+
+        **    Identity Properties    **
+          <xs:element ref="muws1:ResourceId"/>
+
+
+        **    ManageabilityCharacteristics Properties    **
+          <xs:element ref="muws1:ManageabilityCapability"
+                      minOccurs="0" maxOccurs="unbounded"/>
+
+        **    Correlatable Properties    **
+          <xs:element ref="muws1:CorrelatableProperties"
+                      minOccurs="0" maxOccurs="unbounded"/>
+
+-->
+
+</xs:schema>
+

Added: webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.wsdl?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.wsdl (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.wsdl Mon Jun 12 09:06:54 2006
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions
+    targetNamespace="http://docs.oasis-open.org/wsdm/muws2-2.wsdl"
+    xmlns:muws-p2-wsdl="http://docs.oasis-open.org/wsdm/muws1-2.wsdl"
+    xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
+    xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
+    xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-1.xsd"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns="http://schemas.xmlsoap.org/wsdl/" name="muws2-2">
+
+  <types>
+    <xs:schema elementFormDefault="qualified"
+        targetNamespace="http://docs.oasis-open.org/wsdm/muws2-2.wsdl">
+	
+      <xs:import namespace="http://docs.oasis-open.org/wsdm/muws2-2.xsd" 
+          schemaLocation="WSDM-MUWS-Part2-1_1.xsd"/>
+
+      <xs:import namespace="http://docs.oasis-open.org/wsdm/muws1-2.xsd" 
+          schemaLocation="WSDM-MUWS-Part1-1_1.xsd"/>
+
+    </xs:schema>
+  </types>
+
+
+  <message name="QueryRelationshipsByTypeRequest">
+    <part name="body" element="muws2:QueryRelationshipsByType"/>
+  </message>
+
+  <message name="QueryRelationshipsByTypeResponse">
+    <part name="body" element="muws2:QueryRelationshipsByTypeResponse"/>
+  </message>
+
+</definitions>
+
+<!--   
+                                       WSDL COPY Material
+Copy and paste the operation specification below into a portType definition of the WSDL documents of a web service.
+
+NOTE: You must import the MUWS WSDL (wsdmmuws2-2).
+
+         <operation name="QueryRelationshipsByType">
+           <input name="QueryRelationshipsByTypeRequest"
+                  message="muws-p2-wsdl:QueryRelationshipsByTypeRequest"/>
+           <output name="QueryRelationshipsByTypeResponse"
+                   message="muws-p2-wsdl:QueryRelationshipsByTypeResponse"/>
+         </operation>
+
+-->

Added: webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.xsd?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.xsd (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/specs/WSDM-MUWS-Part2-1_1.xsd Mon Jun 12 09:06:54 2006
@@ -0,0 +1,656 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xs:schema targetNamespace="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
+	xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
+	xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
+	xmlns:wsa="http://www.w3.org/2005/08/addressing"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<xs:import namespace="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
+		schemaLocation="WSDM-MUWS-Part1-1_1.xsd" />
+	<xs:import namespace="http://www.w3.org/2005/08/addressing"
+		schemaLocation="WS-Addressing-2005_08.xsd" />
+	<xs:import namespace="http://www.w3.org/XML/1998/namespace"
+		schemaLocation="XML-Namespace-1998.xsd" />
+	<xs:complexType name="LangString">
+		<xs:simpleContent>
+			<xs:extension base="xs:string">
+				<xs:attribute ref="xml:lang" use="required" />
+				<xs:anyAttribute namespace="##other" />
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	<!-- Begin properties for the Description capability -->
+	<xs:element name="Caption" type="muws2:LangString" />
+	<xs:element name="Description" type="muws2:LangString" />
+	<xs:element name="Version" type="xs:string" />
+	<!-- End   properties for the Description capability -->
+	<xs:complexType name="CategoryType">
+		<xs:sequence>
+			<xs:any minOccurs="0" namespace="##any"
+				processContents="lax" />
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="StateType">
+		<xs:complexContent>
+			<xs:extension base="muws2:CategoryType" />
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="State" type="muws2:StateType" />
+	<xs:element name="EnteredState" type="muws2:StateType" />
+	<xs:element name="PreviousState" type="muws2:StateType" />
+	<xs:complexType name="StateTransitionType">
+		<xs:sequence>
+			<xs:element ref="muws2:EnteredState" />
+			<xs:element ref="muws2:PreviousState" minOccurs="0" />
+			<xs:any minOccurs="0" maxOccurs="unbounded"
+				namespace="##other" processContents="lax" />
+		</xs:sequence>
+		<xs:attribute name="TransitionIdentifier" type="xs:anyURI"
+			use="optional" />
+		<xs:attribute name="Time" type="xs:dateTime" use="required" />
+		<xs:anyAttribute namespace="##other" />
+	</xs:complexType>
+	<xs:element name="StateTransition" type="muws2:StateTransitionType" />
+	<!-- Begin properties for the OperationalStatus capability -->
+	<xs:element name="OperationalStatus">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="Available" />
+				<xs:enumeration value="PartiallyAvailable" />
+				<xs:enumeration value="Unavailable" />
+				<xs:enumeration value="Unknown" />
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:element>
+	<!-- End   properties for the OperationalStatus capability -->
+	<xs:attributeGroup name="MetricAttributes">
+		<xs:attribute name="ResetAt" type="xs:dateTime" />
+		<xs:attribute name="LastUpdated" type="xs:dateTime" />
+		<xs:attribute name="Duration" type="xs:duration" />
+	</xs:attributeGroup>
+	<!-- Begin properties for the Metrics capability -->
+	<xs:element name="CurrentTime" type="xs:dateTime" />
+	<!-- End   properties for the Metrics capability -->
+	<xs:complexType name="RelationshipTypeType">
+		<xs:complexContent>
+			<xs:extension base="muws2:CategoryType" />
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="Self">
+		<xs:complexType />
+	</xs:element>
+	<xs:complexType name="RelationshipParticipantType">
+		<xs:sequence>
+			<xs:element ref="muws2:Self" minOccurs="0" />
+			<xs:element ref="muws1:ManageabilityEndpointReference"
+				minOccurs="0" maxOccurs="unbounded" />
+			<xs:element ref="wsa:EndpointReference" minOccurs="0"
+				maxOccurs="unbounded" />
+			<xs:element ref="muws1:ResourceId" minOccurs="0" />
+			<xs:element name="Role" type="xs:anyURI" />
+			<xs:any minOccurs="0" maxOccurs="unbounded"
+				namespace="##other" processContents="lax" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" />
+	</xs:complexType>
+	<!-- Begin properties for the RelationshipResource capability -->
+	<xs:element name="Name" type="xs:string" />
+	<xs:element name="Type" type="muws2:RelationshipTypeType" />
+	<xs:element name="Participant"
+		type="muws2:RelationshipParticipantType" />
+	<!-- End   properties for the RelationshipResource capability -->
+	<xs:complexType name="RelationshipType">
+		<xs:sequence>
+			<xs:element ref="muws2:Name" minOccurs="0" />
+			<xs:element ref="muws2:Type" />
+			<xs:element ref="muws2:Participant" minOccurs="2"
+				maxOccurs="unbounded" />
+			<xs:element name="AccessEndpointReference"
+				type="wsa:EndpointReferenceType" minOccurs="0" />
+			<xs:any minOccurs="0" maxOccurs="unbounded"
+				namespace="##other" processContents="lax" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" />
+	</xs:complexType>
+	<!-- Begin properties for the Relationship capability -->
+	<xs:element name="Relationship" type="muws2:RelationshipType" />
+	<!-- End   properties for the Relationship capability -->
+	<xs:element name="RelationshipCreatedNotification">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element ref="muws2:Relationship" />
+				<xs:any minOccurs="0" maxOccurs="unbounded"
+					namespace="##other" processContents="lax" />
+			</xs:sequence>
+			<xs:anyAttribute namespace="##other" />
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="RelationshipDeletedNotification">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element ref="muws2:Relationship" />
+				<xs:any minOccurs="0" maxOccurs="unbounded"
+					namespace="##other" processContents="lax" />
+			</xs:sequence>
+			<xs:anyAttribute namespace="##other" />
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="QueryRelationshipsByType">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="RequestedType" type="xs:QName" />
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="QueryRelationshipsByTypeResponse">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element ref="muws2:Relationship" minOccurs="0"
+					maxOccurs="unbounded" />
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="CreationNotification">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element ref="muws1:ManageabilityEndpointReference"
+					minOccurs="0" maxOccurs="unbounded" />
+			</xs:sequence>
+			<xs:anyAttribute namespace="##other" />
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="DestructionNotification">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element ref="muws1:ResourceId" minOccurs="0" />
+			</xs:sequence>
+			<xs:anyAttribute namespace="##other" />
+		</xs:complexType>
+	</xs:element>
+	<xs:complexType name="SituationCategoryType">
+		<xs:complexContent>
+			<xs:extension base="muws2:CategoryType" />
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:complexType name="SubstitutableMsgType">
+		<xs:sequence>
+			<xs:element name="Value" type="xs:anySimpleType"
+				minOccurs="0" maxOccurs="unbounded" />
+		</xs:sequence>
+		<xs:attribute name="MsgId" type="xs:string" use="required" />
+		<xs:attribute name="MsgIdType" type="xs:anyURI" use="required" />
+	</xs:complexType>
+	<xs:complexType name="SituationType">
+		<xs:sequence>
+			<xs:element name="SituationCategory"
+				type="muws2:SituationCategoryType" />
+			<xs:element name="SuccessDisposition" minOccurs="0">
+				<xs:simpleType>
+					<xs:restriction base="xs:string">
+						<xs:enumeration value="Successful" />
+						<xs:enumeration value="Unsuccessful" />
+					</xs:restriction>
+				</xs:simpleType>
+			</xs:element>
+			<xs:element name="SituationTime" type="xs:dateTime" />
+			<xs:element name="Priority" type="xs:short" minOccurs="0" />
+			<xs:element name="Severity" type="xs:short" minOccurs="0" />
+			<xs:element name="Message" type="muws2:LangString"
+				minOccurs="0" />
+			<xs:element name="SubstitutableMsg"
+				type="muws2:SubstitutableMsgType" minOccurs="0" />
+		</xs:sequence>
+	</xs:complexType>
+	<xs:element name="Situation" type="muws2:SituationType" />
+	<xs:complexType name="EventCorrelationPropertiesType">
+		<xs:sequence>
+			<xs:element name="repeatCount" minOccurs="0"
+				maxOccurs="1">
+				<xs:simpleType>
+					<xs:restriction base="xs:short">
+						<xs:minInclusive value="0" />
+					</xs:restriction>
+				</xs:simpleType>
+			</xs:element>
+			<xs:element name="elapsedTime" minOccurs="0"
+				maxOccurs="1">
+				<xs:simpleType>
+					<xs:restriction base="xs:long">
+						<xs:minInclusive value="0" />
+					</xs:restriction>
+				</xs:simpleType>
+			</xs:element>
+		</xs:sequence>
+		<xs:attribute name="sequenceNumber" type="xs:unsignedLong" />
+	</xs:complexType>
+	<xs:element name="EventCorrelationProperties"
+		type="muws2:EventCorrelationPropertiesType" />
+	<xs:complexType name="MsgCatalogInformationType">
+		<xs:sequence>
+			<xs:element name="msgCatalog" type="xs:anyURI"
+				minOccurs="1" />
+			<xs:element name="msgCatalogType" type="xs:anyURI"
+				minOccurs="0" />
+		</xs:sequence>
+	</xs:complexType>
+	<xs:element name="MsgCatalogInformation"
+		type="muws2:MsgCatalogInformationType" />
+	<!-- #####   Metadata description elements   ##### -->
+	<xs:element name="Capability" type="xs:anyURI" />
+	<xs:complexType name="DialectableExpressionType" mixed="true">
+		<xs:sequence>
+			<xs:any namespace="##other" processContents="lax"
+				minOccurs="0" maxOccurs="unbounded" />
+		</xs:sequence>
+		<xs:attribute name="Dialect" type="xs:anyURI" use="required" />
+		<xs:anyAttribute namespace="##other" />
+	</xs:complexType>
+	<xs:element name="ValidWhile"
+		type="muws2:DialectableExpressionType" />
+	<xs:element name="Units" type="xs:string" />
+	<xs:element name="ChangeType">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="Counter" />
+				<xs:enumeration value="Gauge" />
+				<xs:enumeration value="Unknown" />
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:element>
+	<xs:element name="TimeScope">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="Interval" />
+				<xs:enumeration value="PointInTime" />
+				<xs:enumeration value="SinceReset" />
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:element>
+	<xs:element name="GatheringTime">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="OnChange" />
+				<xs:enumeration value="Periodic" />
+				<xs:enumeration value="OnDemand" />
+				<xs:enumeration value="Unknown" />
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:element>
+	<xs:element name="CalculationInterval" type="xs:duration" />
+	<xs:element name="MetricGroup" type="xs:anyURI" />
+	<xs:element name="PostCondition"
+		type="muws2:DialectableExpressionType" />
+	<!-- =========   StartSituation   ============  -->
+	<xs:element name="StartSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="StartInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StartSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="RestartInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StartSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="StartCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StartSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   StopSituation   ============  -->
+	<xs:element name="StopSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="StopInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StopSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="AbortInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StopSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="PauseInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StopSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="StopCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:StopSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   RequestSituation   ============  -->
+	<xs:element name="RequestSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="RequestInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:RequestSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="RequestCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:RequestSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   DestroySituation   ============  -->
+	<xs:element name="DestroySituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="DestroyInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:DestroySituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="DestroyCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:DestroySituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   CreateSituation   ============  -->
+	<xs:element name="CreateSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="CreateInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:CreateSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="CreateCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:CreateSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   ConnectSituation   ============  -->
+	<xs:element name="ConnectSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="ConnectInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ConnectSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="ReconnectInitiated">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ConnectSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="ConnectCompleted">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ConnectSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   ReportSituation   ============  -->
+	<xs:element name="ReportSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="PerformanceReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="SecurityReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="HeartbeatReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="StatusReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="TraceReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="DebugReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="LogReport">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType">
+					<xs:sequence>
+						<xs:element ref="muws2:ReportSituation" />
+					</xs:sequence>
+				</xs:restriction>
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   AvailabilitySituation   ============  -->
+	<xs:element name="AvailabilitySituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   CapabilitySituation   ============  -->
+	<xs:element name="CapabilitySituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   ConfigureSituation   ============  -->
+	<xs:element name="ConfigureSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!-- =========   OtherSituation   ============  -->
+	<xs:element name="OtherSituation">
+		<xs:complexType>
+			<xs:complexContent>
+				<xs:restriction base="muws2:SituationCategoryType" />
+			</xs:complexContent>
+		</xs:complexType>
+	</xs:element>
+	<!--   
+		SCHEMA COPY Material
+		Copy and paste element references below into the schema of a resource properties document.
+		These references insure that the correct minOccurs/maxOccurs attributes are specified in a resource property document schema.
+		
+		NOTE: You must import the MUWS Part 2 schema namespace (MUWS2).
+		
+		**    Description Properties    **
+		<xs:element ref="muws2:Caption"
+		minOccurs="0" maxOccurs="unbounded"/>
+		<xs:element ref="muws2:Description"
+		minOccurs="0" maxOccurs="unbounded"/>
+		<xs:element ref="muws2:Version"
+		minOccurs="0"/>
+		
+		**    Operational Status        **
+		<xs:element ref="muws2:OperationalStatus"/>
+		
+		**    Metrics                   **
+		<xs:element ref="muws2:CurrentTime"/>
+		
+		**    Relationship              **
+		<xs:element ref="muws2:Relationship"
+		minOccurs="0" maxOccurs="unbounded"/>
+		
+		**    Relationship Resource     **
+		<xs:element ref="muws2:Name" minOccurs="0"/>
+		<xs:element ref="muws2:Type"/>
+		<xs:element ref="muws2:Participant"
+		minOccurs="2" maxOccurs="unbounded"/>
+		
+	-->
+</xs:schema>
\ No newline at end of file

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Configuration.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Configuration.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Configuration.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Configuration.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,34 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+/**
+ *
+ * This is an internal representation of the Configuration capability, which 
+ * defines no properties, operations, or events. It currently exists purely 
+ * to define the semantics of modifiable resource properties.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Configuration extends ManageabilityCapability
+{
+    //
+    // no additional methods
+    //
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelatableProperties.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelatableProperties.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelatableProperties.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelatableProperties.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,72 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.addressing.soap.SoapFault;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ *
+ * This is an internal representation of the CorrelatableProperties capability.
+ * 
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface CorrelatableProperties extends ManageabilityCapability
+{
+    QName[] PROPERTIES = new QName[]{ 
+        MuwsConstants.CORRELATABLE_QNAME
+    };
+    
+    /**
+     * 
+     * @param correlation
+     *        A new correlation expression that will be recorded in a new 
+     *        instance of CorrelatableProperties.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP based error.</li>
+     *         </ul>
+     *
+     */
+    void addCorrelation(Correlation correlation)
+        throws BaseFault;
+    
+    /**
+     * 
+     * @return The Correlation expressions defined in the instances of 
+     *         CorrelatableProperties. Each Correlation can be evaluated 
+     *         against a target Resource, and there is no requirement that 
+     *         a caller use all Correlations to decide whether two resources 
+     *         are the same.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP based error.</li>
+     *         </ul>
+     */
+    Correlation[] getCorrelatableProperties()
+        throws BaseFault;
+    
+    boolean matches(EndpointReference epr)
+        throws SoapFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Correlation.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Correlation.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Correlation.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Correlation.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,107 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import org.apache.muse.util.xml.XmlSerializable;
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.addressing.soap.SoapFault;
+import org.apache.muse.ws.resource.WsResource;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ *
+ * Correlation is used to evaluate 
+ * {@linkplain CorrelatableProperties CorrelatableProperties} expressions 
+ * and determine if two endpoints point to the same resource instance. A 
+ * resource that supports the CorrelatableProperties capability can define 
+ * more than one Correlation; each Correlation represents one instance of 
+ * the CorrelatableProperties resource property (the capability and property 
+ * names are the same).
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Correlation extends XmlSerializable
+{
+    /**
+     * 
+     * @return The dialect, or type, of the correlation expression. Users 
+     *         may define their own correlation types and declare the syntax 
+     *         with this method.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP based error.</li>
+     *         </ul>
+     *
+     */
+    String getDialect()
+        throws BaseFault;
+    
+    /**
+     * 
+     * @return The local resource that is defining the CorrelatableProperties 
+     *         capability and, thus, this correlation expression.
+     *
+     */
+    WsResource getWsResource();
+    
+    /**
+     * 
+     * @return True if there is a guarantee that two resources are not the 
+     *         same when matches(Resource) returns 'false'. If this method 
+     *         returns 'false', the caller must rely on some other means to 
+     *         confirm that the resources are, in fact, different.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP based error.</li>
+     *         </ul>
+     *
+     */
+    boolean hasNegativeAssertion()
+        throws BaseFault;
+    
+    /**
+     * 
+     * @param epr
+     *        The EPR of another resource which may be the same as this 
+     *        resource.
+     * 
+     * @return True if the two resources are the same according to their 
+     *         WSDM ResourceId values or their WSDM CorrelatableProperties 
+     *         expressions. Note that if the method returns 'false', this 
+     *         does not guarantee that the two resources are actually 
+     *         different - you can only confirm this by checking with the 
+     *         hasNegativeAssertions() method.
+     * 
+     * @throws SoapFault
+     *         <ul>
+     *         <li>If there is a problem reading the correlatable properties 
+     *         from either resource.</li>
+     *         <li>If the values or dialects of the correlatable properties 
+     *         are not supported. The built-in dialects are WSDM Property 
+     *         Boolean Match (PBM) and XPath 1.0.</li>
+     *         </ul>
+     * 
+     * @see #hasNegativeAssertion()
+     *
+     */
+    boolean matches(EndpointReference epr)
+        throws SoapFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelationFactory.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelationFactory.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelationFactory.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/CorrelationFactory.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,62 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.WsResource;
+
+/**
+ *
+ * CorrelationFactory is a device for creating correlation expressions from 
+ * their XML definitions without having to deal with concrete expression types.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface CorrelationFactory
+{
+    /**
+     * 
+     * @param dialect
+     * 
+     * @return True if the factory can create Correlations of the given type.
+     *
+     */
+    boolean hasDialect(String dialect);
+    
+    /**
+     * 
+     * Parses the given Element and creates a complete Correlation expression 
+     * that can be evaluated against any WS-RF resource.
+     *
+     * @param owner
+     *        The local resource that is implementing CorrelatableProperties.
+     * 
+     * @param xml
+     *        The DOM Element representing the expression. This fragment 
+     *        should have a root element whose QName is the MUWS (Part 1) 
+     *        CorrelatableProperties and which has a 'Dialect' attribute. 
+     *        The latter will be used to determine the type of Correlation 
+     *        to create.
+     * 
+     * @return A Correlation that can be evaluated against any WS-RF resource.
+     *
+     */
+    Correlation newInstance(WsResource resource, Element xml);
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Description.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Description.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Description.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Description.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,105 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ * 
+ * This is an internal representation of the WSDM Description capability. It 
+ * provides convenience methods for the Description properties (Description 
+ * defines no operations of its own).
+ * 
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Description extends ManageabilityCapability 
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.CAPTION_QNAME, 
+        MuwsConstants.DESCRIPTION_QNAME, 
+        MuwsConstants.VERSION_QNAME 
+    };
+    
+    /**
+     * 
+     * @return All instances of the Caption property. If there are no 
+     *         copies of Caption, the array will be empty.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while looking up the Caption.</li>
+     *         </ul>
+     *
+     */
+	String[] getCaption() 
+        throws BaseFault;
+    
+    /**
+     * 
+     * @return All instances of the Description property. If there are no 
+     *         copies of Description, the array will be empty.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while looking up the 
+     *         Description.</li>
+     *         </ul>
+     *
+     */
+	String[] getDescription() 
+        throws BaseFault;
+    
+    String getVersion() 
+        throws BaseFault;
+    
+    /**
+     * 
+     * Sets (updates or inserts) the Caption values.
+     *
+     * @param captions
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while setting the Caption.</li>
+     *         </ul>
+     *
+     */
+    void setCaption(String[] captions) 
+        throws BaseFault;
+    
+    /**
+     * 
+     * Sets (updates or inserts) the Description values.
+     *
+     * @param descriptions
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while setting the Description.</li>
+     *         </ul>
+     *
+     */
+    void setDescription(String[] descriptions) 
+        throws BaseFault;
+    
+    void setVersion(String version)
+        throws BaseFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Identity.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Identity.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Identity.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Identity.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,55 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ * 
+ * This is an internal representation of the WSDM Identity capability. It 
+ * provides convenience methods for the Identity properties (Identity defines 
+ * no operations of its own).
+ * 
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Identity extends ManageabilityCapability 
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.RESOURCE_ID_QNAME
+    };
+        
+    /**
+     * 
+     * @return The resource's unique ID, which is the value of the ResourceId 
+     *         property. This is typically implemented as a UUID, but this is 
+     *         not required.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while looking up the ResourceId.</li>
+     *         </ul>
+     *
+     */
+    public URI getResourceId() 
+        throws BaseFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCapability.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCapability.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCapability.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,26 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import org.apache.muse.ws.resource.WsResourceCapability;
+
+public interface ManageabilityCapability extends WsResourceCapability
+{
+    //
+    // no additional methods (yet)
+    //
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCharacteristics.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCharacteristics.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCharacteristics.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/ManageabilityCharacteristics.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,64 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ * 
+ * This is an internal representation of the WSDM ManageabilityCharacteristics 
+ * capability. It provides convenience methods for accessing its one property, 
+ * which is WSDM's ManageabilityCapability. Note that the values of this 
+ * property is not set by this capability but by other capabilities that are 
+ * registering themselves with the resource; this capability merely provides 
+ * a method for reading those values.
+ * 
+ * @author Dan Jemiolo (danj)
+ * 
+ */
+
+public interface ManageabilityCharacteristics extends ManageabilityCapability
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.MANAGEABILITY_CAPABILITY_QNAME 
+    };
+        
+    void addManageabilityCapability(String capabilityURI)
+        throws BaseFault;
+    
+    /**
+     * 
+     * @return A List of Strings, where each String defines one manageability 
+     *         capability exposed by the resource. This List will contain 
+     *         URIs for all of the core capabilities as well as the 
+     *         user-defined capabilities.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while looking up the 
+     *         ManageabilityCapability.</li>
+     *         </ul>
+     *
+     */
+	String[] getManageabilityCapability() 
+        throws BaseFault;
+    
+    boolean hasManageabilityCapability(String capabilityURI) 
+        throws BaseFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Match.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Match.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Match.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Match.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,78 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import java.util.List;
+
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.addressing.soap.SoapFault;
+import org.apache.muse.ws.resource.WsResource;
+import org.apache.muse.util.xml.XmlSerializable;
+
+/**
+ *
+ * Match represents correlation expressions formatted with the MUWS Simple 
+ * Property Boolean Match (PBM) schema. PBM allows the user to declare fairly 
+ * complex conditionals for evaluating two resources for equality. The 
+ * official PBM Match types are Match, MatchAll, and MatchAny.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Match extends XmlSerializable
+{
+    /**
+     * 
+     * @param child
+     *        A subexpression that must be evaluated as part of this 
+     *        larger expression.
+     *
+     */
+    void addMatch(Match child);
+    
+    /**
+     * 
+     * @return An ordered list of subexpressions in this Match. If there are 
+     *         no subexpressions, the list is empty.
+     *
+     */
+    List getMatches();
+
+    /**
+     * 
+     * @return The local resource that is defining the CorrelatableProperties 
+     *         capability and, thus, this correlation expression.
+     *
+     */
+    WsResource getWsResource();
+    
+    /**
+     * 
+     * @param epr
+     *        The EPR to another resource which may be the same as this 
+     *        resource.
+     * 
+     * @return True if the two resources are the same according to the 
+     *         conditional test executed by the Match.
+     * 
+     */
+    boolean matches(EndpointReference epr)
+        throws SoapFault;
+    
+    void removeMatch(Match child);
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metric.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metric.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metric.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metric.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,85 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import java.net.URI;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.WsResource;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+public interface Metric
+{
+    int COUNTER = 1;
+
+    int GAUGE = 2;
+
+    int UNKNOWN = 3;
+
+    int INTERVAL = 4;
+
+    int POINT_IN_TIME = 5;
+
+    int SINCE_RESET = 6;
+
+    int ON_CHANGE = 7;
+
+    int ON_DEMAND = 8;
+
+    int PERIODIC = 9;
+
+    WsResource getWsResource();
+
+    String getDuration();
+
+    URI getGroup();
+
+    long getInterval();
+
+    String getIntervalString();
+
+    Date getLastUpdated();
+
+    QName getName();
+
+    Date getResetAt();
+
+    boolean hasBeenReset();
+
+    boolean isCounter();
+
+    boolean isGauge();
+
+    boolean isInterval();
+
+    boolean isOnChange();
+
+    boolean isOnDemand();
+
+    boolean isPeriodic();
+
+    boolean isPointInTime();
+
+    boolean isSinceReset();
+
+    void reset(Object value) 
+        throws BaseFault;
+
+    void update();
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metrics.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metrics.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metrics.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Metrics.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,63 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ *
+ * Metrics is an internal representation of the Metrics capability. It 
+ * provides access to the one Metrics property (CurrentTime) along with 
+ * methods for reading and modifying metrics based on existing properties.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface Metrics extends ManageabilityCapability
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.CURRENT_TIME_QNAME
+    };
+    
+    /**
+     * 
+     * @return The current time, according to the resource or its manager.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP-based error.</li>
+     *         </ul>
+     * 
+     */
+    Date getCurrentTime() 
+        throws BaseFault;
+    
+    /**
+     * 
+     * @param propertyQName
+     *        The name of the property that is also defined as a metric.
+     * 
+     * @return The collection of metadata for the metric.
+     *
+     */
+    Metric getMetric(QName propertyQName);
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/MuwsConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/MuwsConstants.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/MuwsConstants.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/MuwsConstants.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,358 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+/**
+ *
+ * MuwsConstants is a collection of properties that is useful when programming 
+ * against the WSDM MUWS spec (parts 1 and 2).
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public class MuwsConstants
+{
+    /**
+     * 
+     * The base for all WSDM capability URIs.
+     * 
+     */
+    public static final String BASE_CAPABILITIES_URI = 
+        "http://docs.oasis-open.org/wsdm/muws/capabilities";
+    
+    /**
+     * 
+     * The WSDM Advertisement namespace URI.
+     * 
+     */
+    public static final String ADVERTISEMENT_URI = 
+        BASE_CAPABILITIES_URI + "/Advertisement";
+    
+    /**
+     * 
+     * The WSDM ManageabilityCharacteristics namespace URI.
+     * 
+     */
+    public static final String CHARACTERISTICS_URI = 
+        BASE_CAPABILITIES_URI + "/ManageabilityCharacteristics";
+
+    /**
+     * 
+     * The WSDM Configuration namespace URI.
+     * 
+     */
+    public static final String CONFIGURATION_URI = 
+        BASE_CAPABILITIES_URI + "/Configuration";
+    
+    /**
+     * 
+     * The WSDM CorrelatableProperties namespace URI.
+     * 
+     */
+    public static final String CORRELATABLE_URI = 
+        BASE_CAPABILITIES_URI + "/CorrelatableProperties";
+    
+    /**
+     * 
+     * The WSDM Description namespace URI.
+     * 
+     */
+    public static final String DESCRIPTION_URI = 
+        BASE_CAPABILITIES_URI + "/Description";
+
+    /**
+     * 
+     * The WSDM Identity namespace URI.
+     * 
+     */
+    public static final String IDENTITY_URI = 
+        BASE_CAPABILITIES_URI + "/Identity";
+
+    /**
+     * 
+     * The WSDM Metrics namespace URI.
+     * 
+     */
+    public static final String METRICS_URI = 
+        BASE_CAPABILITIES_URI + "/Metrics";
+    
+    /**
+     * 
+     * The WSDM OperationalStatus namespace URI.
+     * 
+     */
+    public static final String OP_STATUS_URI = 
+        BASE_CAPABILITIES_URI + "/OperationalStatus";
+    
+    /**
+     * 
+     * The WSDM Relationships namespace URI.
+     * 
+     */
+    public static final String RELATIONSHIPS_URI = 
+        BASE_CAPABILITIES_URI  + "/Relationships";
+    
+    public static final String RELATIONSHIP_RESOURCE_URI = 
+        BASE_CAPABILITIES_URI + "/RelationshipResource";
+
+    /**
+     * 
+     * The WSDM State namespace URI.
+     * 
+     */
+    public static final String STATE_URI = 
+        BASE_CAPABILITIES_URI + "/State";
+    
+    /**
+     * 
+     * The CorrelatableProperties "Property Boolean Match" URI.
+     * 
+     */
+    public static final String PBM_URI = 
+        "http://docs.oasis-open.org/wsdm/2004/12/pbm";
+    
+    //
+    // CorrelatableProperties names and attributes
+    //
+    
+    public static final String PBM_PREFIX = "pbm";
+    
+    public static final QName MATCH_QNAME = 
+        new QName(PBM_URI, "Match", PBM_PREFIX);
+    
+    public static final QName MATCH_ALL_QNAME = 
+        new QName(PBM_URI, "MatchAll", PBM_PREFIX);
+    
+    public static final QName MATCH_ANY_QNAME = 
+        new QName(PBM_URI, "MatchAny", PBM_PREFIX);
+    
+    public static final String DIALECT = "Dialect";
+    
+    public static final String NEGATIVE = "NegativeAssertionPossible";
+    
+    /**
+     * 
+     * The prefix of the WS-N SimpleTopicSpace for all WSDM Topics.
+     * 
+     */
+    public static final String MUWS_EVENTS_PREFIX = "muws-events";
+    
+    //
+    // Standard MUWS namespaces and prefixes
+    //
+    
+    public static final String MUWS_EVENTS_URI = "http://docs.oasis-open.org/wsdm/muwse-2.xml";
+
+    public static final String MUWS_WSDL_URI = "http://docs.oasis-open.org/wsdm/muws-2.wsdl";
+    
+    public static final String MUWS_P1_PREFIX = "muws1";
+
+    public static final String MUWS_P1_URI = "http://docs.oasis-open.org/wsdm/muws1-2.xsd";
+
+    public static final String MUWS_P2_PREFIX = "muws2";
+    
+    public static final String MUWS_P2_URI = "http://docs.oasis-open.org/wsdm/muws2-2.xsd";
+    
+    /**
+     * 
+     * The topic space namespace for WSDM topics.
+     * 
+     */
+    public static final String MUWS_TOPIC_NS = MUWS_EVENTS_URI;
+    
+    public static final QName RESOURCE_ID_QNAME = 
+        new QName(MUWS_P1_URI, "ResourceId", MUWS_P1_PREFIX);
+    
+    public static final QName MANAGEABILITY_EPR_QNAME = 
+        new QName(MUWS_P1_URI, "ManageabilityEndpointReference", MUWS_P1_PREFIX);
+    
+    /**
+     * 
+     * MUWS Capability name, for defining capabilities in metadata. Don't 
+     * confuse this with the ManageabilityCharacteristics property name: 
+     * ManageabilityCapability.
+     * 
+     */
+    public static final QName CAPABILITY_QNAME = 
+        new QName(MUWS_P2_URI, "Capability", MUWS_P2_PREFIX);
+    
+    //
+    // WSDM Metrics names and attributes
+    //
+    
+    public static final QName CURRENT_TIME_QNAME = 
+        new QName(MUWS_P2_URI, "CurrentTime", MUWS_P2_PREFIX);
+    
+    public static final QName METRIC_ATTRIBUTES_QNAME = 
+        new QName(MUWS_P2_URI, "MetricAttributes", MUWS_P2_PREFIX);
+    
+    public static final String RESET_AT = "ResetAt";
+    public static final String DURATION = "Duration";
+    public static final String LAST_UPDATED = "LastUpdated";
+    
+    public static final QName METRIC_GROUP_QNAME = 
+        new QName(MUWS_P2_URI, "MetricGroup", MUWS_P2_PREFIX);
+    
+    public static final QName CALC_INTERVAL_QNAME = 
+        new QName(MUWS_P2_URI, "CalculationInterval", MUWS_P2_PREFIX);
+    
+    public static final QName CHANGE_TYPE_QNAME = 
+        new QName(MUWS_P2_URI, "ChangeType", MUWS_P2_PREFIX);
+    
+    public static final String COUNTER = "Counter";
+    public static final String GAUGE = "Gauge";
+    public static final String UNKNOWN = "Unknown";
+    
+    public static final QName GATHERING_QNAME = 
+        new QName(MUWS_P2_URI, "GatheringTime", MUWS_P2_PREFIX);
+    
+    public static final String ON_CHANGE = "OnChange";
+    public static final String ON_DEMAND = "OnDemand";
+    public static final String PERIODIC = "Periodic";
+    
+    public static final QName TIME_SCOPE_QNAME = 
+        new QName(MUWS_P2_URI, "TimeScope", MUWS_P2_PREFIX);
+    
+    public static final String INTERVAL = "Interval";
+    public static final String POINT_IN_TIME = "PointInTime";
+    public static final String SINCE_RESET = "SinceReset";
+    
+    //
+    // WSDM Relationships names and attributes
+    //
+    
+    public static final String QUERY_RELATIONSHIPS_URI = 
+        MUWS_P2_URI + "/QueryRelationshipsByType";
+    
+    public static final QName RELATIONSHIP_QNAME = 
+        new QName(MUWS_P2_URI, "RelationshipResource", MUWS_P2_PREFIX);
+    
+    public static final QName NAME_QNAME = 
+        new QName(MUWS_P2_URI, "Name", MUWS_P2_PREFIX);
+    
+    public static final QName TYPE_QNAME = 
+        new QName(MUWS_P2_URI, "Type", MUWS_P2_PREFIX);
+    
+    public static final QName ACCESS_EPR_QNAME = 
+        new QName(MUWS_P1_URI, "AccessEndpointReference", MUWS_P1_PREFIX);
+    
+    public static final QName PARTICIPANT_QNAME = 
+        new QName(MUWS_P2_URI, "Participant", MUWS_P2_PREFIX);
+        
+    public static final QName ROLE_QNAME = 
+        new QName(MUWS_P2_URI, "Role", MUWS_P2_PREFIX);
+    
+    public static final QName QUERY_RELATIONSHIPS_QNAME = 
+        new QName(MUWS_P2_URI, "QueryRelationshipsByType", MUWS_P2_PREFIX);
+    
+    public static final QName QUERY_RESPONSE_QNAME = 
+        new QName(MUWS_P2_URI, "QueryRelationshipsByTypeResponse", MUWS_P2_PREFIX);
+    
+    public static final QName REQUESTED_TYPE_QNAME = 
+        new QName(MUWS_P2_URI, "RequestedType", MUWS_P2_PREFIX);
+    
+    //
+    // WSDM Advertisement names and attributes
+    //
+    
+    public static final QName CREATE_NOTIFICATION_QNAME = 
+        new QName(MUWS_P2_URI, "CreationNotification", MUWS_P2_PREFIX);
+
+    public static final QName DESTROY_NOTIFICATION_QNAME = 
+        new QName(MUWS_P2_URI, "DestructionNotification", MUWS_P2_PREFIX);
+    
+    //
+    // WSDM Topic creation
+    //
+    
+    public static final QName ADV_ME_CREATION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ManageabilityEndpointCreation", MUWS_EVENTS_PREFIX);
+
+    public static final QName ADV_MR_CREATION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ManageableResourceCreation", MUWS_EVENTS_PREFIX);
+    
+    public static final QName ADV_ME_DESTRUCTION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ManageabilityEndpointDestruction", MUWS_EVENTS_PREFIX);
+
+    public static final QName ADV_MR_DESTRUCTION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ManageableResourceDestruction", MUWS_EVENTS_PREFIX);
+    
+    public static final QName CHARACTERISTICS_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ManageabilityCharacteristicsCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName CONFIGURATION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "ConfigurationCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName CORRELATABLE_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "CorrelatablePropertiesCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName DESCRIPTION_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "DescriptionCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName IDENTITY_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "IdentityCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName METRICS_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "MetricsCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName OP_STATUS_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "OperationalStatusCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName RELATIONSHIPS_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "RelationshipsCapability", MUWS_EVENTS_PREFIX);
+
+    public static final QName RELATIONSHIP_RESOURCE_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "RelationshipResourceCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName STATE_TOPIC = 
+        new QName(MUWS_TOPIC_NS, "StateCapability", MUWS_EVENTS_PREFIX);
+    
+    public static final QName CORRELATABLE_QNAME = 
+        new QName(MUWS_P1_URI, "CorrelatableProperties", MUWS_P1_PREFIX);
+    
+    public static final QName CAPTION_QNAME = 
+        new QName(MUWS_P2_URI, "Caption", MUWS_P2_PREFIX);
+    
+    public static final QName DESCRIPTION_QNAME = 
+        new QName(MUWS_P2_URI, "Description", MUWS_P2_PREFIX);
+    
+    public static final QName VERSION_QNAME = 
+        new QName(MUWS_P2_URI, "Version", MUWS_P2_PREFIX);
+    
+    public static final QName MANAGEABILITY_CAPABILITY_QNAME = 
+        new QName(MUWS_P1_URI, "ManageabilityCapability", MUWS_P1_PREFIX);
+
+    public static final QName OP_STATUS_QNAME = 
+        new QName(MUWS_P2_URI, "OperationalStatus", MUWS_P2_PREFIX);
+    
+    public static final QName STATE_QNAME = 
+        new QName(MUWS_P2_URI, "State", MUWS_P2_PREFIX);
+    
+    public static final QName TRANSITION_QNAME = 
+        new QName(MUWS_P2_URI, "StateTransition", MUWS_P2_PREFIX);
+    
+    public static final QName PREVIOUS_QNAME = 
+        new QName(MUWS_P2_URI, "PreviousState", MUWS_P2_PREFIX);
+
+    public static final QName ENTERED_QNAME = 
+        new QName(MUWS_P2_URI, "EnteredState", MUWS_P2_PREFIX);
+    
+    public static final String TIME = "Time";
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/OperationalStatus.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/OperationalStatus.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/OperationalStatus.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/OperationalStatus.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ *
+ * This is an internal representation of the OperationalStatus capability. 
+ * It provides convenience methods for the OperationalStatus property. Of 
+ * the four boolean accessor methods, only one may return true at any given 
+ * time, which correlates to the fact that a resource may only have one 
+ * status value at any given time.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface OperationalStatus extends ManageabilityCapability
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.OP_STATUS_QNAME
+    };
+    
+    //
+    // The valid values for the OperationalStatus property
+    //
+    
+    String AVAILABLE = "Available";
+    String PARTIALLY_AVAILABLE = "PartiallyAvailable";
+    String UNAVAILABLE = "Unavailable";
+    String UNKNOWN = "Unknown";
+    
+    /**
+     * 
+     * @return The actual OperationalStatus property value.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP error while retrieving the property.</li>
+     *         </ul>
+     *
+     */
+    String getOperationalStatus()
+        throws BaseFault;
+    
+    void setOperationalStatus(String status)
+        throws BaseFault;
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Participant.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Participant.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Participant.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/Participant.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,49 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import java.net.URI;
+
+import org.apache.muse.util.xml.XmlSerializable;
+import org.apache.muse.ws.addressing.EndpointReference;
+
+public interface Participant extends XmlSerializable
+{
+    /**
+     * 
+     * @return The participant's EPR.
+     *
+     */
+    EndpointReference getManageabilityReference();
+
+    /**
+     * 
+     * @return The participant's MUWS ResourceId.
+     * 
+     * @see org.apache.muse.ws.dm.muws.Identity#getResourceId()
+     *
+     */
+    URI getResourceId();
+
+    /**
+     * 
+     * @return The URI identifying the role of the participant in its 
+     *         relationship.
+     *
+     */
+    URI getRole();
+}

Added: webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipResource.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipResource.java?rev=413693&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipResource.java (added)
+++ webservices/muse/trunk/modules/muse-wsdm-muws/src/org/apache/muse/ws/dm/muws/RelationshipResource.java Mon Jun 12 09:06:54 2006
@@ -0,0 +1,97 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.dm.muws;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.util.xml.XmlSerializable;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ *
+ * RelationshipResource is the interface that describes WSDM relationships as 
+ * WS-RF implied resources. It is used by {@linkplain RelationshipResource RelationshipResource} 
+ * to define the complete relationship resource type. Read the introduction to 
+ * the {@linkplain RelationshipResource RelationshipResource} class for more information about 
+ * how Muse exposes relationship resources.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface RelationshipResource 
+    extends ManageabilityCapability, XmlSerializable
+{
+    QName[] PROPERTIES = new QName[]{
+        MuwsConstants.NAME_QNAME, 
+        MuwsConstants.TYPE_QNAME, 
+        MuwsConstants.PARTICIPANT_QNAME 
+    };
+    
+    /**
+     * 
+     * @return A descriptive name for this relationship.
+     *
+     */
+    String getName()
+        throws BaseFault;
+
+    /**
+     * 
+     * @return The type of this relationship, as defined by an XSD.
+     *
+     */
+    RelationshipType getType()
+        throws BaseFault;
+
+    /**
+     * 
+     * @return The participants in this relationship. The array will have 
+     *         a length of at least 2.
+     *
+     */
+    Participant[] getParticipant()
+        throws BaseFault;
+
+    /**
+     * 
+     * @param name
+     *        A descriptive name for this relationship.
+     *
+     */
+    void setName(String name)
+        throws BaseFault;
+
+    /**
+     * 
+     * @param type
+     *        The type of this relationship, as defined by an XSD.
+     *
+     */
+    void setType(RelationshipType type)
+        throws BaseFault;
+
+    /**
+     * 
+     * @param participants
+     *        The participants in this relationship. The array must have 
+     *         a length of at least 2.
+     *
+     */
+    void setParticipant(Participant[] participants)
+        throws BaseFault;
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org