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.XmlException
IOException
public String[] getNamespaces()
InferredSchema
getNamespaces
in interface InferredSchema
public org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem()
InferredSchema
getSchemaTypeSystem
in interface InferredSchema
public org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem(org.apache.xmlbeans.SchemaTypeSystem sts)
getSchemaTypeSystem
in interface InferredSchema
public String getXsdForNamespace(String namespace)
InferredSchema
getXsdForNamespace
in interface InferredSchema
public void learningValidate(org.apache.xmlbeans.XmlObject xml, ConflictHandler handler) throws org.apache.xmlbeans.XmlException
InferredSchema
learningValidate
in interface InferredSchema
org.apache.xmlbeans.XmlException
- for validation error.public void processValidXml(org.apache.xmlbeans.XmlObject xml) throws org.apache.xmlbeans.XmlException
InferredSchema
processValidXml
in interface InferredSchema
xml
- An XmlObject that is assumed to be valid.org.apache.xmlbeans.XmlException
public void save(OutputStream os) throws IOException
InferredSchema
save
in interface InferredSchema
IOException
public boolean validate(org.apache.xmlbeans.XmlObject xml)
InferredSchema
validate
in interface InferredSchema
public void deleteNamespace(String ns)
deleteNamespace
in interface InferredSchema
Copyright © 2019. All Rights Reserved.