Author: bimargulies Date: Wed Oct 13 21:24:07 2010 New Revision: 1022295 URL: http://svn.apache.org/viewvc?rev=1022295&view=rev Log: add comments to clarify the schema slot in XmlSchemaExternal
Modified: webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaExternal.java Modified: webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaExternal.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaExternal.java?rev=1022295&r1=1022294&r2=1022295&view=diff ============================================================================== --- webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaExternal.java (original) +++ webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaExternal.java Wed Oct 13 21:24:07 2010 @@ -20,9 +20,10 @@ package org.apache.ws.commons.schema; /** - * An abstract class. Provides information about the included schema. + * Common class for include, import, and redefine. All have in common two items: + * the location of the referenced schema (required) and an optional + * reference to that schema as represented in XmlSchema. */ - public abstract class XmlSchemaExternal extends XmlSchemaAnnotated { XmlSchema schema; @@ -39,6 +40,13 @@ public abstract class XmlSchemaExternal public XmlSchema getSchema() { return schema; } + + /** + * Store a reference to an XmlSchema corresponding to this item. This only + * case in which this will be read is if you ask the XmlSchemaSerializer + * to serialize external schemas. + * @param sc schema reference + */ public void setSchema(XmlSchema sc) { schema = sc; }