Package ch.nolix.core.document.node
Klasse BaseMutableNode<MN extends BaseMutableNode<MN>>
java.lang.Object
ch.nolix.core.document.node.BaseNode<MN>
ch.nolix.core.document.node.BaseMutableNode<MN>
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<MN>
,IOptionalHeaderHolder
,IMutableNode<MN>
,INode<MN>
,BlanknessRequestable
- Bekannte direkte Unterklassen:
FileNode
,MutableNode
public abstract class BaseMutableNode<MN extends BaseMutableNode<MN>>
extends BaseNode<MN>
implements IMutableNode<MN>
-
Feldübersicht
Von Klasse geerbte Felder ch.nolix.core.document.node.BaseNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal MN
addPostfixToHeader
(String postfix) Adds the given postfix at the end of the header of the currentIMutableNode
if the currentIMutableNode
has a header.final MN
addPrefixToHeader
(String prefix) Adds the given prefix at the begin of the header of the currentIMutableNode
if the currentIMutableNode
has a header.protected abstract MN
final void
resetFromFile
(String filePath) Resets the currentIMutableNode
from the file with the given file path.final void
resetFromString
(String string) Resets the currentIMutableNode
from the given string.final MN
setChildNodes
(Iterable<? extends INode<?>> childNodes) Resets the childINode
s of the currentIMutableNode
with the given childNodes.Von Klasse geerbte Methoden ch.nolix.core.document.node.BaseNode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, equalsNode, getChildNodeCount, getChildNodesHeaders, getEscapeStringFor, getOptionalStoredFirstChildNodeThat, getOriginStringFromEscapeString, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAt1BasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, isBlank, saveToFile, saveToFile, toBoolean, toDouble, toFormattedString, toInt, toString, 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.stateapi.staterequestapi.BlanknessRequestable
isBlank
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.fluentmutableoptionalattributeapi.IFluentMutableOptionalHeaderHolder
removeHeader, setHeader
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.IMutableNode
addChildNode, addChildNodeFromString, addChildNodes, addChildNodesFromStrings, removeAndGetStoredFirstChildNodeThat, removeChildNodes, removeFirstChildNodeThat, removeFirstChildNodeWithHeader, replaceFirstChildNodeWithGivenHeaderByGivenNode, reset
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.INode
asWithHeader, containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAt1BasedIndex, getStoredChildNodes, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXml
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.optionalattributeapi.IOptionalHeaderHolder
getHeader, getHeaderOrEmptyString, getOptionalHeader, hasHeader, hasHeader
-
Konstruktordetails
-
BaseMutableNode
public BaseMutableNode()
-
-
Methodendetails
-
addPostfixToHeader
Adds the given postfix at the end of the header of the currentIMutableNode
if the currentIMutableNode
has a header. Sets the given postfix as the header of the currentIMutableNode
if the currentIMutableNode
does not have a header.- Angegeben von:
addPostfixToHeader
in SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>
- Parameter:
postfix
-- Gibt zurück:
- the current
IMutableNode
.
-
addPrefixToHeader
Adds the given prefix at the begin of the header of the currentIMutableNode
if the currentIMutableNode
has a header. Sets the given prefix as the header of the currentIMutableNode
if the currentIMutableNode
does not have a header.- Angegeben von:
addPrefixToHeader
in SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>
- Parameter:
prefix
-- Gibt zurück:
- the current
IMutableNode
.
-
resetFromFile
Resets the currentIMutableNode
from the file with the given file path.- Angegeben von:
resetFromFile
in SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>
- Parameter:
filePath
-
-
resetFromString
Resets the currentIMutableNode
from the given string.- Angegeben von:
resetFromString
in SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>
- Parameter:
string
-
-
setChildNodes
Resets the childINode
s of the currentIMutableNode
with the given childNodes.- Angegeben von:
setChildNodes
in SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>
- Parameter:
childNodes
-- Gibt zurück:
- the current
IMutableNode
.
-
asConcrete
- Gibt zurück:
- the current
BaseMutableNode
.
-