Package org.hl7.fhir.utilities.xhtml
Class XhtmlNode
- java.lang.Object
-
- org.hl7.fhir.utilities.xhtml.XhtmlFluent
-
- 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 XhtmlFluent 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
-
Methods inherited from class org.hl7.fhir.utilities.xhtml.XhtmlFluent
ah, ah, an, an, b, blockquote, br, code, code, div, h, h1, h2, h3, h4, hr, i, img, img, innerHTML, li, markdown, para, pre, pre, span, table, td, td, th, tr, tx, tx, ul
-
-
-
-
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 XhtmlNodeList 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)
-
addTag
public XhtmlNode addTag(String name)
- Specified by:
addTagin classXhtmlFluent
-
addComment
public XhtmlNode addComment(String content)
-
addDocType
public XhtmlNode addDocType(String content)
-
addInstruction
public XhtmlNode addInstruction(String content)
-
addText
public XhtmlNode addText(String content)
- Specified by:
addTextin classXhtmlFluent
-
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)
-
getEmptyExpanded
public Boolean getEmptyExpanded()
-
hasEmptyExpanded
public boolean hasEmptyExpanded()
-
setEmptyExpanded
public void setEmptyExpanded(Boolean emptyExpanded)
-
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)
-
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()
-
addChildren
protected void addChildren(XhtmlNodeList childNodes)
- Specified by:
addChildrenin classXhtmlFluent
-
-