org.apache.ws.commons.schema
Class XmlSchema
java.lang.Object
org.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSchema
public XmlSchema(XmlSchemaCollection parent)
- Creates new XmlSchema
XmlSchema
public XmlSchema(java.lang.String namespace,
XmlSchemaCollection parent)
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.