Author: ips
Date: Thu Mar 17 16:05:11 2005
New Revision: 157995
URL: http://svn.apache.org/viewcvs?view=rev&rev=157995
Log:
various
Added:
incubator/muse/trunk/src/java/org/apache/ws/muws/Category.java
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/MuwsWsdl2Java.java
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/RelationshipsPortType2JavaInfo.java
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/RelationshipsCapabilityImpl.java
Modified:
incubator/muse/trunk/project.xml
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/MetricsCapability.java
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipResourceCapability.java
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipsCapability.java
Modified: incubator/muse/trunk/project.xml
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/project.xml?view=diff&r1=157994&r2=157995
==============================================================================
--- incubator/muse/trunk/project.xml (original)
+++ incubator/muse/trunk/project.xml Thu Mar 17 16:05:11 2005
@@ -277,8 +277,8 @@
<dependency>
<groupId>hermes</groupId>
- <artifactId>hermes</artifactId>
- <version>1.0-beta1</version>
+ <artifactId>hermes-incubating</artifactId>
+ <version>1.0-alpha-SNAPSHOT</version>
<url>http://incubator.apache.org/hermes/</url>
<properties>
<license>ApacheLicense-2.0.txt</license>
Added: incubator/muse/trunk/src/java/org/apache/ws/muws/Category.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/Category.java?view=auto&rev=157995
==============================================================================
--- incubator/muse/trunk/src/java/org/apache/ws/muws/Category.java (added)
+++ incubator/muse/trunk/src/java/org/apache/ws/muws/Category.java Thu Mar 17
16:05:11 2005
@@ -0,0 +1,51 @@
+/*=============================================================================*
+ * Copyright 2005 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.ws.muws;
+
+import javax.xml.namespace.QName;
+
+/**
+ * A category, as defined by part 2 of the MUWS specification.
+ */
+public interface Category
+{
+
+ /**
+ * Returns the name of this category.
+ *
+ * @return the name of this category
+ */
+ QName getName();
+
+ /**
+ * Returns the next most general category in the categorization taxonomy.
+ *
+ * @return the next most general category in the categorization taxonomy
+ *
+ * @exception java.util.NoSuchElementException if the category does not
have any generalizations
+ */
+ Category getGeneralization();
+
+ /**
+ * Returns <tt>true</tt> if the category has a generalization. (In other
+ * words, returns <tt>true</tt> if <tt>getGeneralization</tt> would return
a more
+ * general category rather than throwing an exception.)
+ *
+ * @return <tt>true</tt> if the category
+ */
+ boolean hasGeneralization();
+
+}
Added: incubator/muse/trunk/src/java/org/apache/ws/muws/tool/MuwsWsdl2Java.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/tool/MuwsWsdl2Java.java?view=auto&rev=157995
==============================================================================
--- incubator/muse/trunk/src/java/org/apache/ws/muws/tool/MuwsWsdl2Java.java
(added)
+++ incubator/muse/trunk/src/java/org/apache/ws/muws/tool/MuwsWsdl2Java.java
Thu Mar 17 16:05:11 2005
@@ -0,0 +1,41 @@
+/*=============================================================================*
+ * Copyright 2005 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.ws.muws.tool;
+
+import org.apache.ws.muws.tool.v1_0.RelationshipsPortType2JavaInfo;
+import org.apache.ws.notification.tool.WsnWsdl2Java;
+
+import java.io.File;
+
+/**
+ * TODO
+ */
+public class MuwsWsdl2Java extends WsnWsdl2Java
+{
+
+ public MuwsWsdl2Java( File[] wsdlFiles, File outputDir, File[] classpath,
Wsdl2JavaOptions options )
+ throws Exception
+ {
+ super( wsdlFiles, outputDir, classpath, options );
+ initPortTypeInfoMap();
+ }
+
+ private void initPortTypeInfoMap()
+ {
+ addPortType2JavaInfo( new RelationshipsPortType2JavaInfo() );
+ }
+
+}
Added:
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/RelationshipsPortType2JavaInfo.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/RelationshipsPortType2JavaInfo.java?view=auto&rev=157995
==============================================================================
---
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/RelationshipsPortType2JavaInfo.java
(added)
+++
incubator/muse/trunk/src/java/org/apache/ws/muws/tool/v1_0/RelationshipsPortType2JavaInfo.java
Thu Mar 17 16:05:11 2005
@@ -0,0 +1,36 @@
+/*=============================================================================*
+ * Copyright 2005 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.ws.muws.tool.v1_0;
+
+import org.apache.ws.resource.tool.PortType2JavaInfo;
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
+
+import javax.xml.namespace.QName;
+
+/**
+ * PortType2JavaInfo for the MUWS 1.0 Relationships portType.
+ */
+public class RelationshipsPortType2JavaInfo extends PortType2JavaInfo
+{
+
+ public QName getName()
+ {
+ return RelationshipsCapability.PORT_TYPE_NAME;
+ }
+
+ // TODO
+
+}
Modified:
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/MetricsCapability.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/MetricsCapability.java?view=diff&r1=157994&r2=157995
==============================================================================
---
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/MetricsCapability.java
(original)
+++
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/MetricsCapability.java
Thu Mar 17 16:05:11 2005
@@ -20,7 +20,7 @@
import javax.xml.namespace.QName;
/**
- * The MUWS OperationalStatus manageability capability.
+ * The MUWS Metrics manageability capability.
*/
public interface MetricsCapability
{
Modified:
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipResourceCapability.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipResourceCapability.java?view=diff&r1=157994&r2=157995
==============================================================================
---
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipResourceCapability.java
(original)
+++
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipResourceCapability.java
Thu Mar 17 16:05:11 2005
@@ -20,7 +20,7 @@
import javax.xml.namespace.QName;
/**
- * The MUWS OperationalStatus manageability capability.
+ * The MUWS RelationshipResource manageability capability.
*/
public interface RelationshipResourceCapability
{
Modified:
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipsCapability.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipsCapability.java?view=diff&r1=157994&r2=157995
==============================================================================
---
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipsCapability.java
(original)
+++
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/RelationshipsCapability.java
Thu Mar 17 16:05:11 2005
@@ -22,7 +22,7 @@
import javax.xml.namespace.QName;
/**
- * The MUWS OperationalStatus manageability capability.
+ * The MUWS Relationships manageability capability.
*/
public interface RelationshipsCapability
{
Added:
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/RelationshipsCapabilityImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/RelationshipsCapabilityImpl.java?view=auto&rev=157995
==============================================================================
---
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/RelationshipsCapabilityImpl.java
(added)
+++
incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/impl/RelationshipsCapabilityImpl.java
Thu Mar 17 16:05:11 2005
@@ -0,0 +1,66 @@
+/*=============================================================================*
+ * Copyright 2005 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.ws.muws.v1_0.capability.impl;
+
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import
org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument;
+import
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument;
+
+/**
+ * TODO
+ */
+public class RelationshipsCapabilityImpl extends
AbstractResourcePropertiesPortType implements RelationshipsCapability
+{
+
+ /**
+ * @param resourceContext
+ */
+ public RelationshipsCapabilityImpl( ResourceContext resourceContext )
+ {
+ super( resourceContext );
+ }
+
+ /**
+ * @param requestDoc
+ *
+ * @return
+ */
+ public QueryRelationshipsByTypeResponseDocument queryRelationshipsByType(
+ QueryRelationshipsByTypeDocument requestDoc )
+ {
+ QueryRelationshipsByTypeResponseDocument responseDoc =
createQueryRelationshipsByTypeResponseDocument();
+
QueryRelationshipsByTypeResponseDocument.QueryRelationshipsByTypeResponse
response = responseDoc.getQueryRelationshipsByTypeResponse();
+ // TODO: implement
+ return responseDoc;
+ }
+
+ protected NamespaceVersionHolder getNamespaceSet()
+ {
+ return null; // not currently used - will be needed once we need to
support multiple spec versions
+ }
+
+ private QueryRelationshipsByTypeResponseDocument
createQueryRelationshipsByTypeResponseDocument()
+ {
+ QueryRelationshipsByTypeResponseDocument responseDoc =
+ QueryRelationshipsByTypeResponseDocument.Factory.newInstance();
+ responseDoc.addNewQueryRelationshipsByTypeResponse();
+ return responseDoc;
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]