public class InferredSchemaImpl extends Object implements InferredSchema
InferredSchema.Factory| Constructor and Description |
|---|
InferredSchemaImpl() |
InferredSchemaImpl(InputStream is) |
| 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 sts) |
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.
|
public InferredSchemaImpl()
public InferredSchemaImpl(InputStream is) throws org.apache.xmlbeans.XmlException, IOException
org.apache.xmlbeans.XmlExceptionIOExceptionpublic String[] getNamespaces()
InferredSchemagetNamespaces in interface InferredSchemapublic org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem()
InferredSchemagetSchemaTypeSystem in interface InferredSchemapublic org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem(org.apache.xmlbeans.SchemaTypeSystem sts)
getSchemaTypeSystem in interface InferredSchemapublic String getXsdForNamespace(String namespace)
InferredSchemagetXsdForNamespace in interface InferredSchemapublic void learningValidate(org.apache.xmlbeans.XmlObject xml,
ConflictHandler handler)
throws org.apache.xmlbeans.XmlException
InferredSchemalearningValidate in interface InferredSchemaorg.apache.xmlbeans.XmlException - for validation error.public void processValidXml(org.apache.xmlbeans.XmlObject xml)
throws org.apache.xmlbeans.XmlException
InferredSchemaprocessValidXml in interface InferredSchemaxml - An XmlObject that is assumed to be valid.org.apache.xmlbeans.XmlExceptionpublic void save(OutputStream os) throws IOException
InferredSchemasave in interface InferredSchemaIOExceptionpublic boolean validate(org.apache.xmlbeans.XmlObject xml)
InferredSchemavalidate in interface InferredSchemapublic void deleteNamespace(String ns)
deleteNamespace in interface InferredSchemaCopyright © 2019. All Rights Reserved.