public class SchemaSystem extends Object
| Constructor and Description |
|---|
SchemaSystem()
Constructs a new SchemaSystem object.
|
SchemaSystem(SchemaSetConfig xml)
Constructs a SchemaSystem object using previously saved data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNamespace(String ns) |
Set<String> |
getNamespaces()
Get a list of contained namespaces.
|
Schema |
getSchemaForNamespace(String namespace)
Returns the matching Schema for the given namespace.
|
Type |
getType(QName qname)
Get an existing Type by its QName.
|
Schema |
newSchema(String namespace)
Create a blank new Schema under this SchemaSystem for a given namespace.
|
void |
save(SchemaSetConfig xml)
Saves the SchemaSystem to an XmlObject.
|
void |
validate(org.apache.xmlbeans.XmlObject xmlo,
ConflictHandler handler)
Validate an XmlObject against the contained inferred schemas.
|
public SchemaSystem()
public SchemaSystem(SchemaSetConfig xml)
xml - The XmlObject to which data has previously been saved.public void save(SchemaSetConfig xml)
xml - A blank XmlObject to save to.public Schema newSchema(String namespace)
namespace - The namespace for which to create a Schema.public Schema getSchemaForNamespace(String namespace)
namespace - A namespace that already exists within the SchemaSystem.public Type getType(QName qname)
qname - A QName containing the namespace URI of the schema in which the
Type exists, and also the name of the type.public void validate(org.apache.xmlbeans.XmlObject xmlo,
ConflictHandler handler)
throws org.apache.xmlbeans.XmlException
xmlo - An XmlObject containing the document to be validated.handler - A ConflictHandler to use on validation errors.org.apache.xmlbeans.XmlException - On unresolvable validation error.public Set<String> getNamespaces()
public void deleteNamespace(String ns)
Copyright © 2019. All Rights Reserved.