Package org.hl7.fhir.utilities.xhtml
Class XhtmlParser
- java.lang.Object
-
- org.hl7.fhir.utilities.xhtml.XhtmlParser
-
public class XhtmlParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXhtmlParser.NSMapstatic classXhtmlParser.ParserSecurityPolicyclassXhtmlParser.QName
-
Constructor Summary
Constructors Constructor Description XhtmlParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XhtmlParser.ParserSecurityPolicygetPolicy()booleanisMustBeWellFormed()booleanisTrimWhitespace()booleanisValidatorMode()XhtmlDocumentparse(InputStream input, String entryName)XhtmlDocumentparse(String source, String entryName)XhtmlNodeparseFragment(InputStream input)XhtmlNodeparseFragment(String source)XhtmlNodeparseHtmlNode(Element node)XhtmlNodeparseHtmlNode(Element node, String defaultNS)XhtmlNodeparseHtmlNode(org.xmlpull.v1.XmlPullParser xpp)XhtmlParsersetMustBeWellFormed(boolean mustBeWellFormed)voidsetPolicy(XhtmlParser.ParserSecurityPolicy policy)voidsetTrimWhitespace(boolean trimWhitespace)XhtmlParsersetValidatorMode(boolean validatorMode)
-
-
-
Field Detail
-
XHTML_NS
public static final String XHTML_NS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XhtmlParser
public XhtmlParser()
-
-
Method Detail
-
isTrimWhitespace
public boolean isTrimWhitespace()
-
setTrimWhitespace
public void setTrimWhitespace(boolean trimWhitespace)
-
isMustBeWellFormed
public boolean isMustBeWellFormed()
-
setMustBeWellFormed
public XhtmlParser setMustBeWellFormed(boolean mustBeWellFormed)
-
isValidatorMode
public boolean isValidatorMode()
-
setValidatorMode
public XhtmlParser setValidatorMode(boolean validatorMode)
-
getPolicy
public XhtmlParser.ParserSecurityPolicy getPolicy()
-
setPolicy
public void setPolicy(XhtmlParser.ParserSecurityPolicy policy)
-
parseHtmlNode
public XhtmlNode parseHtmlNode(Element node) throws FHIRFormatError
- Throws:
FHIRFormatError
-
parseHtmlNode
public XhtmlNode parseHtmlNode(Element node, String defaultNS) throws FHIRFormatError
- Throws:
FHIRFormatError
-
parseHtmlNode
public XhtmlNode parseHtmlNode(org.xmlpull.v1.XmlPullParser xpp) throws org.xmlpull.v1.XmlPullParserException, IOException, FHIRFormatError
- Throws:
org.xmlpull.v1.XmlPullParserExceptionIOExceptionFHIRFormatError
-
parse
public XhtmlDocument parse(String source, String entryName) throws FHIRFormatError, IOException
- Throws:
FHIRFormatErrorIOException
-
parse
public XhtmlDocument parse(InputStream input, String entryName) throws FHIRFormatError, IOException
- Throws:
FHIRFormatErrorIOException
-
parseFragment
public XhtmlNode parseFragment(String source) throws IOException, FHIRException
- Throws:
IOExceptionFHIRException
-
parseFragment
public XhtmlNode parseFragment(InputStream input) throws IOException, FHIRException
- Throws:
IOExceptionFHIRException
-
-