Package ch.nolix.core.document.node
Klasse BaseNode<BN extends BaseNode<BN>>
java.lang.Object
ch.nolix.core.document.node.BaseNode<BN>
- Typparameter:
BN- is the type of aBaseNode.
- Alle implementierten Schnittstellen:
IOptionalHeaderHolder,INode<BN>,BlanknessRequestable
- Bekannte direkte Unterklassen:
BaseMutableNode,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 booleanprotected final booleanequalsNode(BaseNode<?> node) final intfinal IContainer<String> static StringgetEscapeStringFor(String string) getOptionalStoredFirstChildNodeThat(Predicate<INode<?>> selector) static StringgetOriginStringFromEscapeString(String escapeString) final booleanfinal doublefinal intfinal Stringfinal BNgetStoredChildNodeAt1BasedIndex(int index) final IContainer<BN> getStoredChildNodesThat(Predicate<INode<?>> selector) final IContainer<BN> getStoredChildNodesWithHeader(String header) final BNfinal BNgetStoredFirstChildNodeThat(Predicate<INode<?>> selector) final BNfinal BNfinal booleanisBlank()final voidsaveToFile(String path) Saves the currentBaseNodeto the file with the given file path.final voidsaveToFile(String path, WriteMode writeMode) Saves the currentBaseNodeto the file with the given path.final booleanfinal doubletoDouble()final Stringfinal inttoInt()final StringtoString()final IMutableXmlNodetoXml()Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.INode
asWithHeader, getStoredChildNodesVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.optionalattributeapi.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
-
BaseNode
public BaseNode()
-
-
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() -
containsChildNodeThat
-
containsChildNodeWithHeader
-
containsOneChildNode
public final boolean containsOneChildNode() -
getChildNodeCount
public final int getChildNodeCount() -
getChildNodesHeaders
-
getOptionalStoredFirstChildNodeThat
-
getStoredChildNodeAt1BasedIndex
-
getStoredChildNodesWithHeader
-
getStoredChildNodesThat
-
getStoredFirstChildNode
-
getStoredSingleChildNode
-
getStoredFirstChildNodeThat
-
getStoredFirstChildNodeWithHeader
-
getSingleChildNodeAsBoolean
public final boolean getSingleChildNodeAsBoolean() -
getSingleChildNodeAsDouble
public final double getSingleChildNodeAsDouble() -
getSingleChildNodeAsInt
public final int getSingleChildNodeAsInt() -
getSingleChildNodeHeader
-
isBlank
public final boolean isBlank()- Angegeben von:
isBlankin SchnittstelleBlanknessRequestable- Gibt zurück:
- true if
BlanknessRequestableis blank.
-
saveToFile
Saves the currentBaseNodeto 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 currentBaseNodeto 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
-
toInt
public final int toInt() -
toString
-
toXml
-
equalsNode
- Parameter:
node-- Gibt zurück:
- true if the current
BaseNodeequals the given node.
-