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
public class XmlSchema
- extends XmlSchemaAnnotated
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 |
SCHEMA_NS
static final java.lang.String SCHEMA_NS
- See Also:
- Constant Field Values
attributeFormDefault
XmlSchemaForm attributeFormDefault
elementFormDefault
XmlSchemaForm elementFormDefault
attributeGroups
XmlSchemaObjectTable attributeGroups
attributes
XmlSchemaObjectTable attributes
elements
XmlSchemaObjectTable elements
groups
XmlSchemaObjectTable groups
notations
XmlSchemaObjectTable notations
schemaTypes
XmlSchemaObjectTable schemaTypes
blockDefault
XmlSchemaDerivationMethod blockDefault
finalDefault
XmlSchemaDerivationMethod finalDefault
includes
XmlSchemaObjectCollection includes
items
XmlSchemaObjectCollection items
isCompiled
boolean isCompiled
targetNamespace
java.lang.String targetNamespace
version
java.lang.String version
namespaces
java.util.Hashtable namespaces
schema_ns_prefix
java.lang.String schema_ns_prefix
parent
XmlSchemaCollection parent
XmlSchema
public XmlSchema(XmlSchemaCollection parent)
- Creates new XmlSchema
XmlSchema
public XmlSchema(java.lang.String namespace,
XmlSchemaCollection parent)
getNamespace
protected java.lang.String getNamespace(java.lang.String prefix)
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()
getPrefixToNamespaceMap
public java.util.Hashtable getPrefixToNamespaceMap()
setPrefixToNamespaceMap
public void setPrefixToNamespaceMap(java.util.Hashtable map)
addType
public void addType(XmlSchemaType type)
Copyright 2004-2004-2006 Apache Software Foundation. All Rights Reserved.