Klasse AbstractNode<N extends AbstractNode<N>>
java.lang.Object
ch.nolix.core.document.node.AbstractNode<N>
- Typparameter:
N- is the type of aAbstractNode.
- Alle implementierten Schnittstellen:
IOptionalHeaderHolder, INode<N>, BlanknessRequestable
- Bekannte direkte Unterklassen:
AbstractMutableNode, Node
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal booleanfinal booleancontainsChildNodeThat(Predicate<INode<?>> selector) final booleancontainsChildNodeWithHeader(String header) final booleanfinal booleanfinal intfinal intgetChildNodeCount(Predicate<INode<?>> selector) final IContainer<String> static StringgetEscapeStringFor(String string) getOptionalStoredFirstChildNodeThat(Predicate<INode<?>> selector) static StringgetOriginStringFromEscapeString(String escapeString) final booleanfinal doublefinal intfinal Stringfinal NgetStoredChildNodeAtOneBasedIndex(int index) final IContainer<N> getStoredChildNodesThat(Predicate<INode<?>> selector) final IContainer<N> getStoredChildNodesWithHeader(String header) final Nfinal NgetStoredFirstChildNodeThat(Predicate<INode<?>> selector) final Nfinal Nfinal inthashCode()final booleanisBlank()final voidsaveToFile(String path) Saves the currentAbstractNodeto the file with the given file path.final voidsaveToFile(String path, WriteMode writeMode) Saves the currentAbstractNodeto the file with the given path.final booleanfinal doubletoDouble()final Stringfinal inttoInt()final StringtoString()final IMutableXmlNodetoXml()Von Schnittstelle geerbte Methoden INode
asWithHeader, getStoredChildNodesVon Schnittstelle geerbte Methoden IOptionalHeaderHolder
getHeader, getHeaderOrEmptyString, getOptionalHeader, hasHeader, hasHeader
-
Felddetails
-
COMMA_CODE
- Siehe auch:
-
DOLLAR_SYMBOL_CODE
- Siehe auch:
-
OPEN_BRACKET_CODE
- Siehe auch:
-
CLOSED_BRACKET_CODE
- Siehe auch:
-
-
Konstruktordetails
-
AbstractNode
public AbstractNode()
-
-
Methodendetails
-
getEscapeStringFor
-
getOriginStringFromEscapeString
- Parameter:
escapeString-- Gibt zurück:
- the origin
Stringfrom the given escapeString. - Löst aus:
NullPointerException- if the given escapeString is null.
-
containsChildNodes
public final boolean containsChildNodes()- Angegeben von:
containsChildNodesin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- true if the current
INodecontains childINodes, false otherwise.
-
containsChildNodeThat
- Angegeben von:
containsChildNodeThatin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- true if the current
INodecontains a childINodethe given selector selects, false otherwise.
-
containsChildNodeWithHeader
- Angegeben von:
containsChildNodeWithHeaderin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
header-- Gibt zurück:
- true if the current
INodecontains a childINodewith the given header, false otherwise.
-
containsOneChildNode
public final boolean containsOneChildNode()- Angegeben von:
containsOneChildNodein SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- true if the current
INodecontains 1 childINode, false otherwise.
-
equals
-
getChildNodeCount
public final int getChildNodeCount()- Angegeben von:
getChildNodeCountin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the number of child
INodes of the currentINode.
-
getChildNodeCount
- Angegeben von:
getChildNodeCountin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- the number of child
INodes the given selector selects from the currentINode.
-
getChildNodesHeaders
- Angegeben von:
getChildNodesHeadersin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the headers of the child
INodes of the currentINode.
-
getOptionalStoredFirstChildNodeThat
- Angegeben von:
getOptionalStoredFirstChildNodeThatin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- a new
Optionalwith the first childINodethe given selector selects from the currentINode, an emptyOptionalotherwise.
-
getStoredChildNodeAtOneBasedIndex
- Angegeben von:
getStoredChildNodeAtOneBasedIndexin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
index-- Gibt zurück:
- the child
INodeat the given oneBasedIndex from the currentINode.
-
getStoredChildNodesWithHeader
- Angegeben von:
getStoredChildNodesWithHeaderin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
header-- Gibt zurück:
- the child
INodes with the given header from the currentINode.
-
getStoredChildNodesThat
- Angegeben von:
getStoredChildNodesThatin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- the child
INodes the given selector selects from the currentINode.
-
getStoredFirstChildNode
- Angegeben von:
getStoredFirstChildNodein SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the first child
INodefrom the currentINode.
-
getStoredSingleChildNode
- Angegeben von:
getStoredSingleChildNodein SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the single child
INodeof the currentINode.
-
getStoredFirstChildNodeThat
- Angegeben von:
getStoredFirstChildNodeThatin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- the first child
INodethe given selector selects from the currentINode.
-
getStoredFirstChildNodeWithHeader
- Angegeben von:
getStoredFirstChildNodeWithHeaderin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
header-- Gibt zurück:
- the first child
INodewith the given header from the currentINode.
-
getSingleChildNodeAsBoolean
public final boolean getSingleChildNodeAsBoolean()- Angegeben von:
getSingleChildNodeAsBooleanin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the boolean the single child
INodeof the currentINoderepresents.
-
getSingleChildNodeAsDouble
public final double getSingleChildNodeAsDouble()- Angegeben von:
getSingleChildNodeAsDoublein SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the double the single child
INodeof the currentINoderepresents.
-
getSingleChildNodeAsInt
public final int getSingleChildNodeAsInt()- Angegeben von:
getSingleChildNodeAsIntin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the int the single child
INodeof the currentINoderepresents.
-
getSingleChildNodeHeader
- Angegeben von:
getSingleChildNodeHeaderin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- the header of the single child
INodeof the currentINode.
-
hashCode
-
isBlank
public final boolean isBlank()- Angegeben von:
isBlankin SchnittstelleBlanknessRequestable- Gibt zurück:
- true if
BlanknessRequestableis blank, false otherwise.
-
saveToFile
Saves the currentAbstractNodeto the file with the given file path.- Parameter:
path-- Löst aus:
ArgumentIsNullException- if the given path is null.InvalidArgumentException- if the given path is blank.InvalidArgumentException- if there exists already a file system item with the given path.
-
saveToFile
Saves the currentAbstractNodeto the file with the given path.- Parameter:
path-writeMode-- Löst aus:
ArgumentIsNullException- if the given path is null.InvalidArgumentException- if the given path is blank.InvalidArgumentException- if the given writeMode flag=WriteMode.THROW_EXCEPTION_WHEN_TARGET_EXISTS_ALREADYand there exists already a file system item with the given path.
-
toBoolean
-
toDouble
-
toFormattedString
- Angegeben von:
toFormattedStringin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- a formatted
Stringrepresentation of the currentINode.
-
toInt
-
toString
-
toXml
-