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
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
final boolean
containsChildNodeThat
(Predicate<INode<?>> selector) final boolean
containsChildNodeWithHeader
(String header) final boolean
protected final boolean
equalsNode
(BaseNode<?> node) final int
final IContainer
<String> static String
getEscapeStringFor
(String string) getOptionalStoredFirstChildNodeThat
(Predicate<INode<?>> selector) static String
getOriginStringFromEscapeString
(String escapeString) final boolean
final double
final int
final String
final BN
getStoredChildNodeAt1BasedIndex
(int index) final IContainer
<BN> getStoredChildNodesThat
(Predicate<INode<?>> selector) final IContainer
<BN> getStoredChildNodesWithHeader
(String header) final BN
final BN
getStoredFirstChildNodeThat
(Predicate<INode<?>> selector) final BN
final BN
final boolean
isBlank()
final void
saveToFile
(String path) Saves the currentBaseNode
to the file with the given file path.final void
saveToFile
(String path, WriteMode writeMode) Saves the currentBaseNode
to the file with the given path.final boolean
final double
toDouble()
final String
final int
toInt()
final String
toString()
final IMutableXmlNode
toXml()
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.INode
asWithHeader, getStoredChildNodes
Von 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
String
for the given string.
-
getOriginStringFromEscapeString
- Parameter:
escapeString
-- Gibt zurück:
- the origin
String
from 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:
isBlank
in SchnittstelleBlanknessRequestable
- Gibt zurück:
- true if
BlanknessRequestable
is blank.
-
saveToFile
Saves the currentBaseNode
to 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 currentBaseNode
to 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_ALREADY
and 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
BaseNode
equals the given node.
-