Represents a set of namespaces with inferred schemas.
Constructor and description |
---|
SchemaSystem
() Constructs a new SchemaSystem object. |
SchemaSystem
(SchemaSetConfig xml) Constructs a SchemaSystem object using previously saved data. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
deleteNamespace(java.lang.String ns) |
|
java.util.Set<java.lang.String> |
getNamespaces() Get a list of contained namespaces. |
|
Schema |
getSchemaForNamespace(java.lang.String namespace) Returns the matching Schema for the given namespace. |
|
Type |
getType(javax.xml.namespace.QName qname) Get an existing Type by its QName. |
|
Schema |
newSchema(java.lang.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(XmlObject xmlo, ConflictHandler handler) Validate an XmlObject against the contained inferred schemas. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructs a new SchemaSystem object.
Constructs a SchemaSystem object using previously saved data.
xml
- The XmlObject to which data has previously been saved.Get a list of contained namespaces.
Returns the matching Schema for the given namespace.
namespace
- A namespace that already exists within the SchemaSystem.Get an existing Type by its QName.
qname
- A QName containing the namespace URI of the schema in which the
Type exists, and also the name of the type.Create a blank new Schema under this SchemaSystem for a given namespace.
namespace
- The namespace for which to create a Schema.Saves the SchemaSystem to an XmlObject.
xml
- A blank XmlObject to save to.Validate an XmlObject against the contained inferred schemas. Upon validation errors, the ConflictHandler is used to determine if a schema should be adjusted, or if validation should fail.
xmlo
- An XmlObject containing the document to be validated.handler
- A ConflictHandler to use on validation errors.