public interface InferredSchema
Modifier and Type | Interface and Description |
---|---|
static class |
InferredSchema.Factory
Static factory class for creating new instances.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteNamespace(String ns) |
String[] |
getNamespaces()
Returns a list of inferred namespaces.
|
org.apache.xmlbeans.SchemaTypeSystem |
getSchemaTypeSystem()
Method for reading out the inferred schema, in its current form.
|
org.apache.xmlbeans.SchemaTypeSystem |
getSchemaTypeSystem(org.apache.xmlbeans.SchemaTypeSystem schemaTypeSystem) |
String |
getXsdForNamespace(String namespace)
Returns a string representation of the XML Schema for a particular
namespace, if available.
|
void |
learningValidate(org.apache.xmlbeans.XmlObject xml,
ConflictHandler handler)
Attempts to validate the given XML against the inferred schema.
|
void |
processValidXml(org.apache.xmlbeans.XmlObject xml)
Expands the inferred schema to accept the input XML as valid.
|
void |
save(OutputStream os)
Writes the XML represented by this InferredSchema.
|
boolean |
validate(org.apache.xmlbeans.XmlObject xml)
Attempts to validate the given XML against the inferred schema.
|
org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem()
void processValidXml(org.apache.xmlbeans.XmlObject xml) throws org.apache.xmlbeans.XmlException
xml
- An XmlObject that is assumed to be valid.org.apache.xmlbeans.XmlException
boolean validate(org.apache.xmlbeans.XmlObject xml)
xml
- void learningValidate(org.apache.xmlbeans.XmlObject xml, ConflictHandler handler) throws org.apache.xmlbeans.XmlException
xml
- handler
- org.apache.xmlbeans.XmlException
- for validation error.void save(OutputStream os) throws IOException
os
- IOException
String getXsdForNamespace(String namespace)
namespace
- String[] getNamespaces()
void deleteNamespace(String ns)
org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem(org.apache.xmlbeans.SchemaTypeSystem schemaTypeSystem)
Copyright © 2019. All Rights Reserved.