org.apache.ws.commons.schema
Class XmlSchema

java.lang.Object
  extended byorg.apache.ws.commons.schema.XmlSchemaObject
      extended byorg.apache.ws.commons.schema.XmlSchemaAnnotated
          extended byorg.apache.ws.commons.schema.XmlSchema
All Implemented Interfaces:
NamespaceContextOwner

public class XmlSchema
extends XmlSchemaAnnotated
implements NamespaceContextOwner

Contains the definition of a schema. All XML Schema definition language (XSD) elements are children of the schema element. Represents the World Wide Web Consortium (W3C) schema element


Field Summary
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
unhandledAttributes
 
Constructor Summary
XmlSchema(java.lang.String namespace, XmlSchemaCollection parent)
           
XmlSchema(XmlSchemaCollection parent)
          Creates new XmlSchema
 
Method Summary
 void addType(XmlSchemaType type)
           
 void compile(ValidationEventHandler eh)
           
 boolean equals(java.lang.Object what)
          Override the equals(Object) method with equivalence checking that is specific to this class.
 org.w3c.dom.Document[] getAllSchemas()
           
 XmlSchemaForm getAttributeFormDefault()
           
 XmlSchemaObjectTable getAttributeGroups()
           
 XmlSchemaObjectTable getAttributes()
           
 XmlSchemaDerivationMethod getBlockDefault()
           
 XmlSchemaElement getElementByName(javax.xml.namespace.QName name)
           
 XmlSchemaForm getElementFormDefault()
           
 XmlSchemaObjectTable getElements()
           
 XmlSchemaDerivationMethod getFinalDefault()
           
 XmlSchemaObjectTable getGroups()
           
 XmlSchemaObjectCollection getIncludes()
           
 XmlSchemaObjectCollection getItems()
           
 NamespacePrefixList getNamespaceContext()
          Returns the objects namespace context.
 XmlSchemaObjectTable getNotations()
           
 XmlSchemaObjectTable getSchemaTypes()
           
 java.lang.String getTargetNamespace()
           
 XmlSchemaType getTypeByName(javax.xml.namespace.QName name)
           
 java.lang.String getVersion()
           
 boolean isCompiled()
           
 void setAttributeFormDefault(XmlSchemaForm value)
           
 void setBlockDefault(XmlSchemaDerivationMethod blockDefault)
           
 void setElementFormDefault(XmlSchemaForm elementFormDefault)
           
 void setFinalDefault(XmlSchemaDerivationMethod finalDefault)
           
 void setNamespaceContext(NamespacePrefixList namespaceContext)
          Sets the schema elements namespace context.
 void setTargetNamespace(java.lang.String targetNamespace)
           
 void write(java.io.OutputStream out)
           
 void write(java.io.Writer writer)
           
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSchema

public XmlSchema(XmlSchemaCollection parent)
Creates new XmlSchema


XmlSchema

public XmlSchema(java.lang.String namespace,
                 XmlSchemaCollection parent)
Method Detail

getAttributeFormDefault

public XmlSchemaForm getAttributeFormDefault()

setAttributeFormDefault

public void setAttributeFormDefault(XmlSchemaForm value)

getAttributeGroups

public XmlSchemaObjectTable getAttributeGroups()

getAttributes

public XmlSchemaObjectTable getAttributes()

getBlockDefault

public XmlSchemaDerivationMethod getBlockDefault()

setBlockDefault

public void setBlockDefault(XmlSchemaDerivationMethod blockDefault)

getElementFormDefault

public XmlSchemaForm getElementFormDefault()

setElementFormDefault

public void setElementFormDefault(XmlSchemaForm elementFormDefault)

getElements

public XmlSchemaObjectTable getElements()

getElementByName

public XmlSchemaElement getElementByName(javax.xml.namespace.QName name)

getTypeByName

public XmlSchemaType getTypeByName(javax.xml.namespace.QName name)

getFinalDefault

public XmlSchemaDerivationMethod getFinalDefault()

setFinalDefault

public void setFinalDefault(XmlSchemaDerivationMethod finalDefault)

getGroups

public XmlSchemaObjectTable getGroups()

getIncludes

public XmlSchemaObjectCollection getIncludes()

isCompiled

public boolean isCompiled()

getItems

public XmlSchemaObjectCollection getItems()

getNotations

public XmlSchemaObjectTable getNotations()

getSchemaTypes

public XmlSchemaObjectTable getSchemaTypes()

getTargetNamespace

public java.lang.String getTargetNamespace()

setTargetNamespace

public void setTargetNamespace(java.lang.String targetNamespace)

getVersion

public java.lang.String getVersion()

compile

public void compile(ValidationEventHandler eh)

write

public void write(java.io.OutputStream out)

write

public void write(java.io.Writer writer)

getAllSchemas

public org.w3c.dom.Document[] getAllSchemas()

addType

public void addType(XmlSchemaType type)

getNamespaceContext

public NamespacePrefixList getNamespaceContext()
Description copied from interface: NamespaceContextOwner
Returns the objects namespace context.

Specified by:
getNamespaceContext in interface NamespaceContextOwner

setNamespaceContext

public void setNamespaceContext(NamespacePrefixList namespaceContext)
Sets the schema elements namespace context. This may be used for schema serialization, until a better mechanism was found.


equals

public boolean equals(java.lang.Object what)
Override the equals(Object) method with equivalence checking that is specific to this class.

Overrides:
equals in class XmlSchemaObject


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.