Method Summary |
|
public void | addAttribute(AttributeDecl attribute) |
public void | addAttributeGroup(AttributeGroupDecl attrGroup) Adds the given attribute group definition to this Schema
definition. |
public synchronized void | addComplexType(ComplexType complexType) |
public void | addElementDecl(ElementDecl elementDecl) |
public synchronized void | addImportedSchema(Schema schema) |
public void | addInclude(String include) |
public void | addModelGroup(ModelGroup group) |
public void | addNamespace(String prefix, String ns) |
public void | addRedefineSchema(RedefineSchema schema) Adds the given redefinition of structures to this Schema definition.
This structure is mainly used to allow the writing of an XML schema that
contains redefinitions. |
public synchronized void | addSimpleType(SimpleType simpleType) |
public synchronized void | cacheIncludedSchema(Schema schema) Caches the given Schema definition as an included XML Schema of this
Schema definition. |
public ComplexType | createComplexType() Creates a new ComplexType using this Schema as the owning Schema
document. |
public ComplexType | createComplexType(String name) Creates a new ComplexType using this Schema as the owning Schema
document. |
public SimpleType | createSimpleType(String name, String baseName, String derivation) Creates a new SimpleType using this Schema as the owning Schema
document. |
public SimpleType | createSimpleType(String name, SimpleType baseType) Creates a new SimpleType using this Schema as the owning Schema
document. |
public AttributeDecl | getAttribute(String name) Returns the top-level Attribute associated with the given name. |
public Form | getAttributeFormDefault() Returns the attributeFormDefault property of this Schema.
the attributeFormDefault property of this Schema, or nullif no default Form was set. |
public AttributeGroup | getAttributeGroup(String name) Returns the AttributeGroup associated with the given name. |
public Enumeration | getAttributeGroups() |
public Enumeration | getAttributes() |
public BlockList | getBlockDefault() Returns the default BlockList for this Schema. |
public String | getBuiltInTypeName(int builtInTypeCode) Gets a built in type's name given its code. |
public Schema | getCachedIncludedSchema(String schemaLocation) |
public Enumeration | getCachedIncludedSchemas() Returns an enumeration of all the included schemas that are cached
in this XML Schema Definition. |
public ComplexType | getComplexType(String name) |
public Enumeration | getComplexTypes() |
public ElementDecl | getElementDecl(String name) |
public Enumeration | getElementDecls() |
public Form | getElementFormDefault() Returns the elementFormDefault property of this Schema.
the elementFormDefault property of this Schema, or nullif no default Form was set. |
public FinalList | getFinalDefault() Returns the default FinalList for this Schema. |
public String | getId() Returns the Id for this Schema, as specified by the
Id attribute, or null if no Id exists. |
public Enumeration | getImportedSchema() |
public Schema | getImportedSchema(String ns) |
public Schema | getImportedSchema(String ns, boolean localOnly) Returns the imported schema with the given namespace
Parameters: ns - the namespace of the imported schema to return Parameters: localOnly - a boolean that indicates only local importsshould be searched. |
protected Schema | getMasterSchema() Returns the master schema in which this instance of schema
is used at runtime. |
public ModelGroup | getModelGroup(String name) |
public Enumeration | getModelGroups() |
final public String | getNamespace(String prefix) Returns the namespace associated with the given prefix. |
protected String | getNamespacePrefix(String namespace) Returns the namespace prefix associated with the
given namespace. |
public Namespaces | getNamespaces() |
public Enumeration | getRedefineSchema() Returns an enumeration of redefined schemas. |
public RedefineSchema | getRedefineSchema(String schemaLocation) Returns the redefined schema corresponding schemaLocation.
Parameters: schemaLocation - the string corresponding to the schemaLocation. |
public String | getSchemaLocation() |
public String | getSchemaNamespace() Returns the namespace of the XML Schema
Note: This is not the same as targetNamespace. |
public SimpleType | getSimpleType(String name) Returns the SimpleType associated with the given name,
or null if no such SimpleType exists.
Parameters: name - the name of the SimpleType. |
public SimpleType | getSimpleType(String name, String namespace) Returns the SimpleType associated with the given name
and namespace, or null if no such SimpleType exists.
Parameters: name - the name of the simpleType. |
public Enumeration | getSimpleTypes() |
public short | getStructureType() |
public String | getTargetNamespace() Returns the target namespace for this Schema, or null if no
namespace has been defined. |
public XMLType | getType(String typeName) |
static SimpleTypesFactory | getTypeFactory() |
public String | getVersion() Returns the version information of the XML Schema definition
represented by this Schema instance. |
public boolean | includeProcessed(String includeFile) |
public boolean | isKnownNamespace(String namespaceURL) |
public boolean | removeAttribute(AttributeDecl attribute) |
public boolean | removeAttributeGroup(AttributeGroupDecl group) |
public synchronized boolean | removeCachedIncludedSchema(Schema schema) Removes the given cached included schema from this Schema definition's
list of cached included schema. |
public boolean | removeComplexType(ComplexType complexType) |
public boolean | removeElement(ElementDecl element) |
public boolean | removeGroup(ModelGroup group) |
public synchronized boolean | removeImportedSchema(Schema schema) |
public boolean | removeNamespace(String prefix) Removes the namespace from the set of namespace declarations for
this Schema definition. |
public synchronized boolean | removeRedefineSchema(RedefineSchema schema) Removes the given redefined structure from this Schema definition's
list of redefinitions. |
public boolean | removeSimpleType(SimpleType simpleType) |
public void | setAttributeFormDefault(Form attributeFormDefault) Sets the attributeFormDefault property of this Schema. |
public void | setBlockDefault(BlockList block) Sets the default BlockList for this Schema. |
public void | setBlockDefault(String block) Sets the default Block values for this Schema. |
public void | setElementFormDefault(Form elementFormDefault) Sets the elementFormDefault property of this Schema. |
public void | setFinalDefault(FinalList finalList) Sets the default FinalList for this Schema. |
public void | setFinalDefault(String finalValues) Sets the default final values for this Schema. |
public void | setId(String id) |
protected void | setMasterSchema(Schema masterSchema) Sets the master schema in which this instance of schema
is used at runtime. |
public void | setSchemaLocation(String schemaLocation) Set the schemaLocation for this schema. |
public void | setTargetNamespace(String targetNamespace) |
public void | setVersion(String version) Sets the version information for the XML Schema defintion
represented by this Schema instance. |
public void | validate() Checks the validity of this Schema definition. |