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 [6/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/ext...
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLReader.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLSource.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLSource.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLSource.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLSource.java Thu Aug 23 04:01:23 2007
@@ -1,68 +1,68 @@
-/**
+/**
* 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.internal;
-
-import java.net.URI;
-
-import org.apache.woden.ErrorReporter;
-import org.apache.woden.WSDLSource;
-
-/**
- * This abstract class implements methods of the WSDLSource interface that are
- * common across all concrete implementations. The only method on this interface
- * that is specific to each concrete implementation is the <code>setSource</code>
- * method and this method is declared abstract on this class.
- *
- * @author John Kaputin (jkaputin@apache.org)
- */
-public abstract class BaseWSDLSource implements WSDLSource {
-
- private URI fBaseURI = null;
- protected Object fSource = null;
- protected ErrorReporter fErrorReporter = null;
-
- protected BaseWSDLSource(ErrorReporter errorReporter) {
- fErrorReporter = errorReporter;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.WSDLSource#setSource(java.lang.Object)
- */
- abstract public void setSource(Object wsdlSource);
-
- /* (non-Javadoc)
- * @see org.apache.woden.WSDLSource#getSource()
- */
- public Object getSource() {
- return fSource;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.WSDLSource#setBaseURI(java.net.URI)
- */
- public void setBaseURI(URI baseURI) {
- fBaseURI = baseURI;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.WSDLSource#getBaseURI()
- */
- public URI getBaseURI() {
- return fBaseURI;
- }
-
-}
+ *
+ * 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.internal;
+
+import java.net.URI;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLSource;
+
+/**
+ * This abstract class implements methods of the WSDLSource interface that are
+ * common across all concrete implementations. The only method on this interface
+ * that is specific to each concrete implementation is the <code>setSource</code>
+ * method and this method is declared abstract on this class.
+ *
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public abstract class BaseWSDLSource implements WSDLSource {
+
+ private URI fBaseURI = null;
+ protected Object fSource = null;
+ protected ErrorReporter fErrorReporter = null;
+
+ protected BaseWSDLSource(ErrorReporter errorReporter) {
+ fErrorReporter = errorReporter;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.WSDLSource#setSource(java.lang.Object)
+ */
+ abstract public void setSource(Object wsdlSource);
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.WSDLSource#getSource()
+ */
+ public Object getSource() {
+ return fSource;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.WSDLSource#setBaseURI(java.net.URI)
+ */
+ public void setBaseURI(URI baseURI) {
+ fBaseURI = baseURI;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.WSDLSource#getBaseURI()
+ */
+ public URI getBaseURI() {
+ return fBaseURI;
+ }
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLSource.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/BaseXMLElement.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/BaseXMLElement.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/BaseXMLElement.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/BaseXMLElement.java Thu Aug 23 04:01:23 2007
@@ -1,178 +1,178 @@
-/**
+/**
* 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.internal;
-
-import java.net.URI;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.ErrorReporter;
-import org.apache.woden.WSDLException;
-import org.apache.woden.XMLElement;
-
-/**
- * This abstract class implements methods of the XMLElement interface that are
- * common across all concrete implementations.
- *
- */
-public abstract class BaseXMLElement implements XMLElement {
-
- protected Object fSource = null;
- protected ErrorReporter fErrorReporter = null;
-
- protected BaseXMLElement(ErrorReporter errorReporter) {
- fErrorReporter = errorReporter;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#setSource(java.lang.Object)
- */
- abstract public void setSource(Object elem);
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getSource()
- */
- public final Object getSource() {
- return fSource;
- }
-
- //TODO refactor getAttributes() here
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getAttribute(java.lang.String)
- */
- public final String getAttributeValue(String attrName) {
-
- if(fSource != null) {
- return doGetAttributeValue(attrName);
- } else {
- return null;
- }
-
- }
-
- protected abstract String doGetAttributeValue(String attrName);
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getNamespaceURI()
- */
- public final URI getNamespaceURI() throws WSDLException {
-
- if(fSource != null) {
- return doGetNamespaceURI();
- } else {
- return null;
- }
- }
-
- protected abstract URI doGetNamespaceURI() throws WSDLException;
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getLocalName()
- */
- public final String getLocalName() {
-
- if(fSource != null) {
- return doGetLocalName();
- } else {
- return null;
- }
- }
-
- protected abstract String doGetLocalName();
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getQName()
- */
- public final QName getQName() {
-
- if(fSource != null) {
- return doGetQName();
- } else {
- return null;
- }
- }
-
- protected abstract QName doGetQName();
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getQName(java.lang.String)
- */
- public final QName getQName(String prefixedValue) throws WSDLException {
-
- if(fSource != null) {
- return doGetQName(prefixedValue);
- } else {
- return null;
- }
- }
-
- protected abstract QName doGetQName(String prefixedValue) throws WSDLException;
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getFirstChildElement()
- */
- public final XMLElement getFirstChildElement() {
-
- if(fSource != null) {
- return doGetFirstChildElement();
- } else {
- return null;
- }
- }
-
- protected abstract XMLElement doGetFirstChildElement();
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getNextSiblingElement()
- */
- public final XMLElement getNextSiblingElement() {
-
- if(fSource != null) {
- return doGetNextSiblingElement();
- } else {
- return null;
- }
- }
-
- protected abstract XMLElement doGetNextSiblingElement();
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.XMLElement#getChildElements()
- */
- public final XMLElement[] getChildElements() {
-
- if(fSource != null) {
- return doGetChildElements();
- } else {
- return null;
- }
- }
-
- protected abstract XMLElement[] doGetChildElements();
-
-}
+ *
+ * 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.internal;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.XMLElement;
+
+/**
+ * This abstract class implements methods of the XMLElement interface that are
+ * common across all concrete implementations.
+ *
+ */
+public abstract class BaseXMLElement implements XMLElement {
+
+ protected Object fSource = null;
+ protected ErrorReporter fErrorReporter = null;
+
+ protected BaseXMLElement(ErrorReporter errorReporter) {
+ fErrorReporter = errorReporter;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#setSource(java.lang.Object)
+ */
+ abstract public void setSource(Object elem);
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getSource()
+ */
+ public final Object getSource() {
+ return fSource;
+ }
+
+ //TODO refactor getAttributes() here
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getAttribute(java.lang.String)
+ */
+ public final String getAttributeValue(String attrName) {
+
+ if(fSource != null) {
+ return doGetAttributeValue(attrName);
+ } else {
+ return null;
+ }
+
+ }
+
+ protected abstract String doGetAttributeValue(String attrName);
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getNamespaceURI()
+ */
+ public final URI getNamespaceURI() throws WSDLException {
+
+ if(fSource != null) {
+ return doGetNamespaceURI();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract URI doGetNamespaceURI() throws WSDLException;
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getLocalName()
+ */
+ public final String getLocalName() {
+
+ if(fSource != null) {
+ return doGetLocalName();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract String doGetLocalName();
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getQName()
+ */
+ public final QName getQName() {
+
+ if(fSource != null) {
+ return doGetQName();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract QName doGetQName();
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getQName(java.lang.String)
+ */
+ public final QName getQName(String prefixedValue) throws WSDLException {
+
+ if(fSource != null) {
+ return doGetQName(prefixedValue);
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract QName doGetQName(String prefixedValue) throws WSDLException;
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getFirstChildElement()
+ */
+ public final XMLElement getFirstChildElement() {
+
+ if(fSource != null) {
+ return doGetFirstChildElement();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract XMLElement doGetFirstChildElement();
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getNextSiblingElement()
+ */
+ public final XMLElement getNextSiblingElement() {
+
+ if(fSource != null) {
+ return doGetNextSiblingElement();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract XMLElement doGetNextSiblingElement();
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.XMLElement#getChildElements()
+ */
+ public final XMLElement[] getChildElements() {
+
+ if(fSource != null) {
+ return doGetChildElements();
+ } else {
+ return null;
+ }
+ }
+
+ protected abstract XMLElement[] doGetChildElements();
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/BaseXMLElement.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/DOMWSDLFactory.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/DOMWSDLFactory.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/DOMWSDLFactory.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/DOMWSDLFactory.java Thu Aug 23 04:01:23 2007
@@ -1,54 +1,54 @@
-/**
+/**
* 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.internal;
-
-import org.apache.woden.WSDLException;
-import org.apache.woden.WSDLFactory;
-import org.apache.woden.WSDLReader;
-import org.apache.woden.internal.wsdl20.DescriptionImpl;
-import org.apache.woden.internal.wsdl20.extensions.PopulatedExtensionRegistry;
-import org.apache.woden.wsdl20.extensions.ExtensionRegistry;
-import org.apache.woden.wsdl20.xml.DescriptionElement;
-
-
-/**
- * @author John Kaputin (jkaputin@apache.org)
- */
-public class DOMWSDLFactory extends WSDLFactory {
-
- private WSDLContext fWsdlContext;
-
- public DOMWSDLFactory() throws WSDLException {
- fWsdlContext = new WSDLContext(this, new ErrorReporterImpl());
- ExtensionRegistry extReg = newPopulatedExtensionRegistry();
- fWsdlContext.setExtensionRegistry(extReg);
- }
-
- public WSDLReader newWSDLReader() throws WSDLException {
- return new DOMWSDLReader(fWsdlContext);
- }
-
- public DescriptionElement newDescription() {
- return new DescriptionImpl(fWsdlContext);
- }
-
- public ExtensionRegistry newPopulatedExtensionRegistry()
- {
- return new PopulatedExtensionRegistry(fWsdlContext);
- }
-
-}
+ *
+ * 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.internal;
+
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.WSDLReader;
+import org.apache.woden.internal.wsdl20.DescriptionImpl;
+import org.apache.woden.internal.wsdl20.extensions.PopulatedExtensionRegistry;
+import org.apache.woden.wsdl20.extensions.ExtensionRegistry;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+
+
+/**
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public class DOMWSDLFactory extends WSDLFactory {
+
+ private WSDLContext fWsdlContext;
+
+ public DOMWSDLFactory() throws WSDLException {
+ fWsdlContext = new WSDLContext(this, new ErrorReporterImpl());
+ ExtensionRegistry extReg = newPopulatedExtensionRegistry();
+ fWsdlContext.setExtensionRegistry(extReg);
+ }
+
+ public WSDLReader newWSDLReader() throws WSDLException {
+ return new DOMWSDLReader(fWsdlContext);
+ }
+
+ public DescriptionElement newDescription() {
+ return new DescriptionImpl(fWsdlContext);
+ }
+
+ public ExtensionRegistry newPopulatedExtensionRegistry()
+ {
+ return new PopulatedExtensionRegistry(fWsdlContext);
+ }
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/DOMWSDLFactory.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