XML Schema inferred from gathered XML data.
Modifiers | Name | Description |
---|---|---|
static class |
InferredSchema.Factory |
Static factory class for creating new instances. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
deleteNamespace(java.lang.String ns) |
|
java.lang.String[] |
getNamespaces() Returns a list of inferred namespaces. |
|
SchemaTypeSystem |
getSchemaTypeSystem() Method for reading out the inferred schema, in its current form. |
|
SchemaTypeSystem |
getSchemaTypeSystem(SchemaTypeSystem schemaTypeSystem) |
|
java.lang.String |
getXsdForNamespace(java.lang.String namespace) Returns a string representation of the XML Schema for a particular namespace, if available. |
|
void |
learningValidate(XmlObject xml, ConflictHandler handler) Attempts to validate the given XML against the inferred schema. |
|
void |
processValidXml(XmlObject xml) Expands the inferred schema to accept the input XML as valid. |
|
void |
save(java.io.OutputStream os) Writes the XML represented by this InferredSchema. |
|
boolean |
validate(XmlObject xml) Attempts to validate the given XML against the inferred schema. |
Returns a list of inferred namespaces.
Method for reading out the inferred schema, in its current form.
Returns a string representation of the XML Schema for a particular namespace, if available.
Attempts to validate the given XML against the inferred schema. Any errors detected need to be resolved to either expand the schema, or the input will cause an XmlException to be thrown.
Expands the inferred schema to accept the input XML as valid.
xml
- An XmlObject that is assumed to be valid.Writes the XML represented by this InferredSchema.
Attempts to validate the given XML against the inferred schema. Any errors detected will cause validation to halt and return false.