|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchema
public class XmlSchema
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 |
setInputEncoding(java.lang.String encoding)
|
void |
setNamespaceContext(NamespacePrefixList namespaceContext)
Sets the schema elements namespace context. |
void |
setTargetNamespace(java.lang.String targetNamespace)
|
void |
write(java.io.OutputStream out)
Serialize the schema into the given output stream |
void |
write(java.io.OutputStream out,
java.util.Map options)
Serialize the schema into the given output stream |
void |
write(java.io.Writer writer)
Serialie the schema to a given writer |
void |
write(java.io.Writer writer,
java.util.Map options)
Serialie the schema to a given 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 |
---|
public XmlSchema(XmlSchemaCollection parent)
public XmlSchema(java.lang.String namespace, XmlSchemaCollection parent)
Method Detail |
---|
public void setInputEncoding(java.lang.String encoding)
public XmlSchemaForm getAttributeFormDefault()
public void setAttributeFormDefault(XmlSchemaForm value)
public XmlSchemaObjectTable getAttributeGroups()
public XmlSchemaObjectTable getAttributes()
public XmlSchemaDerivationMethod getBlockDefault()
public void setBlockDefault(XmlSchemaDerivationMethod blockDefault)
public XmlSchemaForm getElementFormDefault()
public void setElementFormDefault(XmlSchemaForm elementFormDefault)
public XmlSchemaObjectTable getElements()
public XmlSchemaElement getElementByName(javax.xml.namespace.QName name)
public XmlSchemaType getTypeByName(javax.xml.namespace.QName name)
public XmlSchemaDerivationMethod getFinalDefault()
public void setFinalDefault(XmlSchemaDerivationMethod finalDefault)
public XmlSchemaObjectTable getGroups()
public XmlSchemaObjectCollection getIncludes()
public boolean isCompiled()
public XmlSchemaObjectCollection getItems()
public XmlSchemaObjectTable getNotations()
public XmlSchemaObjectTable getSchemaTypes()
public java.lang.String getTargetNamespace()
public void setTargetNamespace(java.lang.String targetNamespace)
public java.lang.String getVersion()
public void compile(ValidationEventHandler eh)
public void write(java.io.OutputStream out)
out
- - the output stream to write topublic void write(java.io.OutputStream out, java.util.Map options)
out
- - the output stream to write tooptions
- - a map of optionspublic void write(java.io.Writer writer, java.util.Map options)
writer
- - the writer to write thispublic void write(java.io.Writer writer)
writer
- - the writer to write thispublic org.w3c.dom.Document[] getAllSchemas()
public void addType(XmlSchemaType type)
public NamespacePrefixList getNamespaceContext()
NamespaceContextOwner
getNamespaceContext
in interface NamespaceContextOwner
public void setNamespaceContext(NamespacePrefixList namespaceContext)
public boolean equals(java.lang.Object what)
equals
in class XmlSchemaObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |