Package org.hl7.fhir.utilities.xhtml
Class XhtmlNode
- java.lang.Object
-
- org.hl7.fhir.utilities.xhtml.XhtmlNode
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseXhtml,org.hl7.fhir.instance.model.api.IPrimitiveType<String>
- Direct Known Subclasses:
XhtmlDocument
public class XhtmlNode extends Object implements org.hl7.fhir.instance.model.api.IBaseXhtml
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXhtmlNode.Location
-
Method Summary
-
-
-
Field Detail
-
XMLNS
public static final String XMLNS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
-
setNodeType
public void setNodeType(NodeType nodeType)
-
getAttributes
public Map<String,String> getAttributes()
-
getChildNodes
public List<XhtmlNode> getChildNodes()
-
getContent
public String getContent()
-
setContent
public XhtmlNode setContent(String content)
-
validate
public void validate(List<String> errors, String path, boolean inResource, boolean inPara, boolean inLink)
-
addComment
public XhtmlNode addComment(String content)
-
addDocType
public XhtmlNode addDocType(String content)
-
addInstruction
public XhtmlNode addInstruction(String content)
-
allChildrenAreText
public boolean allChildrenAreText()
-
getElement
public XhtmlNode getElement(String name)
-
getFirstElement
public XhtmlNode getFirstElement()
-
hasAttribute
public boolean hasAttribute(String name)
-
getAttribute
public String getAttribute(String name)
-
setAttribute
public XhtmlNode setAttribute(String name, String value)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
equalsDeep
public boolean equalsDeep(XhtmlNode other)
-
getValueAsString
public String getValueAsString()
- Specified by:
getValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
setValueAsString
public void setValueAsString(String theValue) throws IllegalArgumentException
- Specified by:
setValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>- Throws:
IllegalArgumentException
-
getElementByIndex
public XhtmlNode getElementByIndex(int i)
-
getValue
public String getValue()
- Specified by:
getValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
hasValue
public boolean hasValue()
- Specified by:
hasValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
setValue
public XhtmlNode setValue(String theValue) throws IllegalArgumentException
- Specified by:
setValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>- Throws:
IllegalArgumentException
-
hasFormatComment
public boolean hasFormatComment()
Returns false- Specified by:
hasFormatCommentin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPre
public List<String> getFormatCommentsPre()
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
getFormatCommentsPrein interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPost
public List<String> getFormatCommentsPost()
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
getFormatCommentsPostin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getUserData
public Object getUserData(String theName)
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
getUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
setUserData
public void setUserData(String theName, Object theValue)
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
setUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
getLocation
public XhtmlNode.Location getLocation()
-
setLocation
public void setLocation(XhtmlNode.Location location)
-
br
public void br()
-
hr
public void hr()
-
blockquote
public XhtmlNode blockquote()
-
getNextElement
public XhtmlNode getNextElement(XhtmlNode c)
-
isNoPretty
public boolean isNoPretty()
-
addChildren
public XhtmlNode addChildren(List<XhtmlNode> children)
-
addChildren
public XhtmlNode addChildren(XhtmlNode x)
-
clear
public void clear()
-
backgroundColor
public XhtmlNode backgroundColor(String color)
-
isPara
public boolean isPara()
-
markdown
public void markdown(String md, String source) throws IOException
- Throws:
IOException
-
-