|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InferredSchema
XML Schema inferred from gathered XML data.
Nested Class Summary | |
---|---|
static class |
InferredSchema.Factory
Static factory class for creating new instances. |
Method Summary | |
---|---|
void |
deleteNamespace(java.lang.String ns)
|
java.lang.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)
|
java.lang.String |
getXsdForNamespace(java.lang.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(java.io.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. |
Method Detail |
---|
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(java.io.OutputStream os) throws java.io.IOException
os
-
java.io.IOException
java.lang.String getXsdForNamespace(java.lang.String namespace)
namespace
-
java.lang.String[] getNamespaces()
void deleteNamespace(java.lang.String ns)
org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem(org.apache.xmlbeans.SchemaTypeSystem schemaTypeSystem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |