You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2018/01/06 13:18:45 UTC
svn commit: r1820397 - in /webservices/xmlschema/trunk:
xmlschema-core/src/main/java/org/apache/ws/commons/schema/
xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/
xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/ xml...
Author: veithen
Date: Sat Jan 6 13:18:45 2018
New Revision: 1820397
URL: http://svn.apache.org/viewvc?rev=1820397&view=rev
Log:
Fix Javadoc problems.
Modified:
webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java
webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/DomBuilderFromSax.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/SaxWalkerOverDom.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaNamespaceContext.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaStateMachineNode.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/package-info.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaVisitor.java
webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaWalker.java
Modified: webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java (original)
+++ webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java Sat Jan 6 13:18:45 2018
@@ -202,7 +202,7 @@ public class XmlSchema extends XmlSchema
* Return a map containing all the defined attribute groups of this schema. The keys are QNames, where the
* namespace will always be the target namespace of this schema. This makes it easier to look up items for
* cross-schema references.
- * <br/>
+ * <br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime.
*
@@ -216,7 +216,7 @@ public class XmlSchema extends XmlSchema
* Return a map containing all the defined attributes of this schema. The keys are QNames, where the
* namespace will always be the target namespace of this schema. This makes it easier to look up items for
* cross-schema references.
- * <br/>
+ * <br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime.
*
@@ -267,7 +267,7 @@ public class XmlSchema extends XmlSchema
* Return a map containing all the defined elements of this schema. The keys are QNames, where the
* namespace will always be the target namespace of this schema. This makes it easier to look up items for
* cross-schema references.
- * <br/>
+ * <br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime
*
@@ -279,7 +279,7 @@ public class XmlSchema extends XmlSchema
/**
* Return all of the includes, imports, and redefines for this schema.
- * <br/>
+ * <br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a list that checks at runtime
*
@@ -309,7 +309,7 @@ public class XmlSchema extends XmlSchema
/**
* Return a map containing all the defined groups of this schema. The keys are QNames, where the namespace
* will always be the target namespace of this schema. This makes it easier to look up items for
- * cross-schema references.<br/>
+ * cross-schema references.<br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime
*
@@ -330,7 +330,7 @@ public class XmlSchema extends XmlSchema
}
/**
- * Return all of the global items in this schema.<br/>
+ * Return all of the global items in this schema.<br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime.
* @return <strong>all</strong> of the global items from this schema.
@@ -372,7 +372,7 @@ public class XmlSchema extends XmlSchema
* Return a map containing all the defined notations of this schema. The keys are QNames, where the
* namespace will always be the target namespace of this schema. This makes it easier to look up items for
* cross-schema references.
- * <br/>
+ * <br>
* If org.apache.ws.commons.schema.protectReadOnlyCollections
* is 'true', this will return a map that checks at runtime.
*
Modified: webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java (original)
+++ webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java Sat Jan 6 13:18:45 2018
@@ -516,7 +516,6 @@ public final class XmlSchemaCollection {
* document.
*
* @param doc the XSD document.
- * @param veh handler that is called back for validation.
* @return the XML schema object.
*/
public XmlSchema read(Document doc) {
@@ -574,7 +573,6 @@ public final class XmlSchemaCollection {
* the concatenation of system ID and targetNamespace. In this API, the systemID is taken from the Source.
*
* @param source the XSD document.
- * @param veh handler that is called back for validation.
* @return the XML schema object.
*/
public XmlSchema read(Source source) {
Modified: webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java (original)
+++ webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java Sat Jan 6 13:18:45 2018
@@ -28,6 +28,8 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import javax.xml.namespace.NamespaceContext;
+
import org.w3c.dom.Element;
import org.w3c.dom.Node;
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/DomBuilderFromSax.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/DomBuilderFromSax.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/DomBuilderFromSax.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/DomBuilderFromSax.java Sat Jan 6 13:18:45 2018
@@ -328,7 +328,7 @@ public final class DomBuilderFromSax ext
}
/**
- * Retrieves the XML Schema namespace -> location mapping set by the last
+ * Retrieves the XML Schema namespace -> location mapping set by the last
* call to {@link #setNamespaceToLocationMapping(Map)}.
*/
public Map<String, String> getNamespaceToLocationMapping() {
@@ -336,17 +336,17 @@ public final class DomBuilderFromSax ext
}
/**
- * Sets the XML Schema namespace -> location mapping to use when defining
+ * Sets the XML Schema namespace -> location mapping to use when defining
* the schemaLocation attribute in the generated XML document.
*
- * @param nsToLocMapping The namespace -> location mapping.
+ * @param nsToLocMapping The namespace -> location mapping.
*/
public void setNamespaceToLocationMapping(Map<String, String> nsToLocMapping) {
namespaceToLocationMapping = nsToLocMapping;
}
/**
- * Retrieves the {@link QName} -> {@link XmlSchemaStateMachineNode} mapping
+ * Retrieves the {@link QName} -> {@link XmlSchemaStateMachineNode} mapping
* defined by the call to {@link #setStateMachinesByQName(Map)}.
*/
public Map<QName, XmlSchemaStateMachineNode> getStateMachinesByQName() {
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/SaxWalkerOverDom.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/SaxWalkerOverDom.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/SaxWalkerOverDom.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/SaxWalkerOverDom.java Sat Jan 6 13:18:45 2018
@@ -52,7 +52,6 @@ import org.xml.sax.SAXException;
* <li>{@link ContentHandler#endPrefixMapping(String)}</li>
* <li>{@link ContentHandler#endDocument()}</li>
* </ul>
- * </p>
*/
public final class SaxWalkerOverDom {
@@ -299,7 +298,6 @@ public final class SaxWalkerOverDom {
* handlers, this method is a no-op.
*
* @param document The {@link Document} to traverse.
- * @param systemId The system ID of this {@link Document}.
* @throws SAXException if an exception occurs when notifying the handlers.
*/
public void walk(Document document) throws SAXException {
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaNamespaceContext.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaNamespaceContext.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaNamespaceContext.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaNamespaceContext.java Sat Jan 6 13:18:45 2018
@@ -45,9 +45,9 @@ public final class XmlSchemaNamespaceCon
* following initial mappings:
* <ul>
* <li>
- * <code>xml</code> -> <code>http://www.w3.org/1999/namespace</code></li>
+ * <code>xml</code> -> <code>http://www.w3.org/1999/namespace</code></li>
* <li>
- * <code>xmlns</code> -> <code>http://www.w3.org/2000/xmlns/</code></li>
+ * <code>xmlns</code> -> <code>http://www.w3.org/2000/xmlns/</code></li>
* </ul>
*/
public XmlSchemaNamespaceContext() {
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaStateMachineNode.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaStateMachineNode.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaStateMachineNode.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/XmlSchemaStateMachineNode.java Sat Jan 6 13:18:45 2018
@@ -32,7 +32,7 @@ import org.apache.ws.commons.schema.walk
* This represents a node in the state machine used when parsing an XML
* {@link org.w3c.dom.Document} based on its
* {@link org.apache.ws.commons.schema.XmlSchema} and Avro
- * {@link org.apache.avro.Schema}.
+ * {@code org.apache.avro.Schema}.
* <p>
* A <code>SchemaStateMachineNode</code> represents one of:
* <ul>
@@ -48,7 +48,6 @@ import org.apache.ws.commons.schema.walk
* first pass will determine the correct path through the document's schema in
* order to properly parse the elements, and the second traversal will read the
* elements while following that path.
- * </p>
*/
public final class XmlSchemaStateMachineNode {
@@ -192,7 +191,7 @@ public final class XmlSchemaStateMachine
/**
* Returns the {@link XmlSchemaAny} associated with this node, or
- * <code>null</code if none.
+ * {@code null} if none.
*/
public XmlSchemaAny getAny() {
return any;
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/package-info.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/package-info.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/package-info.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/docpath/package-info.java Sat Jan 6 13:18:45 2018
@@ -57,11 +57,9 @@
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathNode#setUserDefinedContent(Object)}.
* </li>
* </ol>
- * </p>
*
* <h2>XmlSchemaStateMachineNode</h2>
*
- * <p>
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode}
* represents a single node in the
* {@link org.apache.ws.commons.schema.XmlSchema} - either an element or a
@@ -71,11 +69,9 @@
* for each {@link org.apache.ws.commons.schema.XmlSchemaElement}, meaning
* the {@link org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode}s
* may loop back on themselves if an XML element is a child of itself.
- * </p>
*
* <h2>XmlSchemaDocumentNode</h2>
*
- * <p>
* As {@link org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode}s
* represent the XML Schema,
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaDocumentNode}s
@@ -84,7 +80,6 @@
* set of children can be requested, one for each occurrence. Document nodes
* never loop back on themselves; if an element is a child of itself, a new
* document node instance will be created at each level in the tree.
- * </p>
*
* <p>
* As a result, the
@@ -94,16 +89,13 @@
* using the
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathNode#setUserDefinedContent(Object)}.
* method.
- * </p>
*
* <h2>XmlSchemaPathNode</h2>
*
- * <p>
* Where {@link org.apache.ws.commons.schema.docpath.XmlSchemaDocumentNode}s
* represent the XML Schema structure used to describe the XML Document,
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathNode}s define the
* actual walk through the XML Schema taken to represent that document.
- * </p>
* <p>
* Paths may go in four
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathNode.Direction}s:
@@ -134,11 +126,9 @@
* element's child groups.
* </li>
* </ul>
- * </p>
*
* <h2>XmlSchemaPathFinder</h2>
*
- * <p>
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathFinder} builds
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaDocumentNode}s
* and {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathNode}s
@@ -146,27 +136,22 @@
* during a SAX walk of an XML document. In addition to confirming the XML
* Document conforms to its schema's structure, it will also confirm attribute
* and element content conform to its expected type.
- * </p>
*
* <p>
* <b>Note:</b> This is done entirely over a SAX walk, meaning the source need
* not be an XML Document at all. Any data structure that can be traversed
* via a SAX walk can be confirmed to conform against an expected XML Schema.
- * </p>
*
* <h2>SaxWalkerOverDom</h2>
*
- * <p>
* This allows SAX-based walks over {@link org.w3c.dom.Document} objects.
* One can use this in conjunction with
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaPathFinder} to
* confirm a document parsed using a {@link javax.xml.parsers.DocumentBuilder}
* conforms to its XML Schema.
- * </p>
*
* <h2>DomBuilderFromSax</h2>
*
- * <p>
* In the reverse direction, one can use
* {@link org.apache.ws.commons.schema.docpath.DomBuilderFromSax} to build an
* {@link org.w3c.dom.Document} based on an XML Schema and a SAX walk over
@@ -177,6 +162,5 @@
* {@link org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode}s.
* This is used by the <code>DomBuilderFromSax</code> to resolve ambiguities
* in how to generate the XML Document based on the schema.
- * </p>
*/
package org.apache.ws.commons.schema.docpath;
\ No newline at end of file
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaVisitor.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaVisitor.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaVisitor.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaVisitor.java Sat Jan 6 13:18:45 2018
@@ -148,14 +148,14 @@ public interface XmlSchemaVisitor {
/**
* Called when a choice group is entered.
*
- * @param all The {@link XmlSchemaChoice} representing the choice group.
+ * @param choice The {@link XmlSchemaChoice} representing the choice group.
*/
void onEnterChoiceGroup(XmlSchemaChoice choice);
/**
* Called when a choice group is exited.
*
- * @param all The {@link XmlSchemaChoice} representing the choice group.
+ * @param choice The {@link XmlSchemaChoice} representing the choice group.
*/
void onExitChoiceGroup(XmlSchemaChoice choice);
Modified: webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaWalker.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaWalker.java?rev=1820397&r1=1820396&r2=1820397&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaWalker.java (original)
+++ webservices/xmlschema/trunk/xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaWalker.java Sat Jan 6 13:18:45 2018
@@ -61,7 +61,7 @@ public final class XmlSchemaWalker {
/**
* Initializes the {@link XmlSchemaWalker} with the
- * {@link XmlScheamCollection} to reference when following an
+ * {@link XmlSchemaCollection} to reference when following an
* {@link XmlSchemaElement}.
*/
public XmlSchemaWalker(XmlSchemaCollection xmlSchemas) {