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 wi...@apache.org on 2005/10/06 20:56:54 UTC

svn commit: r306839 - /webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java

Author: wire
Date: Thu Oct  6 11:56:52 2005
New Revision: 306839

URL: http://svn.apache.org/viewcvs?rev=306839&view=rev
Log:
new

Added:
    webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java

Added: webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java?rev=306839&view=auto
==============================================================================
--- webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java (added)
+++ webservices/muse/trunk/client/src/java/org/apache/ws/client/muse/client/impl/relationships/RelationshipImpl.java Thu Oct  6 11:56:52 2005
@@ -0,0 +1,64 @@
+package org.apache.ws.client.muse.client.impl.relationships;
+
+import javax.xml.namespace.QName;
+
+import org.apache.ws.client.muse.client.ManageableResource;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.impl.RelationshipDocumentImpl;
+
+public class RelationshipImpl {
+	
+	public RelationshipImpl(RelationshipDocumentImpl document) {
+		super();
+	}
+
+	/**
+	 * A human readable name for a relationship. 
+	 * Name should not be used for machine reasoning about 
+	 * the semantics of a relationship. Type 
+	 * should be used instead. This element is OPTIONAL.
+	 * @return A human readable name or exception if not implemented.
+	 */
+	public QName getName(){
+		return null;
+	}
+	
+	/**
+	 * Returns a user defined Relationship type object.
+	 * xs:Type is the relationship type this relationship belongs 
+	 * to. Examples of such types include linkage, containment, or dependency. MUWS does not define
+	 * any specific relationship type. This is left to domain-specific models. MUWS only defines a way to
+	 * convey the type as part of the representation of a relationship.
+	 * @return The relationship xml contained in an XmlObject.
+	 */
+	public XmlObject getType(){
+		return null;
+	}
+
+	/**
+	 * Participant contains information about a participant in 
+	 * the relationship. There MUST be at least two participants, 
+	 * but there MAY be more than two participants.
+	 * @return An Array of Participant Resources
+	 */
+	public ManageableResource[] getPaticipants(){
+		return null;		
+	}
+	
+	//TODO Move this method into the ManageableResource Inheritance Path
+	/**
+	 * This operation is OPTIONAL. It is a shortcut to query relationships of the same type.
+	 * param qnames a QName which 
+	 * identifies the requested type(s) of relationship(s). When processing this request, the 
+	 * manageability endpoint MUST return any available instance relationship that is of the requested 
+	 * type or of any type that is a specialization of the requested type. There can be more than one 
+	 * requested type, in which case any relationship instance corresponding to any requested type
+	 * MUST be returned.
+	 * @return The response to the above request is either a fault (any fault) or an array of relationships
+	 * that match the requested type.
+	 */
+	public RelationshipImpl[] queryRelationshipsByType(QName[] qnames){
+		return null;
+	}
+	
+}