Package org.hl7.fhir.r5.elementmodel
Class XmlParser
- java.lang.Object
-
- org.hl7.fhir.r5.elementmodel.ParserBase
-
- org.hl7.fhir.r5.elementmodel.XmlParser
-
public class XmlParser extends ParserBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.NamedElement, ParserBase.ValidationPolicy
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
context, errors, linkResolver, policy, showDecorations
-
-
Constructor Summary
Constructors Constructor Description XmlParser(IWorkerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompose(Element e, OutputStream stream, IParser.OutputStyle style, String base)voidcompose(Element e, org.hl7.fhir.utilities.xml.IXMLWriter xml)StringgetSchemaPath()booleanisAllowXsiLocation()List<ParserBase.NamedElement>parse(InputStream stream)Elementparse(Document doc)Elementparse(Element element)Elementparse(Element base, String type)voidsetAllowXsiLocation(boolean allowXsiLocation)voidsetSchemaPath(String schemaPath)-
Methods inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
getDefinition, getDefinition, getImpliedProfile, getLinkResolver, isPrimitive, isShowDecorations, logError, parseSingle, setLinkResolver, setShowDecorations, setupValidation
-
-
-
-
Constructor Detail
-
XmlParser
public XmlParser(IWorkerContext context)
-
-
Method Detail
-
getSchemaPath
public String getSchemaPath()
-
setSchemaPath
public void setSchemaPath(String schemaPath)
-
isAllowXsiLocation
public boolean isAllowXsiLocation()
-
setAllowXsiLocation
public void setAllowXsiLocation(boolean allowXsiLocation)
-
parse
public List<ParserBase.NamedElement> parse(InputStream stream) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException, IOException
- Specified by:
parsein classParserBase- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
parse
public Element parse(Document doc) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
parse
public Element parse(Element element) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
compose
public void compose(Element e, OutputStream stream, IParser.OutputStyle style, String base) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Specified by:
composein classParserBase- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
-