You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2007/08/23 13:01:35 UTC
svn commit: r568932 [36/36] - in
/incubator/woden/trunk/java/src/org/apache/woden: ./ ant/ internal/
internal/resolver/ internal/schema/ internal/util/ internal/util/dom/
internal/util/om/ internal/wsdl20/ internal/wsdl20/extensions/
internal/wsdl20/ex...
Modified: incubator/woden/trunk/java/src/org/apache/woden/xml/TokenAttr.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xml/TokenAttr.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xml/TokenAttr.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xml/TokenAttr.java Thu Aug 23 04:01:23 2007
@@ -1,33 +1,33 @@
-/**
+/**
* 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.xml;
-
-
-/**
- * This interface represents XML attribute information items of type xs:token.
- * If the object is initialized with a null value, the getContents() and getToken()
- * methods will return null and isValid() will return false.
- *
- * TODO create org.apache.woden.types.Token based on the same class in org.apache.axis.types
- * and modify the getToken method here to return Token instead of String.
- *
- * @author jkaputin@apache.org
- */
-public interface TokenAttr extends XMLAttr
-{
- public String getToken();
-}
+ *
+ * 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.xml;
+
+
+/**
+ * This interface represents XML attribute information items of type xs:token.
+ * If the object is initialized with a null value, the getContents() and getToken()
+ * methods will return null and isValid() will return false.
+ *
+ * TODO create org.apache.woden.types.Token based on the same class in org.apache.axis.types
+ * and modify the getToken method here to return Token instead of String.
+ *
+ * @author jkaputin@apache.org
+ */
+public interface TokenAttr extends XMLAttr
+{
+ public String getToken();
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/xml/TokenAttr.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/xml/URIAttr.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xml/URIAttr.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xml/URIAttr.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xml/URIAttr.java Thu Aug 23 04:01:23 2007
@@ -1,31 +1,31 @@
-/**
+/**
* 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.xml;
-
-import java.net.URI;
-
-/**
- * This interface represents XML attribute information items of type xs:anyURI.
- * If the attribute value cannot be converted into a java.net.URI the getContent()
- * and getURI() methods will return null and isValid() will return false.
- *
- * @author jkaputin@apache.org
- */
-public interface URIAttr extends XMLAttr
-{
- public URI getURI();
-}
+ *
+ * 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.xml;
+
+import java.net.URI;
+
+/**
+ * This interface represents XML attribute information items of type xs:anyURI.
+ * If the attribute value cannot be converted into a java.net.URI the getContent()
+ * and getURI() methods will return null and isValid() will return false.
+ *
+ * @author jkaputin@apache.org
+ */
+public interface URIAttr extends XMLAttr
+{
+ public URI getURI();
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/xml/URIAttr.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/xml/UnknownAttr.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xml/UnknownAttr.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xml/UnknownAttr.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xml/UnknownAttr.java Thu Aug 23 04:01:23 2007
@@ -1,80 +1,80 @@
-/**
+/**
* 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.xml;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.ErrorReporter;
-import org.apache.woden.WSDLException;
-import org.apache.woden.XMLElement;
-
-/**
- * This class represents extension attributes (those not in the WSDL namespace)
- * that do not have a Java type registered in the Extension Registry.
- * It treats the attribute's value as a string.
- *
- * @author jkaputin@apache.org
- */
-public class UnknownAttr implements XMLAttr
-{
- private QName fAttrType = null;
- private Object fContent = null;
- private String fExternalForm = null;
- private boolean fValid = true;
- private ErrorReporter fErrorReporter = null;
-
- public UnknownAttr(XMLElement ownerEl, QName attrType,
- String attrValue, ErrorReporter errRpt) throws WSDLException
- {
- fErrorReporter = errRpt;
- fAttrType = attrType;
- fExternalForm = attrValue;
- fContent = attrValue;
- if(fContent == null) {
- fValid = false;
- }
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.xml.XMLAttr#getAttributeType()
- */
- public QName getAttributeType() {
- return fAttrType;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.xml.XMLAttr#getContent()
- */
- public Object getContent() {
- return fContent;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.xml.XMLAttr#toExternalForm()
- */
- public String toExternalForm() {
- return fExternalForm;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.xml.XMLAttr#isValid()
- */
- public boolean isValid() {
- return fValid;
- }
-
-}
+ *
+ * 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.xml;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.XMLElement;
+
+/**
+ * This class represents extension attributes (those not in the WSDL namespace)
+ * that do not have a Java type registered in the Extension Registry.
+ * It treats the attribute's value as a string.
+ *
+ * @author jkaputin@apache.org
+ */
+public class UnknownAttr implements XMLAttr
+{
+ private QName fAttrType = null;
+ private Object fContent = null;
+ private String fExternalForm = null;
+ private boolean fValid = true;
+ private ErrorReporter fErrorReporter = null;
+
+ public UnknownAttr(XMLElement ownerEl, QName attrType,
+ String attrValue, ErrorReporter errRpt) throws WSDLException
+ {
+ fErrorReporter = errRpt;
+ fAttrType = attrType;
+ fExternalForm = attrValue;
+ fContent = attrValue;
+ if(fContent == null) {
+ fValid = false;
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.xml.XMLAttr#getAttributeType()
+ */
+ public QName getAttributeType() {
+ return fAttrType;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.xml.XMLAttr#getContent()
+ */
+ public Object getContent() {
+ return fContent;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.xml.XMLAttr#toExternalForm()
+ */
+ public String toExternalForm() {
+ return fExternalForm;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.xml.XMLAttr#isValid()
+ */
+ public boolean isValid() {
+ return fValid;
+ }
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/xml/UnknownAttr.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/xml/XMLAttr.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/xml/XMLAttr.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/xml/XMLAttr.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/xml/XMLAttr.java Thu Aug 23 04:01:23 2007
@@ -1,45 +1,45 @@
-/**
+/**
* 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.xml;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.ErrorReporter;
-import org.apache.woden.WSDLException;
-import org.apache.woden.XMLElement;
-
-/**
- * This interface represents an XML attribute information item. It can be initialized
- * with the string value of an attribute and the implementation must convert the string into
- * an object of the appropriate type. The getContent() method will return the converted
- * Object and the caller must cast this to the appropriate type.
- * If a conversion error occured because the string was not in the correct form,
- * the isValid() method will return false. The toExternalForm() method will return the
- * attribute's original string value.
- *
- * @author jkaputin@apache.org
- */
-public interface XMLAttr
-{
- public QName getAttributeType();
-
- public Object getContent();
-
- public String toExternalForm();
-
- public boolean isValid();
-}
+ *
+ * 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.xml;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.XMLElement;
+
+/**
+ * This interface represents an XML attribute information item. It can be initialized
+ * with the string value of an attribute and the implementation must convert the string into
+ * an object of the appropriate type. The getContent() method will return the converted
+ * Object and the caller must cast this to the appropriate type.
+ * If a conversion error occured because the string was not in the correct form,
+ * the isValid() method will return false. The toExternalForm() method will return the
+ * attribute's original string value.
+ *
+ * @author jkaputin@apache.org
+ */
+public interface XMLAttr
+{
+ public QName getAttributeType();
+
+ public Object getContent();
+
+ public String toExternalForm();
+
+ public boolean isValid();
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/xml/XMLAttr.java
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org