public interface InferredSchema
XML Schema inferred from gathered XML data.
| Modifiers | Name | Description |
|---|---|---|
class |
InferredSchema.Factory |
Static factory class for creating new instances. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
deleteNamespace(java.lang.String ns) |
|
public java.lang.String[] |
getNamespaces()Returns a list of inferred namespaces. |
|
public SchemaTypeSystem |
getSchemaTypeSystem()Method for reading out the inferred schema, in its current form. |
|
public SchemaTypeSystem |
getSchemaTypeSystem(SchemaTypeSystem schemaTypeSystem) |
|
public java.lang.String |
getXsdForNamespace(java.lang.String namespace)Returns a string representation of the XML Schema for a particular namespace, if available. |
|
public void |
learningValidate(XmlObject xml, ConflictHandler handler)Attempts to validate the given XML against the inferred schema. |
|
public void |
processValidXml(XmlObject xml)Expands the inferred schema to accept the input XML as valid. |
|
public void |
save(java.io.OutputStream os)Writes the XML represented by this InferredSchema. |
|
public 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.