|
||||||||||
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()
Create a schema that is not a member of a collection. |
|
XmlSchema(java.lang.String namespace,
java.lang.String systemId,
XmlSchemaCollection parent)
Create a new schema and record it as a member of a schema collection. |
|
XmlSchema(java.lang.String namespace,
XmlSchemaCollection parent)
|
|
XmlSchema(XmlSchemaCollection parent)
Deprecated. |
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()
|
XmlSchemaAttribute |
getAttributeByName(javax.xml.namespace.QName name)
Look for a global attribute by its QName. |
protected XmlSchemaAttribute |
getAttributeByName(javax.xml.namespace.QName name,
boolean deep,
java.util.Stack schemaStack)
|
XmlSchemaForm |
getAttributeFormDefault()
|
XmlSchemaObjectTable |
getAttributeGroups()
|
XmlSchemaObjectTable |
getAttributes()
|
XmlSchemaDerivationMethod |
getBlockDefault()
|
XmlSchemaElement |
getElementByName(javax.xml.namespace.QName name)
Look for a element by its qname. |
protected XmlSchemaElement |
getElementByName(javax.xml.namespace.QName name,
boolean deep,
java.util.Stack schemaStack)
|
XmlSchemaElement |
getElementByName(java.lang.String name)
get an element by the name in the local schema |
XmlSchemaForm |
getElementFormDefault()
|
XmlSchemaObjectTable |
getElements()
|
XmlSchemaDerivationMethod |
getFinalDefault()
|
XmlSchemaObjectTable |
getGroups()
|
XmlSchemaObjectCollection |
getIncludes()
|
java.lang.String |
getInputEncoding()
|
XmlSchemaObjectCollection |
getItems()
|
NamespacePrefixList |
getNamespaceContext()
Returns the objects namespace context. |
XmlSchemaObjectTable |
getNotations()
|
org.w3c.dom.Document |
getSchemaDocument()
Retrieve a DOM tree for this one schema, independent of any included or related schemas. |
XmlSchemaObjectTable |
getSchemaTypes()
|
java.lang.String |
getTargetNamespace()
|
XmlSchemaType |
getTypeByName(javax.xml.namespace.QName name)
Search this schema and all the imported/included ones for the given Qname |
protected XmlSchemaType |
getTypeByName(javax.xml.namespace.QName name,
boolean deep,
java.util.Stack schemaStack)
Protected method that allows safe (non-recursive schema loading). |
XmlSchemaType |
getTypeByName(java.lang.String name)
Search this schema for a type by qname. |
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)
|
java.lang.String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public XmlSchema(XmlSchemaCollection parent)
XmlSchema(String, XmlSchemaCollection)
instead.
parent
- the parent XmlSchemaCollectionpublic XmlSchema()
public XmlSchema(java.lang.String namespace, java.lang.String systemId, XmlSchemaCollection parent)
namespace
- the target namespace.systemId
- the system ID for the schema.parent
- the parent collection.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()
protected XmlSchemaElement getElementByName(javax.xml.namespace.QName name, boolean deep, java.util.Stack schemaStack)
protected XmlSchemaAttribute getAttributeByName(javax.xml.namespace.QName name, boolean deep, java.util.Stack schemaStack)
public XmlSchemaElement getElementByName(java.lang.String name)
name
-
public XmlSchemaElement getElementByName(javax.xml.namespace.QName name)
name
-
public XmlSchemaAttribute getAttributeByName(javax.xml.namespace.QName name)
name
-
protected XmlSchemaType getTypeByName(javax.xml.namespace.QName name, boolean deep, java.util.Stack schemaStack)
name
- deep
- schemaStack
-
public XmlSchemaType getTypeByName(javax.xml.namespace.QName name)
name
-
public XmlSchemaType getTypeByName(java.lang.String name)
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
public org.w3c.dom.Document getSchemaDocument() throws XmlSchemaSerializer.XmlSchemaSerializerException
XmlSchemaSerializer.XmlSchemaSerializerException
public java.lang.String getInputEncoding()
public java.lang.String toString()
toString
in class XmlSchemaAnnotated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |