Package io.atlasmap.xml.core.schema
Class AtlasXmlSchemaSetParser
- java.lang.Object
-
- io.atlasmap.xml.core.schema.AtlasXmlSchemaSetParser
-
public class AtlasXmlSchemaSetParser extends Object
-
-
Constructor Summary
Constructors Constructor Description AtlasXmlSchemaSetParser(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemacreateSchema(InputStream in)Parse single XML Schema or SchemaSet which contains multiple XML Schema and build aSchema.AtlasXmlNamespaceContextgetNamespaceContext()StringgetRootNamespace()XSSchemaSetparse(InputStream in)Parse XML Schema or SchemaSet which contains multiple XML Schema and build aXSSchemaSet.XSSchemaSetparse(Document doc)Parse single XML Schema or SchemaSet which contains multiple XML Schema and build aXSSchemaSet.voidsetNamespaceContext(AtlasXmlNamespaceContext nsc)voidsetRootNamespace(String rootns)
-
-
-
Constructor Detail
-
AtlasXmlSchemaSetParser
public AtlasXmlSchemaSetParser(ClassLoader cl) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
-
Method Detail
-
parse
public XSSchemaSet parse(Document doc) throws io.atlasmap.api.AtlasException
Parse single XML Schema or SchemaSet which contains multiple XML Schema and build aXSSchemaSet.- Parameters:
doc- DOMDocumentinstance of XML Schema- Returns:
- parsed
XSSchemaSet - Throws:
io.atlasmap.api.AtlasException- If it fails to parse
-
parse
public XSSchemaSet parse(InputStream in) throws io.atlasmap.api.AtlasException
Parse XML Schema or SchemaSet which contains multiple XML Schema and build aXSSchemaSet.- Parameters:
in-InputStreamof XML Schema document- Returns:
- parsed
XSSchemaSet - Throws:
io.atlasmap.api.AtlasException- If it fails to parse
-
createSchema
public Schema createSchema(InputStream in) throws io.atlasmap.api.AtlasException
Parse single XML Schema or SchemaSet which contains multiple XML Schema and build aSchema.- Parameters:
in-InputStreamto read schema contents from- Returns:
- Created
Schema - Throws:
io.atlasmap.api.AtlasException- If it fails to parse
-
setNamespaceContext
public void setNamespaceContext(AtlasXmlNamespaceContext nsc)
-
getNamespaceContext
public AtlasXmlNamespaceContext getNamespaceContext()
-
setRootNamespace
public void setRootNamespace(String rootns)
-
getRootNamespace
public String getRootNamespace()
-
-