Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceMessageReferencePart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceMessageReferencePart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceMessageReferencePart.java
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceMessageReferencePart.java
Thu Aug 23 04:31:40 2007
@@ -1,65 +1,65 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.wsdl20.fragids;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.xpointer.XPointer;
-
-/**
- * <code>InterfaceMessageReferencePart</code> is a Interface Message Reference
Pointer Part for the Interface Message Reference WSDL 2.0 component.
- * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interfaceMessageReference">http://www.w3.org/TR/wsdl20/#wsdl.interfaceMessageReference</a>
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- */
-public class InterfaceMessageReferencePart implements ComponentPart{
- private final NCName interfaceName; //Local name of the parent Interface
component.
- private final NCName operation; //Name of the parent Interface
Operation component.
- private final NCName message; //Message Label of the Interface
Message Reference component.
-
- /**
- * Constructs a InterfaceMessageReferencePart class from the values given.
- *
- * @param interfaceName the local name of the parent Interface component.
- * @param operation the name of the parent Interface Operation component.
- * @param message the message label of the Interface Message Reference
component.
- * @throws IllegalArgumentException if interfaceName, operation or message
are null.
- */
- public InterfaceMessageReferencePart(NCName interfaceName, NCName
operation, NCName message) {
- if (interfaceName == null | operation == null | message == null) {
- throw new IllegalArgumentException();
- }
- this.interfaceName = interfaceName;
- this.operation = operation;
- this.message = message;
- }
-
- /**
- * Returns a String of the serialised Binding Message Reference Pointer
Part.
- *
- * @return a String the serialised Binding Message Reference Pointer Part.
- */
- public String toString() {
- return "wsdl.interfaceMessageReference(" + interfaceName + "/" +
operation + "/" + message + ")";
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- //This PointerPart does not have any namespaces.
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.wsdl20.fragids;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.xpointer.XPointer;
+
+/**
+ * <code>InterfaceMessageReferencePart</code> is a Interface Message Reference
Pointer Part for the Interface Message Reference WSDL 2.0 component.
+ * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interfaceMessageReference">http://www.w3.org/TR/wsdl20/#wsdl.interfaceMessageReference</a>
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ */
+public class InterfaceMessageReferencePart implements ComponentPart{
+ private final NCName interfaceName; //Local name of the parent Interface
component.
+ private final NCName operation; //Name of the parent Interface
Operation component.
+ private final NCName message; //Message Label of the Interface
Message Reference component.
+
+ /**
+ * Constructs a InterfaceMessageReferencePart class from the values given.
+ *
+ * @param interfaceName the local name of the parent Interface component.
+ * @param operation the name of the parent Interface Operation component.
+ * @param message the message label of the Interface Message Reference
component.
+ * @throws IllegalArgumentException if interfaceName, operation or message
are null.
+ */
+ public InterfaceMessageReferencePart(NCName interfaceName, NCName
operation, NCName message) {
+ if (interfaceName == null | operation == null | message == null) {
+ throw new IllegalArgumentException();
+ }
+ this.interfaceName = interfaceName;
+ this.operation = operation;
+ this.message = message;
+ }
+
+ /**
+ * Returns a String of the serialised Binding Message Reference Pointer
Part.
+ *
+ * @return a String the serialised Binding Message Reference Pointer Part.
+ */
+ public String toString() {
+ return "wsdl.interfaceMessageReference(" + interfaceName + "/" +
operation + "/" + message + ")";
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ //This PointerPart does not have any namespaces.
+ }
+
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceMessageReferencePart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceOperationPart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceOperationPart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceOperationPart.java
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceOperationPart.java
Thu Aug 23 04:31:40 2007
@@ -1,61 +1,61 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.wsdl20.fragids;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.xpointer.XPointer;
-
-/**
- * <code>InterfaceOperationPart</code> is a Interface Operation Pointer Part
for the Interface Operation WSDL 2.0 component.
- * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interfaceOperation">http://www.w3.org/TR/wsdl20/#wsdl.interfaceOperation</a>
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- */
-public class InterfaceOperationPart implements ComponentPart {
- private final NCName interfaceName; //Local name of the parent Interface
component.
- private final NCName operation; //Local name of the Interface
Operation component.
-
- /**
- * Constructs a InterfaceOperationPart class from the values given.
- *
- * @param interfaceName the local name of the parent Interface component.
- * @param operation the local name of the Interface Operation component.
- * @throws IllegalArgumentException if interfaceName or operation are null.
- */
- public InterfaceOperationPart(NCName interfaceName, NCName operation) {
- if (interfaceName == null | operation == null) {
- throw new IllegalArgumentException();
- }
- this.interfaceName = interfaceName;
- this.operation = operation;
- }
-
- /**
- * Returns a String of the serialised Binding Operation Pointer Part.
- *
- * @return a String the serialised Binding Operation Pointer Part.
- */
- public String toString() {
- return "wsdl.interfaceOperation(" + interfaceName + "/" + operation +
")";
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- //This PointerPart does not have any namespaces.
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.wsdl20.fragids;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.xpointer.XPointer;
+
+/**
+ * <code>InterfaceOperationPart</code> is a Interface Operation Pointer Part
for the Interface Operation WSDL 2.0 component.
+ * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interfaceOperation">http://www.w3.org/TR/wsdl20/#wsdl.interfaceOperation</a>
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ */
+public class InterfaceOperationPart implements ComponentPart {
+ private final NCName interfaceName; //Local name of the parent Interface
component.
+ private final NCName operation; //Local name of the Interface
Operation component.
+
+ /**
+ * Constructs a InterfaceOperationPart class from the values given.
+ *
+ * @param interfaceName the local name of the parent Interface component.
+ * @param operation the local name of the Interface Operation component.
+ * @throws IllegalArgumentException if interfaceName or operation are null.
+ */
+ public InterfaceOperationPart(NCName interfaceName, NCName operation) {
+ if (interfaceName == null | operation == null) {
+ throw new IllegalArgumentException();
+ }
+ this.interfaceName = interfaceName;
+ this.operation = operation;
+ }
+
+ /**
+ * Returns a String of the serialised Binding Operation Pointer Part.
+ *
+ * @return a String the serialised Binding Operation Pointer Part.
+ */
+ public String toString() {
+ return "wsdl.interfaceOperation(" + interfaceName + "/" + operation +
")";
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ //This PointerPart does not have any namespaces.
+ }
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfaceOperationPart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfacePart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfacePart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfacePart.java
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfacePart.java
Thu Aug 23 04:31:40 2007
@@ -1,58 +1,58 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.wsdl20.fragids;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.xpointer.XPointer;
-
-/**
- * <code>InterfacePart</code> is a Interface Pointer Part for the Interface
WSDL 2.0 component.
- * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interface">http://www.w3.org/TR/wsdl20/#wsdl.interface</a>
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- */
-public class InterfacePart implements ComponentPart {
- private final NCName interfaceName; //Local name of the parent
Interface component.
-
- /**
- * Constructs a InterfacePart class from the value given.
- *
- * @param interfaceName the local name of the Interface component.
- * @throws IllegalArgumentException if interfaceName is null.
- */
- public InterfacePart(NCName interfaceName) {
- if (interfaceName == null) {
- throw new IllegalArgumentException();
- }
- this.interfaceName = interfaceName;
- }
-
- /**
- * Returns a String of the serialised Interface Pointer Part.
- *
- * @return a String the serialised Interface Pointer Part.
- */
- public String toString() {
- return "wsdl.interface(" + interfaceName + ")";
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- //This PointerPart does not have any namespaces.
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.wsdl20.fragids;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.xpointer.XPointer;
+
+/**
+ * <code>InterfacePart</code> is a Interface Pointer Part for the Interface
WSDL 2.0 component.
+ * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.interface">http://www.w3.org/TR/wsdl20/#wsdl.interface</a>
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ */
+public class InterfacePart implements ComponentPart {
+ private final NCName interfaceName; //Local name of the parent
Interface component.
+
+ /**
+ * Constructs a InterfacePart class from the value given.
+ *
+ * @param interfaceName the local name of the Interface component.
+ * @throws IllegalArgumentException if interfaceName is null.
+ */
+ public InterfacePart(NCName interfaceName) {
+ if (interfaceName == null) {
+ throw new IllegalArgumentException();
+ }
+ this.interfaceName = interfaceName;
+ }
+
+ /**
+ * Returns a String of the serialised Interface Pointer Part.
+ *
+ * @return a String the serialised Interface Pointer Part.
+ */
+ public String toString() {
+ return "wsdl.interface(" + interfaceName + ")";
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ //This PointerPart does not have any namespaces.
+ }
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/InterfacePart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/ServicePart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/ServicePart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/ServicePart.java
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/ServicePart.java
Thu Aug 23 04:31:40 2007
@@ -1,59 +1,59 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.wsdl20.fragids;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.xpointer.XPointer;
-
-/**
- * <code>ServicePart</code> is a Service Pointer Part for the Service WSDL 2.0
component.
- * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.service">http://www.w3.org/TR/wsdl20/#wsdl.service</a>
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- */
-public class ServicePart implements ComponentPart {
- private final NCName service; //Local name of the Service component.
-
- /**
- * Constructs an ServicePart class from the value given.
- *
- * @param service the local name of the Service component.
- * @throws IllegalArgumentException if service is null.
- */
- public ServicePart(NCName service) {
- if (service == null) {
- throw new IllegalArgumentException();
- }
- this.service = service;
- }
-
- /**
- * Returns a String of the serialised Service Pointer Part.
- *
- * @return a String the serialised Service Pointer Part.
- */
- public String toString() {
- return "wsdl.service(" + service + ")";
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- //This PointerPart does not have any namespaces.
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.wsdl20.fragids;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.xpointer.XPointer;
+
+/**
+ * <code>ServicePart</code> is a Service Pointer Part for the Service WSDL 2.0
component.
+ * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.service">http://www.w3.org/TR/wsdl20/#wsdl.service</a>
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ */
+public class ServicePart implements ComponentPart {
+ private final NCName service; //Local name of the Service component.
+
+ /**
+ * Constructs an ServicePart class from the value given.
+ *
+ * @param service the local name of the Service component.
+ * @throws IllegalArgumentException if service is null.
+ */
+ public ServicePart(NCName service) {
+ if (service == null) {
+ throw new IllegalArgumentException();
+ }
+ this.service = service;
+ }
+
+ /**
+ * Returns a String of the serialised Service Pointer Part.
+ *
+ * @return a String the serialised Service Pointer Part.
+ */
+ public String toString() {
+ return "wsdl.service(" + service + ")";
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ //This PointerPart does not have any namespaces.
+ }
+
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/ServicePart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/TypeDefinitionPart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/TypeDefinitionPart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/TypeDefinitionPart.java
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/TypeDefinitionPart.java
Thu Aug 23 04:31:40 2007
@@ -1,84 +1,84 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.wsdl20.fragids;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.xpointer.XPointer;
-
-import java.net.URI;
-
-/**
- * <code>TypeDefinitionPart</code> is a Type Definition Pointer Part for the
Type Definition WSDL 2.0 component.
- * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.typeDefinition">http://www.w3.org/TR/wsdl20/#wsdl.typeDefinition</a>
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- */
-public class TypeDefinitionPart implements ComponentPart{
- private QName type; //Name of the Type Definition component.
- private final URI system; //Namespace absolute IRI of the extension type
system used for the Type Definition component.
-
- /**
- * Constructs a TypeDefinitionPart class for an Type Definition component
with an XMLScheme type system.
- *
- * @param type the name of the Type Definition component.
- * @param system namespace absolute IRI of the extension type system used
for the Type Definition component.
- * @throws IllegalArgumentException if type or system are null.
- */
- public TypeDefinitionPart(QName type, URI system) {
- if (type == null | system == null) {
- throw new IllegalArgumentException();
- }
- this.type = type;
- this.system = system;
- }
-
- /**
- * Constructs an TypeDefinitionPart class for an Type Definition component
with another type system.
- *
- * @param type the name of the Definition component.
- * @throws IllegalArgumentException if type is null.
- */
- public TypeDefinitionPart(QName type) {
- if (type == null) {
- throw new IllegalArgumentException();
- }
- this.type = type;
- this.system = null;
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- type = xpointer.prefixQNameNamespace(type);
- }
-
- /**
- * Returns a String of the serialised Type Definition Pointer Part.
- *
- * @return a String the serialised Type Definition Pointer Part.
- */
- public String toString() {
- String typeString = (type.getPrefix() != null &&
!type.getPrefix().equals("") ? type.getPrefix() + ":" + type.getLocalPart() :
type.getLocalPart());
- if (system == null) {
- return "wsdl.typeDefinition(" + typeString + ")";
- } else {
- return "wsdl.typeDefinition(" + typeString + "," + system + ")";
- }
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.wsdl20.fragids;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.xpointer.XPointer;
+
+import java.net.URI;
+
+/**
+ * <code>TypeDefinitionPart</code> is a Type Definition Pointer Part for the
Type Definition WSDL 2.0 component.
+ * See the specification at <a
href="http://www.w3.org/TR/wsdl20/#wsdl.typeDefinition">http://www.w3.org/TR/wsdl20/#wsdl.typeDefinition</a>
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ */
+public class TypeDefinitionPart implements ComponentPart{
+ private QName type; //Name of the Type Definition component.
+ private final URI system; //Namespace absolute IRI of the extension type
system used for the Type Definition component.
+
+ /**
+ * Constructs a TypeDefinitionPart class for an Type Definition component
with an XMLScheme type system.
+ *
+ * @param type the name of the Type Definition component.
+ * @param system namespace absolute IRI of the extension type system used
for the Type Definition component.
+ * @throws IllegalArgumentException if type or system are null.
+ */
+ public TypeDefinitionPart(QName type, URI system) {
+ if (type == null | system == null) {
+ throw new IllegalArgumentException();
+ }
+ this.type = type;
+ this.system = system;
+ }
+
+ /**
+ * Constructs an TypeDefinitionPart class for an Type Definition component
with another type system.
+ *
+ * @param type the name of the Definition component.
+ * @throws IllegalArgumentException if type is null.
+ */
+ public TypeDefinitionPart(QName type) {
+ if (type == null) {
+ throw new IllegalArgumentException();
+ }
+ this.type = type;
+ this.system = null;
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ type = xpointer.prefixQNameNamespace(type);
+ }
+
+ /**
+ * Returns a String of the serialised Type Definition Pointer Part.
+ *
+ * @return a String the serialised Type Definition Pointer Part.
+ */
+ public String toString() {
+ String typeString = (type.getPrefix() != null &&
!type.getPrefix().equals("") ? type.getPrefix() + ":" + type.getLocalPart() :
type.getLocalPart());
+ if (system == null) {
+ return "wsdl.typeDefinition(" + typeString + ")";
+ } else {
+ return "wsdl.typeDefinition(" + typeString + "," + system + ")";
+ }
+ }
+
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/TypeDefinitionPart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/about-this-package
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/about-this-package?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
---
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/about-this-package
(original)
+++
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/about-this-package
Thu Aug 23 04:31:40 2007
@@ -1,12 +1,12 @@
-This package implements the Fragment Identifiers for WSDL 2.0 components as
defined
-by Appendix A.2 of the W3C WSDL 2.0 Part 1: Core Language specification. See:
-
- http://www.w3.org/TR/wsdl20/#frag-ids
-
-The package contains classes that:
-
- - model the fragment identifiers for each WSDL 2.0 component
- - generate fragment identifiers from abstract components
- - find abstract components in a component model instance given their
fragment identifiers
- - parse URLs into fragment identifiers
+This package implements the Fragment Identifiers for WSDL 2.0 components as
defined
+by Appendix A.2 of the W3C WSDL 2.0 Part 1: Core Language specification. See:
+
+ http://www.w3.org/TR/wsdl20/#frag-ids
+
+The package contains classes that:
+
+ - model the fragment identifiers for each WSDL 2.0 component
+ - generate fragment identifiers from abstract components
+ - find abstract components in a component model instance given their
fragment identifiers
+ - parse URLs into fragment identifiers
- serialize fragment identifiers as URLs
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/wsdl20/fragids/about-this-package
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/xpointer/PointerPart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xpointer/PointerPart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xpointer/PointerPart.java
(original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xpointer/PointerPart.java
Thu Aug 23 04:31:40 2007
@@ -1,43 +1,43 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.xpointer;
-
-/**
- * Interface to be implemented by pointer parts (XPointer schemes).
- */
-
-public interface PointerPart {
-
- /**
- * Returns a String serialisation of this xpointer PointerPart.
- *
- * @return a String containing the serialisation of this xpointer
PointerPart.
- */
- public String toString();
-
- /**
- * Checks that the namespace prefixes used in this PointerPart are
- * consistent with those in the XPointer.
- *
- * This method is called by the add method on XPointer when PointerParts
are added to it.
- *
- * @param xpointer an XPointer which the namespace prefixes are checked
against.
- */
- public void prefixNamespaces(XPointer xpointer);
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.xpointer;
+
+/**
+ * Interface to be implemented by pointer parts (XPointer schemes).
+ */
+
+public interface PointerPart {
+
+ /**
+ * Returns a String serialisation of this xpointer PointerPart.
+ *
+ * @return a String containing the serialisation of this xpointer
PointerPart.
+ */
+ public String toString();
+
+ /**
+ * Checks that the namespace prefixes used in this PointerPart are
+ * consistent with those in the XPointer.
+ *
+ * This method is called by the add method on XPointer when PointerParts
are added to it.
+ *
+ * @param xpointer an XPointer which the namespace prefixes are checked
against.
+ */
+ public void prefixNamespaces(XPointer xpointer);
+
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/xpointer/PointerPart.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/xpointer/XPointer.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xpointer/XPointer.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xpointer/XPointer.java
(original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xpointer/XPointer.java Thu
Aug 23 04:31:40 2007
@@ -1,165 +1,165 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.xpointer;
-
-import java.util.List;
-import java.util.LinkedList;
-import java.util.HashMap;
-
-import java.util.Iterator;
-import java.lang.StringBuffer;
-
-import org.apache.woden.types.NCName;
-import javax.xml.namespace.QName;
-import org.apache.woden.xpointer.XmlnsPart;
-
-
-/**
- * Represents a fragment identifier conforming to the XML Pointer Language
Framework.
- *
- * This class is based upon a class of the same name in the Apache Cocoon.
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- *
- * TODO Add a constructor to create a XPointer from a String by
deserialisation.
- *
- */
-
-public class XPointer {
- private final List pointerParts;
- private final HashMap xmlnses;
- private static final NCName emptyNCName = new NCName("");
- private static String NS_URI_XML = "http://www.w3.org/XML/1998/namespace";
- private static String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
-
- /**
- * Constructs a new Fragment Identifier.
- *
- */
- public XPointer() {
- pointerParts = new LinkedList();
- xmlnses = new HashMap();
- }
-
- /**
- * Appends a pointer part to the end of this XPointer.
- *
- * @param pointerPart the Pointer Part to append.
- */
- public void addPart(PointerPart pointerPart) {
- pointerParts.add(pointerPart);
- //Make sure the PointerPart's namespaces are in line with this
XPointer.
- pointerPart.prefixNamespaces(this);
- }
-
- /**
- * Returns a String serialisation of this XPointer.
- *
- * @return a String containing the serialisation of this XPointer
- */
- public String toString() {
- StringBuffer buffer = new StringBuffer();
- Iterator parts = pointerParts.iterator();
- while (parts.hasNext()) {
- buffer.append(parts.next());
- }
- return buffer.toString();
- }
-
- /** Namespace management code **/
-
- /**
- * Returns the prefix for the Xml namespace of the QName in the XPointer.
- * If the namespace does not have a prefix in the XPointer it will create
a new prefix
- * with the prefix from the QName or one of the form nsXX and add a xmlns
Pointer Part, then return that.
- *
- * @param qname The QName containing the namespace and a prefix.
- * @return a NCName of the prefix for the namespace.
- */
- public NCName getXmlNamespacePrefix(QName qname) {
- return getXmlNamespacePrefix(qname.getNamespaceURI() , new
NCName(qname.getPrefix()));
- }
-
- /**
- * Returns the prefix for the Xml namespace in the XPointer.
- * If the namespace does not have a prefix in the XPointer it will create
a new prefix
- * of the form nsXX and add a xmlns Pointer Part, then return that.
- *
- * @param namespace The namespace to get the prefix for.
- * @return a NCName of the prefix for the namespace.
- */
- public NCName getXmlNamespacePrefix(String namespace) {
- return getXmlNamespacePrefix(namespace, null);
- }
-
- /**
- * Returns the prefix for the Xml namespace in the XPointer.
- * If the namespace does not have a prefix in the XPointer it will create
a new prefix
- * with the prefix given or one of the form nsXX and add a xmlns Pointer
Part, then return that.
- *
- * @param namespace The namespace to get the prefix for.
- * @param defaultPrefix The default prefix name to use if a prefix does
not already exist.
- * @return a NCName of the prefix for the namespace.
- */
- public NCName getXmlNamespacePrefix(String namespace, NCName
defaultPrefix) {
- //If its the xml namespace no prefix is needed.
- if (namespace.equals(NS_URI_XML)) {
- return emptyNCName;
- }
- //If its the xmlns namespace you shouldn't be using it!
- if (namespace.equals(NS_URI_XMLNS)) {
- return emptyNCName;
- }
- //Lookup prefix
- NCName prefix = (NCName)xmlnses.get(namespace);
- if (prefix == null) {
- //The namespace does not have a prefix let so lets add one.
- //Find name a valid prefix name that isn't used and is not xml or
xmlns.
- if (defaultPrefix != null && !defaultPrefix.toString().equals("")
&& !defaultPrefix.equals("xml") && !defaultPrefix.equals("xmlns") &&
!xmlnses.containsValue(defaultPrefix)) {
- //Use default prefix given
- prefix = defaultPrefix;
- } else {
- //Find next available nsXXX prefix
- prefix = new NCName("ns" + Integer.toString(xmlnses.size()));
- for (int i = 1; xmlnses.containsKey(prefix); i++) {
- prefix = new NCName("ns" + Integer.toString(xmlnses.size()
+ i));
- }
- }
-
- //Add prefix pointer part.
- pointerParts.add(xmlnses.size(), new XmlnsPart(prefix, namespace));
-
- //Add to Map.
- xmlnses.put(namespace, prefix);
- }
- return prefix;
- }
-
- /**
- * Returns a QName prefixed from the map of local namespaces and prefixes.
- * The namespace and localpart remain unchanged.
- *
- * @param qname the QName used to lookup the namespace and copy.
- * @return a QName with the new prefix, but same namespace and localpart.
- */
- public QName prefixQNameNamespace(QName qname) {
- //Get prefix for the fault QName in the XPointer.
- NCName prefix = getXmlNamespacePrefix(qname);
- return new QName(qname.getNamespaceURI(), qname.getLocalPart(),
prefix.toString());
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.xpointer;
+
+import java.util.List;
+import java.util.LinkedList;
+import java.util.HashMap;
+
+import java.util.Iterator;
+import java.lang.StringBuffer;
+
+import org.apache.woden.types.NCName;
+import javax.xml.namespace.QName;
+import org.apache.woden.xpointer.XmlnsPart;
+
+
+/**
+ * Represents a fragment identifier conforming to the XML Pointer Language
Framework.
+ *
+ * This class is based upon a class of the same name in the Apache Cocoon.
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ *
+ * TODO Add a constructor to create a XPointer from a String by
deserialisation.
+ *
+ */
+
+public class XPointer {
+ private final List pointerParts;
+ private final HashMap xmlnses;
+ private static final NCName emptyNCName = new NCName("");
+ private static String NS_URI_XML = "http://www.w3.org/XML/1998/namespace";
+ private static String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
+
+ /**
+ * Constructs a new Fragment Identifier.
+ *
+ */
+ public XPointer() {
+ pointerParts = new LinkedList();
+ xmlnses = new HashMap();
+ }
+
+ /**
+ * Appends a pointer part to the end of this XPointer.
+ *
+ * @param pointerPart the Pointer Part to append.
+ */
+ public void addPart(PointerPart pointerPart) {
+ pointerParts.add(pointerPart);
+ //Make sure the PointerPart's namespaces are in line with this
XPointer.
+ pointerPart.prefixNamespaces(this);
+ }
+
+ /**
+ * Returns a String serialisation of this XPointer.
+ *
+ * @return a String containing the serialisation of this XPointer
+ */
+ public String toString() {
+ StringBuffer buffer = new StringBuffer();
+ Iterator parts = pointerParts.iterator();
+ while (parts.hasNext()) {
+ buffer.append(parts.next());
+ }
+ return buffer.toString();
+ }
+
+ /** Namespace management code **/
+
+ /**
+ * Returns the prefix for the Xml namespace of the QName in the XPointer.
+ * If the namespace does not have a prefix in the XPointer it will create
a new prefix
+ * with the prefix from the QName or one of the form nsXX and add a xmlns
Pointer Part, then return that.
+ *
+ * @param qname The QName containing the namespace and a prefix.
+ * @return a NCName of the prefix for the namespace.
+ */
+ public NCName getXmlNamespacePrefix(QName qname) {
+ return getXmlNamespacePrefix(qname.getNamespaceURI() , new
NCName(qname.getPrefix()));
+ }
+
+ /**
+ * Returns the prefix for the Xml namespace in the XPointer.
+ * If the namespace does not have a prefix in the XPointer it will create
a new prefix
+ * of the form nsXX and add a xmlns Pointer Part, then return that.
+ *
+ * @param namespace The namespace to get the prefix for.
+ * @return a NCName of the prefix for the namespace.
+ */
+ public NCName getXmlNamespacePrefix(String namespace) {
+ return getXmlNamespacePrefix(namespace, null);
+ }
+
+ /**
+ * Returns the prefix for the Xml namespace in the XPointer.
+ * If the namespace does not have a prefix in the XPointer it will create
a new prefix
+ * with the prefix given or one of the form nsXX and add a xmlns Pointer
Part, then return that.
+ *
+ * @param namespace The namespace to get the prefix for.
+ * @param defaultPrefix The default prefix name to use if a prefix does
not already exist.
+ * @return a NCName of the prefix for the namespace.
+ */
+ public NCName getXmlNamespacePrefix(String namespace, NCName
defaultPrefix) {
+ //If its the xml namespace no prefix is needed.
+ if (namespace.equals(NS_URI_XML)) {
+ return emptyNCName;
+ }
+ //If its the xmlns namespace you shouldn't be using it!
+ if (namespace.equals(NS_URI_XMLNS)) {
+ return emptyNCName;
+ }
+ //Lookup prefix
+ NCName prefix = (NCName)xmlnses.get(namespace);
+ if (prefix == null) {
+ //The namespace does not have a prefix let so lets add one.
+ //Find name a valid prefix name that isn't used and is not xml or
xmlns.
+ if (defaultPrefix != null && !defaultPrefix.toString().equals("")
&& !defaultPrefix.equals("xml") && !defaultPrefix.equals("xmlns") &&
!xmlnses.containsValue(defaultPrefix)) {
+ //Use default prefix given
+ prefix = defaultPrefix;
+ } else {
+ //Find next available nsXXX prefix
+ prefix = new NCName("ns" + Integer.toString(xmlnses.size()));
+ for (int i = 1; xmlnses.containsKey(prefix); i++) {
+ prefix = new NCName("ns" + Integer.toString(xmlnses.size()
+ i));
+ }
+ }
+
+ //Add prefix pointer part.
+ pointerParts.add(xmlnses.size(), new XmlnsPart(prefix, namespace));
+
+ //Add to Map.
+ xmlnses.put(namespace, prefix);
+ }
+ return prefix;
+ }
+
+ /**
+ * Returns a QName prefixed from the map of local namespaces and prefixes.
+ * The namespace and localpart remain unchanged.
+ *
+ * @param qname the QName used to lookup the namespace and copy.
+ * @return a QName with the new prefix, but same namespace and localpart.
+ */
+ public QName prefixQNameNamespace(QName qname) {
+ //Get prefix for the fault QName in the XPointer.
+ NCName prefix = getXmlNamespacePrefix(qname);
+ return new QName(qname.getNamespaceURI(), qname.getLocalPart(),
prefix.toString());
+ }
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/xpointer/XPointer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/woden/trunk/java/src/org/apache/woden/xpointer/XmlnsPart.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xpointer/XmlnsPart.java?rev=568939&r1=568938&r2=568939&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xpointer/XmlnsPart.java
(original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xpointer/XmlnsPart.java Thu
Aug 23 04:31:40 2007
@@ -1,48 +1,48 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.woden.xpointer;
-
-import org.apache.woden.types.NCName;
-
-/**
- * Represents a fragment identifier conforming to the XML Pointer Language
Framework.
- *
- * This class is based upon a class of the same name in the Apache Coccon.
- *
- * @author Dan Harvey ([EMAIL PROTECTED])
- */
-public class XmlnsPart implements PointerPart {
- private final NCName prefix;
- private final String namespace;
-
- public XmlnsPart(NCName prefix, String namespace) {
- if (prefix == null | namespace == null) {
- throw new IllegalArgumentException();
- }
- this.prefix = prefix;
- this.namespace = namespace;
- }
-
- public String toString() {
- return "xmlns(" + prefix + "=" + namespace + ")";
- }
-
- public void prefixNamespaces(XPointer xpointer) {
- //This PointerPart does not have any namespaces.
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.woden.xpointer;
+
+import org.apache.woden.types.NCName;
+
+/**
+ * Represents a fragment identifier conforming to the XML Pointer Language
Framework.
+ *
+ * This class is based upon a class of the same name in the Apache Coccon.
+ *
+ * @author Dan Harvey ([EMAIL PROTECTED])
+ */
+public class XmlnsPart implements PointerPart {
+ private final NCName prefix;
+ private final String namespace;
+
+ public XmlnsPart(NCName prefix, String namespace) {
+ if (prefix == null | namespace == null) {
+ throw new IllegalArgumentException();
+ }
+ this.prefix = prefix;
+ this.namespace = namespace;
+ }
+
+ public String toString() {
+ return "xmlns(" + prefix + "=" + namespace + ")";
+ }
+
+ public void prefixNamespaces(XPointer xpointer) {
+ //This PointerPart does not have any namespaces.
+ }
+}
Propchange:
incubator/woden/trunk/java/src/org/apache/woden/xpointer/XmlnsPart.java
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]