Package ch.nolix.core.document.node
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
- Version:
- 2017-06-24
- Autor:
- Silvan Wyss
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleanfinal booleancontainsChildNodeThat(Predicate<INode<?>> selector) final booleancontainsChildNodeWithHeader(String header) final booleanfinal booleanfinal intfinal 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 Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.document.node.INode
asWithHeader, getStoredChildNodesVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attribute.optionalattribute.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
- Parameter:
string-- Gibt zurück:
- an escape
Stringfor the given string.
-
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.
-
containsChildNodeThat
- Angegeben von:
containsChildNodeThatin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
selector-- Gibt zurück:
- true if the current
INodecontains a childINodethe given selector selects.
-
containsChildNodeWithHeader
- Angegeben von:
containsChildNodeWithHeaderin SchnittstelleINode<N extends AbstractNode<N>>- Parameter:
header-- Gibt zurück:
- true if the current
INodecontains a childINodewith the given header.
-
containsOneChildNode
public final boolean containsOneChildNode()- Angegeben von:
containsOneChildNodein SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- true if the current
INodecontains 1 childINode.
-
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.
-
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
Optionalwit 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
public final int hashCode() -
isBlank
public final boolean isBlank()- Angegeben von:
isBlankin SchnittstelleBlanknessRequestable- Gibt zurück:
- true if
BlanknessRequestableis blank.
-
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
public final boolean toBoolean() -
toDouble
public final double toDouble() -
toFormattedString
- Angegeben von:
toFormattedStringin SchnittstelleINode<N extends AbstractNode<N>>- Gibt zurück:
- a formatted
Stringrepresentation of the currentINode.
-
toInt
public final int toInt() -
toString
-
toXml
-