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
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddChildNode(int index, XhtmlNode node) voidaddChildNode(XhtmlNode node) voidaddChildNodes(List<XhtmlNode> nodes) addChildren(List<XhtmlNode> children) protected voidaddChildren(XhtmlNodeList childNodes) addComment(String content) addDocType(String content) addInstruction(String content) voidaddTextWithLineBreaks(String content) booleanallText()attributeNN(String name, String value) backgroundColor(String color) body()voidclear()voidcolspan(int n) intcopy()voidcopyAllContent(XhtmlNode other) intcountByPathName(XhtmlNode node) intbooleanequalsDeep(XhtmlNode other) voidexecScript(String structure) To set up a script, you do the following: * call startScript - setting up the parameter infrastructure * define a set of parameters.firstNamedDescendent(String name) getAttribute(String name) getChildren(String name) getElement(String name) getElementById(String id) getElementByIndex(int i) NOT SUPPORTED - ThrowsUnsupportedOperationExceptionNOT SUPPORTED - ThrowsUnsupportedOperationExceptiongetName()getUserData(String theName) getValue()booleanhasAttribute(String name) booleanhasAttribute(String name, String value) booleanbooleanbooleanbooleanbooleanReturns falsebooleanhasUserData(String theName) booleanhasValue()head()htmlObject(double left, double top, double width, double height) iff(boolean test) intindexByPathName(XhtmlNode node) protected intindexOfNode(XhtmlNode node) static booleanbooleanbooleanbooleanisEmpty()booleanbooleanisPara()voidvoidmarkGenerated(boolean actuallyMark) we only want to actually mark something as generated in some modes, but it's more fluent to handle the actual implementation herenbsp()voidparamValue(String name, int value) voidparamValue(String name, String value) rowspan(int n) sepBr()setAttribute(String name, String value) static voidsetCheckParaGeneral(boolean checkParaGeneral) voidsetCheckParaTree(boolean checkParaTree) setContent(String content) voidsetEmptyExpanded(Boolean emptyExpanded) voidsetLocation(XhtmlNode.Location location) voidsetNodeType(NodeType nodeType) voidsetUserData(String theName, Object theValue) voidsetValueAsString(String theValue) voidstartScript(String name) voidstripAnchorsByName(Set<String> anchors) voidvoidstyleChildren(String style) voidsvg()svgPolygon(XhtmlNode insertionPoint) svgTspan()td()td(int index) tdW(int width) toString()voidvoidwbr()Methods inherited from class org.hl7.fhir.utilities.xhtml.XhtmlFluent
ah, ah, ahOrCode, ahOrCode, ahWithText, an, an, b, blockquote, br, code, code, codeWithText, div, div, h, h, h1, h2, h3, h4, hr, i, img, img, imgT, innerHTML, li, markdown, markdownSimple, ol, para, pre, pre, span, span, span, spanClss, stx, table, table, td, th, th, tr, tr, tx, tx, ulMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType
-
Field Details
-
NBSP
-
XMLNS
- See Also:
-
attributes
-
childNodes
-
-
Constructor Details
-
XhtmlNode
public XhtmlNode() -
XhtmlNode
-
XhtmlNode
-
-
Method Details
-
getNodeType
-
setNodeType
-
getName
-
setName
-
hasAttributes
-
getAttributes
-
hasChildren
-
getChildNodes
-
getContent
-
setContent
-
validate
-
addTag
- Specified by:
addTagin classXhtmlFluent
-
addTag
-
addTag
- Specified by:
addTagin classXhtmlFluent
-
addComment
-
addCData
-
addDocType
-
addInstruction
-
addText
- Specified by:
addTextin classXhtmlFluent
-
addTextWithLineBreaks
-
addText
-
allChildrenAreText
-
getElement
-
getFirstElement
-
allText
-
toLiteralText
-
attribute
-
attributeNN
-
hasAttribute
-
hasAttribute
-
getAttribute
-
setAttribute
-
copy
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
equalsDeep
-
getNsDecl
-
getEmptyExpanded
-
hasEmptyExpanded
-
setEmptyExpanded
-
getValueAsString
- Specified by:
getValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
setValueAsString
- Specified by:
setValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>- Throws:
IllegalArgumentException
-
getElementByIndex
-
getValue
- Specified by:
getValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
hasValue
- Specified by:
hasValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>
-
setValue
- Specified by:
setValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>- Throws:
IllegalArgumentException
-
hasFormatComment
Returns false- Specified by:
hasFormatCommentin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPre
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
getFormatCommentsPrein interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPost
NOT SUPPORTED - ThrowsUnsupportedOperationException- Specified by:
getFormatCommentsPostin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getUserData
- Specified by:
getUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
hasUserData
-
setUserData
- Specified by:
setUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
getLocation
-
setLocation
-
toString
-
getNextElement
-
notPretty
-
isNoPretty
-
style
-
nbsp
-
para
-
add
-
addChildren
-
addChildren
-
input
-
select
-
option
-
remove
-
clear
-
backgroundColor
-
isPara
-
sep
-
sepBr
-
colspan
-
colspan
-
rowspan
-
addChildren
- Specified by:
addChildrenin classXhtmlFluent
-
color
-
startScript
-
param
-
paramValue
-
paramValue
-
execScript
To set up a script, you do the following: * call startScript - setting up the parameter infrastructure * define a set of parameters. Parameter values can be provided as string or integer, or: * you can use param(name) to render an arbitrarily complicated html fragment that will be inserted by the script * you can redefine parameters with the same name * call execScript() to execute the script. You can call this any number of times * call closeScript The script format is an xhtml fragment that can have any html in it, and also the following tags: param: - replace this tag with the named parameter (or delete it if no value) if:- condition is param op value, where value is a string, and op is =, != <, > - Parameters:
structure-- Throws:
FHIRExceptionIOException
-
closeScript
-
getElementById
-
getChildren
-
strikethrough
-
svg
-
path
-
copyAllContent
-
isClass
-
clss
-
styleCells
-
td
-
td
- Overrides:
tdin classXhtmlFluent
-
td
-
tdW
-
txN
- Overrides:
txNin classXhtmlFluent
-
txOrCode
-
iff
- Overrides:
iffin classXhtmlFluent
-
button
-
head
-
body
-
title
-
link
-
ahOrNot
-
ahOrNot
-
wbr
-
indexOfNode
- Specified by:
indexOfNodein classXhtmlFluent
-
compareTo
-
stripAnchorsByName
-
addChildNodes
-
addChildNode
-
addChild
- Specified by:
addChildin classXhtmlFluent
-
addChildNode
-
isCheckParaGeneral
-
setCheckParaGeneral
-
isCheckParaTree
-
setCheckParaTree
-
id
-
supr
-
svgG
-
svgRect
-
svgLine
-
svgText
-
svgAx
-
svgTspan
-
svgPolygon
-
htmlObject
-
svgPath
-
hasContent
-
getPathName
-
countByPathName
-
indexByPathName
-
js
-
jsSrc
-
styles
-
styleChildren
-
markGenerated
we only want to actually mark something as generated in some modes, but it's more fluent to handle the actual implementation here- Parameters:
actuallyMark-- Returns:
-
firstNamedDescendent
-
countChildrenByName
-