Class NodeExtKt
-
- All Implemented Interfaces:
public final class NodeExtKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNILLocationpublic final static StringNILBaseUriprivate final static DocumentNILDocumentprivate final static ElementNILElementprivate final static NodeNILNodeprivate final static BooleanisNilprivate final static BooleanisNilprivate final static BooleanisNilprivate final static ElementpulsarMetaElementprivate final static ElementpulsarScriptElementprivate final static StringpulsarScriptprivate final static StringnormalizedURIprivate static AtomicBooleanisInitializedprivate final static DimensionviewPortprivate static DimensionprimaryGridprivate static DimensionsecondaryGridprivate static Dimensiongridprivate static IntegerunitAreaprivate static ExportPathsexportPathsprivate static Booleanannotatedprivate final static DocumentownerDocumentprivate final static Stringlocationprivate static Integerdepthprivate final static Integersequenceprivate final static StringglobalIdprivate static Integerleftprivate static Integertopprivate static Integerwidthprivate static Integerheightprivate final static Integerrightprivate final static Integerbottomprivate final static Integerxprivate final static Integeryprivate final static Integerx2private final static Integery2private final static IntegercenterXprivate final static IntegercenterYprivate final static PointgeoLocationprivate final static DoublescreenNumberprivate final static Dimensiondimensionprivate final static Rectanglerectangleprivate final static Integerareaprivate final static BooleanhasHiddenFlagprivate final static BooleanhasOverflowHiddenFlagprivate final static BooleanisVisibleprivate final static BooleanisHiddenprivate final static BooleanisTextprivate final static BooleanisBlankTextprivate final static BooleanisNonBlankTextprivate final static BooleanisRegularTextprivate final static BooleanisImageprivate final static BooleanisRegularImageprivate final static BooleanisAnchorImageprivate final static BooleanisAnchorprivate final static BooleanisRegularAnchorprivate final static BooleanisImageAnchorprivate final static BooleanisRegularImageAnchorprivate final static BooleanisTableprivate final static BooleanisListprivate final static BooleanisShortTextprivate final static BooleanisMediumTextprivate final static BooleanisLongTextprivate final static BooleanisCurrencyUnitprivate final static BooleanisNumericprivate final static BooleanisIntprivate final static BooleanisFloatprivate final static BooleanisNumericLikeprivate final static BooleanisMoneyLikeprivate final static IntegerintValueprivate final static DoubledoubleValueprivate static IntegernumCharsprivate static IntegernumSiblingsprivate static IntegernumChildrenprivate static IntegernumTextNodesprivate static IntegernumImagesprivate static IntegernumAnchorsprivate static DoubletextNodeDensityprivate final static StringselectorOrNameprivate final static StringcaptionOrNameprivate final static StringcaptionOrSelectorOrNameprivate final static StringcleanTextprivate final static StringtextRepresentationprivate final static StringslimHtmlprivate final static StringminimalHtmlprivate final static Stringkeyprivate final static Stringnameprivate final static StringcanonicalNameprivate final static StringuniqueNameprivate final static StringnamedRectprivate final static StringnamedRect2private final static ElementparentElementprivate final static ElementbestElementprivate final static Stringcaption
-
Method Summary
Modifier and Type Method Description final DocumentgetNILDocument()final ElementgetNILElement()final NodegetNILNode()final BooleangetIsNil()final BooleangetIsNil()final BooleangetIsNil()final ElementgetPulsarMetaElement()final ElementgetPulsarScriptElement()final StringgetPulsarScript()final StringgetNormalizedURI()AtomicBooleangetIsInitialized()Whether the document is initialized. voidsetIsInitialized(AtomicBoolean isInitialized)Whether the document is initialized. final DimensiongetViewPort()The view port of the document. DimensiongetPrimaryGrid()The primary grid of the document. voidsetPrimaryGrid(Dimension primaryGrid)The primary grid of the document. DimensiongetSecondaryGrid()The secondary grid of the document. voidsetSecondaryGrid(Dimension secondaryGrid)The secondary grid of the document. DimensiongetGrid()The grid of the document. voidsetGrid(Dimension grid)The grid of the document. IntegergetUnitArea()The unit area of the document. voidsetUnitArea(Integer unitArea)The unit area of the document. ExportPathsgetExportPaths()Various paths to export different views of the document. voidsetExportPaths(ExportPaths exportPaths)Various paths to export different views of the document. BooleangetAnnotated()Whether the document is annotated. voidsetAnnotated(Boolean annotated)Whether the document is annotated. final DocumentgetOwnerDocument()final StringgetLocation()IntegergetDepth()The traversal depth of the node. voidsetDepth(Integer depth)The traversal depth of the node. final IntegergetSequence()The traversal sequence of the node. final StringgetGlobalId()IntegergetLeft()The left position of the node. voidsetLeft(Integer left)The left position of the node. IntegergetTop()The top position of the node. voidsetTop(Integer top)The top position of the node. IntegergetWidth()The width of the node. voidsetWidth(Integer width)The width of the node. IntegergetHeight()The height of the node. voidsetHeight(Integer height)The height of the node. final IntegergetRight()final IntegergetBottom()final IntegergetX()final IntegergetY()final IntegergetX2()final IntegergetY2()final IntegergetCenterX()final IntegergetCenterY()final PointgetGeoLocation()final DoublegetScreenNumber()final DimensiongetDimension()final RectanglegetRectangle()final IntegergetArea()final BooleangetHasHiddenFlag()final BooleangetHasOverflowHiddenFlag()final BooleangetIsVisible()final BooleangetIsHidden()final BooleangetIsText()final BooleangetIsBlankText()final BooleangetIsNonBlankText()final BooleangetIsRegularText()final BooleangetIsImage()final BooleangetIsRegularImage()final BooleangetIsAnchorImage()final BooleangetIsAnchor()final BooleangetIsRegularAnchor()final BooleangetIsImageAnchor()final BooleangetIsRegularImageAnchor()final BooleangetIsTable()final BooleangetIsList()final BooleangetIsShortText()final BooleangetIsMediumText()final BooleangetIsLongText()final BooleangetIsCurrencyUnit()final BooleangetIsNumeric()final BooleangetIsInt()final BooleangetIsFloat()final BooleangetIsNumericLike()final BooleangetIsMoneyLike()final IntegergetIntValue()Try to parse the text of the node as an integer number. final DoublegetDoubleValue()Try to parse the text of the node as a float number. IntegergetNumChars()The number of characters of the node. voidsetNumChars(Integer numChars)The number of characters of the node. IntegergetNumSiblings()The number of siblings of the node. voidsetNumSiblings(Integer numSiblings)The number of siblings of the node. IntegergetNumChildren()The number of children of the node. voidsetNumChildren(Integer numChildren)The number of children of the node. IntegergetNumTextNodes()The number of descend text nodes. voidsetNumTextNodes(Integer numTextNodes)The number of descend text nodes. IntegergetNumImages()Number of descend images voidsetNumImages(Integer numImages)Number of descend images IntegergetNumAnchors()Number of descend anchors voidsetNumAnchors(Integer numAnchors)Number of descend anchors DoublegetTextNodeDensity()Text node density voidsetTextNodeDensity(Double textNodeDensity)Text node density final StringgetSelectorOrName()final StringgetCaptionOrName()final StringgetCaptionOrSelectorOrName()final StringgetCleanText()final StringgetTextRepresentation()final StringgetSlimHtml()The slim html representation of the node. final StringgetMinimalHtml()The minimal html representation of the node. final StringgetKey()final StringgetName()final StringgetCanonicalName()final StringgetUniqueName()final StringgetNamedRect()final StringgetNamedRect2()final ElementgetParentElement()final ElementgetBestElement()final StringgetCaption()final static <T extends Any> MapField<T>field(Function1<Node, T> initializer)final static <T extends Any> NullableMapField<T>nullableField()final static ElementaddClasses(Element $self, String classNames)Add a class to the element, if the class is already in the element, it will not be added again. final static ElementaddClasses(Element $self, Iterable<String> classNames)Add a class to the element, if the class is already in the element, it will not be added again. final static ElementslimCopy(Element $self)Make a copy of the element, the copy is a slim copy, all the attributes are removed. final static ElementminimalCopy(Element $self)Make a copy of the element, the copy is a minimal copy, all the attributes are removed except the valuable ones. final static List<String>ownTexts(Element $self)This method retrieves and returns a list of the own text content contained within each child node of the element. final static Set<String>valuableClassNames(Element $self)Returns possible valuable class names of the element. final static ElementanyAttr(Element $self, String attributeKey, Object attributeValue)Set an attribute to the element, if the attribute is already in the element, it will be replaced. final static NodeanyAttr(Node $self, String attributeKey, Object attributeValue)Set attribute attributeKey to attributeValue final static ElementremoveTemporaryAttributesCascaded(Element $self)Clear all the temporary attributes from the element. final static ElementremoveNonStandardAttributes(Element $self)Clear all the non-standard attributes from the element. final static ElementremoveUnnecessaryAttributes(Element $self)Clear all the unnecessary attributes from the element. final static ElementremoveNonStandardAttributesCascaded(Element $self)Clear all the non-standard attributes from the element. final static ElementremoveUnnecessaryAttributesCascaded(Element $self)Clear all the unnecessary attributes from the element. final static ElementclearAttributesCascaded(Element $self)Clear all the temporary attributes from the element. final static Array<String>parseStyle(Element $self)Parse style attribute of the element into an array of strings. final static StringgetStyle(Element $self, String styleKey)Get a style value from the style attribute of the element. final static StringjoinToString(Node $self, String separator, String prefix, String suffix)The trimmed text of this node. final static StringattrOrNull(Node $self, String attrName)Get the attribute value associated with the given name. final static DoublegetFeature(Node $self, Integer key)Get the feature value by the given key. final static DoublegetFeature(Node $self, String name)Get the feature value by the given name. final static FeatureEntrygetFeatureEntry(Node $self, Integer key)Get the feature entry by the given key. final static UnitsetFeature(Node $self, Integer key, Double value)Associate the given value with the given key. final static UnitsetFeature(Node $self, Integer key, Integer value)Associate the given value with the given key. final static NoderemoveFeature(Node $self, Integer key)Remove a feature specified by the given key. final static NodeclearFeatures(Node $self)Clear all the features of the node, the feature vector is set to an empty vector. final static <T extends Any> TgetVariable(Node $self, String name)Temporary node variables final static <T extends Any> TgetVariable(Node $self, String name, T defaultValue)final static <T extends Any> TcomputeVariableIfAbsent(Node $self, String name, Function1<String, T> mappingFunction)final static UnitsetVariable(Node $self, String name, Object value)final static UnitsetVariableIfNotNull(Node $self, String name, Object value)final static BooleanhasVariable(Node $self, String name)final static ObjectremoveVariable(Node $self, String name)final static StringrAttr(Node $self, String attributeKey, String attributeValue)Set attribute attributeKey to attributeValue and return attributeValue final static ObjectrAnyAttr(Node $self, String attributeKey, Object attributeValue)Set attribute attributeKey to attributeValue and return attributeValue final static UnitappendAttr(Node $self, String attributeKey, String attributeValue, String separator)append an attribute, no guarantee for uniqueness final static BooleanaddTupleItem(Node $self, String tupleName, Object item)Tuple data final static BooleanremoveTupleItem(Node $self, String tupleName, Object item)final static List<Object>getTuple(Node $self, String tupleName)final static BooleanhasTupleItem(Node $self, String tupleName, String item)final static BooleanhasTuple(Node $self, String tupleName)final static UnitclearTuple(Node $self, String tupleName)final static UnitremoveTuple(Node $self, String tupleName)final static UnitaddLabel(Node $self, String label)Labels are unique, so if we add a labels into a node twice, we can get only one such label final static BooleanremoveLabel(Node $self, String label)final static List<String>getLabels(Node $self)final static BooleanhasLabel(Node $self, String label)final static UnitclearLabels(Node $self)final static UnitaddMlLabel(Node $self, String label)Ml labels are unique, so if we add a labels into a node twice, we can get only one such label final static BooleanremoveMlLabel(Node $self, String label)final static List<String>getMlLabels(Node $self)final static StringgetMlLabel(Node $self)final static BooleanhasMlLabel(Node $self, String label)final static UnitclearMlLabels(Node $self)final static UnitaddCaptionWord(Node $self, String word)final static BooleanremoveCaptionWord(Node $self, String word)final static List<String>getCaptionWords(Node $self)final static BooleanhasCaptionWord(Node $self, String word)final static BooleanhasCaption(Node $self)final static UnitclearCaption(Node $self)final static NoderemoveAttrs(Node $self, String attributeKeys)final static NoderemoveAttrs(Node $self, Iterable<String> attributeKeys)final static NoderemoveAttrsIf(Node $self, Function1<Attribute, Boolean> filter)final static StringformatEachFeatures(Node $self, Integer featureKeys)final static StringformatFeatures(Node $self, Integer featureKeys)final static StringformatNamedFeatures(Node $self)final static List<Element>ancestors(Node $self)final static BooleanhasAncestor(Node $self, Function1<Element, Boolean> predicate)final static BooleanhasAncestor(Node $self, Function1<Node, Boolean> stop, Function1<Element, Boolean> predicate)final static BooleanisAncestorOf(Node $self, Node other)final static BooleanisAncestorOf(Node $self, Node other, Function1<Node, Boolean> stop)-
-
Method Detail
-
getNILDocument
final Document getNILDocument()
-
getNILElement
final Element getNILElement()
-
getNILNode
final Node getNILNode()
-
getPulsarMetaElement
final Element getPulsarMetaElement()
-
getPulsarScriptElement
final Element getPulsarScriptElement()
-
getPulsarScript
final String getPulsarScript()
-
getNormalizedURI
final String getNormalizedURI()
-
getIsInitialized
AtomicBoolean getIsInitialized()
Whether the document is initialized.
-
setIsInitialized
void setIsInitialized(AtomicBoolean isInitialized)
Whether the document is initialized.
-
getViewPort
final Dimension getViewPort()
The view port of the document.
-
getPrimaryGrid
Dimension getPrimaryGrid()
The primary grid of the document.
-
setPrimaryGrid
void setPrimaryGrid(Dimension primaryGrid)
The primary grid of the document.
-
getSecondaryGrid
Dimension getSecondaryGrid()
The secondary grid of the document.
-
setSecondaryGrid
void setSecondaryGrid(Dimension secondaryGrid)
The secondary grid of the document.
-
getUnitArea
Integer getUnitArea()
The unit area of the document.
-
setUnitArea
void setUnitArea(Integer unitArea)
The unit area of the document.
-
getExportPaths
ExportPaths getExportPaths()
Various paths to export different views of the document.
-
setExportPaths
void setExportPaths(ExportPaths exportPaths)
Various paths to export different views of the document.
-
getAnnotated
Boolean getAnnotated()
Whether the document is annotated.
-
setAnnotated
void setAnnotated(Boolean annotated)
Whether the document is annotated.
-
getOwnerDocument
final Document getOwnerDocument()
-
getLocation
final String getLocation()
-
getSequence
final Integer getSequence()
The traversal sequence of the node.
-
getGlobalId
final String getGlobalId()
-
getCenterX
final Integer getCenterX()
-
getCenterY
final Integer getCenterY()
-
getGeoLocation
final Point getGeoLocation()
-
getScreenNumber
final Double getScreenNumber()
-
getDimension
final Dimension getDimension()
-
getRectangle
final Rectangle getRectangle()
-
getHasHiddenFlag
final Boolean getHasHiddenFlag()
-
getHasOverflowHiddenFlag
final Boolean getHasOverflowHiddenFlag()
-
getIsVisible
final Boolean getIsVisible()
-
getIsHidden
final Boolean getIsHidden()
-
getIsBlankText
final Boolean getIsBlankText()
-
getIsNonBlankText
final Boolean getIsNonBlankText()
-
getIsRegularText
final Boolean getIsRegularText()
-
getIsImage
final Boolean getIsImage()
-
getIsRegularImage
final Boolean getIsRegularImage()
-
getIsAnchorImage
final Boolean getIsAnchorImage()
-
getIsAnchor
final Boolean getIsAnchor()
-
getIsRegularAnchor
final Boolean getIsRegularAnchor()
-
getIsImageAnchor
final Boolean getIsImageAnchor()
-
getIsRegularImageAnchor
final Boolean getIsRegularImageAnchor()
-
getIsTable
final Boolean getIsTable()
-
getIsShortText
final Boolean getIsShortText()
-
getIsMediumText
final Boolean getIsMediumText()
-
getIsLongText
final Boolean getIsLongText()
-
getIsCurrencyUnit
final Boolean getIsCurrencyUnit()
-
getIsNumeric
final Boolean getIsNumeric()
-
getIsFloat
final Boolean getIsFloat()
-
getIsNumericLike
final Boolean getIsNumericLike()
-
getIsMoneyLike
final Boolean getIsMoneyLike()
-
getIntValue
final Integer getIntValue()
Try to parse the text of the node as an integer number. Returns Int.MIN_VALUE if the text is not a valid integer number.
-
getDoubleValue
final Double getDoubleValue()
Try to parse the text of the node as a float number. Returns Float.NaN if the text is not a valid float number.
-
getNumChars
Integer getNumChars()
The number of characters of the node.
-
setNumChars
void setNumChars(Integer numChars)
The number of characters of the node.
-
getNumSiblings
Integer getNumSiblings()
The number of siblings of the node.
-
setNumSiblings
void setNumSiblings(Integer numSiblings)
The number of siblings of the node.
-
getNumChildren
Integer getNumChildren()
The number of children of the node.
-
setNumChildren
void setNumChildren(Integer numChildren)
The number of children of the node.
-
getNumTextNodes
Integer getNumTextNodes()
The number of descend text nodes.
-
setNumTextNodes
void setNumTextNodes(Integer numTextNodes)
The number of descend text nodes.
-
getNumImages
Integer getNumImages()
Number of descend images
-
setNumImages
void setNumImages(Integer numImages)
Number of descend images
-
getNumAnchors
Integer getNumAnchors()
Number of descend anchors
-
setNumAnchors
void setNumAnchors(Integer numAnchors)
Number of descend anchors
-
getTextNodeDensity
Double getTextNodeDensity()
Text node density
-
setTextNodeDensity
void setTextNodeDensity(Double textNodeDensity)
Text node density
-
getSelectorOrName
final String getSelectorOrName()
-
getCaptionOrName
final String getCaptionOrName()
-
getCaptionOrSelectorOrName
final String getCaptionOrSelectorOrName()
-
getCleanText
final String getCleanText()
-
getTextRepresentation
final String getTextRepresentation()
-
getSlimHtml
final String getSlimHtml()
The slim html representation of the node. TODO: slim table
-
getMinimalHtml
final String getMinimalHtml()
The minimal html representation of the node.
-
getCanonicalName
final String getCanonicalName()
-
getUniqueName
final String getUniqueName()
-
getNamedRect
final String getNamedRect()
-
getNamedRect2
final String getNamedRect2()
-
getParentElement
final Element getParentElement()
-
getBestElement
final Element getBestElement()
-
getCaption
final String getCaption()
-
nullableField
final static <T extends Any> NullableMapField<T> nullableField()
-
addClasses
final static Element addClasses(Element $self, String classNames)
Add a class to the element, if the class is already in the element, it will not be added again.
-
addClasses
final static Element addClasses(Element $self, Iterable<String> classNames)
Add a class to the element, if the class is already in the element, it will not be added again.
-
slimCopy
final static Element slimCopy(Element $self)
Make a copy of the element, the copy is a slim copy, all the attributes are removed.
-
minimalCopy
final static Element minimalCopy(Element $self)
Make a copy of the element, the copy is a minimal copy, all the attributes are removed except the valuable ones.
-
ownTexts
final static List<String> ownTexts(Element $self)
This method retrieves and returns a list of the own text content contained within each child node of the element.
-
valuableClassNames
final static Set<String> valuableClassNames(Element $self)
Returns possible valuable class names of the element.
-
anyAttr
final static Element anyAttr(Element $self, String attributeKey, Object attributeValue)
Set an attribute to the element, if the attribute is already in the element, it will be replaced.
-
anyAttr
final static Node anyAttr(Node $self, String attributeKey, Object attributeValue)
Set attribute attributeKey to attributeValue
-
removeTemporaryAttributesCascaded
final static Element removeTemporaryAttributesCascaded(Element $self)
Clear all the temporary attributes from the element.
-
removeNonStandardAttributes
final static Element removeNonStandardAttributes(Element $self)
Clear all the non-standard attributes from the element.
-
removeUnnecessaryAttributes
final static Element removeUnnecessaryAttributes(Element $self)
Clear all the unnecessary attributes from the element.
-
removeNonStandardAttributesCascaded
final static Element removeNonStandardAttributesCascaded(Element $self)
Clear all the non-standard attributes from the element.
-
removeUnnecessaryAttributesCascaded
final static Element removeUnnecessaryAttributesCascaded(Element $self)
Clear all the unnecessary attributes from the element.
-
clearAttributesCascaded
final static Element clearAttributesCascaded(Element $self)
Clear all the temporary attributes from the element.
-
parseStyle
final static Array<String> parseStyle(Element $self)
Parse style attribute of the element into an array of strings.
-
getStyle
final static String getStyle(Element $self, String styleKey)
Get a style value from the style attribute of the element.
-
joinToString
final static String joinToString(Node $self, String separator, String prefix, String suffix)
The trimmed text of this node.
TextNodes' texts are calculated and stored while Elements' clean texts are calculated on the fly. This is a balance of space and time.
-
attrOrNull
final static String attrOrNull(Node $self, String attrName)
Get the attribute value associated with the given name. Returns null if the attribute is not present or its value is blank.
-
getFeature
final static Double getFeature(Node $self, Integer key)
Get the feature value by the given key.
-
getFeature
final static Double getFeature(Node $self, String name)
Get the feature value by the given name.
-
getFeatureEntry
final static FeatureEntry getFeatureEntry(Node $self, Integer key)
Get the feature entry by the given key.
-
setFeature
final static Unit setFeature(Node $self, Integer key, Double value)
Associate the given value with the given key.
-
setFeature
final static Unit setFeature(Node $self, Integer key, Integer value)
Associate the given value with the given key.
-
removeFeature
final static Node removeFeature(Node $self, Integer key)
Remove a feature specified by the given key. The removal is done by setting the value to 0.0.
-
clearFeatures
final static Node clearFeatures(Node $self)
Clear all the features of the node, the feature vector is set to an empty vector.
-
getVariable
final static <T extends Any> T getVariable(Node $self, String name)
Temporary node variables
-
getVariable
final static <T extends Any> T getVariable(Node $self, String name, T defaultValue)
-
computeVariableIfAbsent
final static <T extends Any> T computeVariableIfAbsent(Node $self, String name, Function1<String, T> mappingFunction)
-
setVariable
final static Unit setVariable(Node $self, String name, Object value)
-
setVariableIfNotNull
final static Unit setVariableIfNotNull(Node $self, String name, Object value)
-
hasVariable
final static Boolean hasVariable(Node $self, String name)
-
removeVariable
final static Object removeVariable(Node $self, String name)
-
rAttr
final static String rAttr(Node $self, String attributeKey, String attributeValue)
Set attribute attributeKey to attributeValue and return attributeValue
-
rAnyAttr
final static Object rAnyAttr(Node $self, String attributeKey, Object attributeValue)
Set attribute attributeKey to attributeValue and return attributeValue
-
appendAttr
final static Unit appendAttr(Node $self, String attributeKey, String attributeValue, String separator)
append an attribute, no guarantee for uniqueness
-
addTupleItem
final static Boolean addTupleItem(Node $self, String tupleName, Object item)
Tuple data
-
removeTupleItem
final static Boolean removeTupleItem(Node $self, String tupleName, Object item)
-
hasTupleItem
final static Boolean hasTupleItem(Node $self, String tupleName, String item)
-
clearTuple
final static Unit clearTuple(Node $self, String tupleName)
-
removeTuple
final static Unit removeTuple(Node $self, String tupleName)
-
addLabel
final static Unit addLabel(Node $self, String label)
Labels are unique, so if we add a labels into a node twice, we can get only one such label
-
removeLabel
final static Boolean removeLabel(Node $self, String label)
-
clearLabels
final static Unit clearLabels(Node $self)
-
addMlLabel
final static Unit addMlLabel(Node $self, String label)
Ml labels are unique, so if we add a labels into a node twice, we can get only one such label
-
removeMlLabel
final static Boolean removeMlLabel(Node $self, String label)
-
getMlLabels
final static List<String> getMlLabels(Node $self)
-
getMlLabel
final static String getMlLabel(Node $self)
-
hasMlLabel
final static Boolean hasMlLabel(Node $self, String label)
-
clearMlLabels
final static Unit clearMlLabels(Node $self)
-
addCaptionWord
final static Unit addCaptionWord(Node $self, String word)
-
removeCaptionWord
final static Boolean removeCaptionWord(Node $self, String word)
-
getCaptionWords
final static List<String> getCaptionWords(Node $self)
-
hasCaptionWord
final static Boolean hasCaptionWord(Node $self, String word)
-
hasCaption
final static Boolean hasCaption(Node $self)
-
clearCaption
final static Unit clearCaption(Node $self)
-
removeAttrs
final static Node removeAttrs(Node $self, String attributeKeys)
-
removeAttrs
final static Node removeAttrs(Node $self, Iterable<String> attributeKeys)
-
removeAttrsIf
final static Node removeAttrsIf(Node $self, Function1<Attribute, Boolean> filter)
-
formatEachFeatures
final static String formatEachFeatures(Node $self, Integer featureKeys)
-
formatFeatures
final static String formatFeatures(Node $self, Integer featureKeys)
-
formatNamedFeatures
final static String formatNamedFeatures(Node $self)
-
hasAncestor
final static Boolean hasAncestor(Node $self, Function1<Element, Boolean> predicate)
-
hasAncestor
final static Boolean hasAncestor(Node $self, Function1<Node, Boolean> stop, Function1<Element, Boolean> predicate)
-
isAncestorOf
final static Boolean isAncestorOf(Node $self, Node other)
-
isAncestorOf
final static Boolean isAncestorOf(Node $self, Node other, Function1<Node, Boolean> stop)
-
-
-
-