Package ch.nolix.core.document.node
Klasse AbstractMutableNode<N extends AbstractMutableNode<N>>
java.lang.Object
ch.nolix.core.document.node.AbstractNode<N>
ch.nolix.core.document.node.AbstractMutableNode<N>
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<N>
,IOptionalHeaderHolder
,IMutableNode<N>
,INode<N>
,Resettable
,BlanknessRequestable
- Bekannte direkte Unterklassen:
FileNode
,MutableNode
public abstract class AbstractMutableNode<N extends AbstractMutableNode<N>>
extends AbstractNode<N>
implements IMutableNode<N>
-
Feldübersicht
Von Klasse geerbte Felder ch.nolix.core.document.node.AbstractNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal N
addPostfixToHeader
(String postfix) Adds the given postfix at the end of the header of the currentIMutableNode
if the currentIMutableNode
has a header.final N
addPrefixToHeader
(String prefix) Adds the given prefix at the begin of the header of the currentIMutableNode
if the currentIMutableNode
has a header.protected abstract N
final void
resetFromFile
(String filePath) Resets the currentIMutableNode
from the file with the given file path.final void
resetFromNode
(INode<?> node) Resets the currentIMutableNode
from the given node.final void
resetFromString
(String string) Resets the currentIMutableNode
from the given string.final N
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.AbstractNode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, equals, getChildNodeCount, getChildNodesHeaders, getEscapeStringFor, getOptionalStoredFirstChildNodeThat, getOriginStringFromEscapeString, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAt1BasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, hashCode, isBlank, saveToFile, saveToFile, toBoolean, toDouble, toFormattedString, toInt, toString, toXml
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, 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
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
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.statemutationapi.Resettable
reset
-
Konstruktordetails
-
AbstractMutableNode
public AbstractMutableNode()
-
-
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<N extends AbstractMutableNode<N>>
- 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<N extends AbstractMutableNode<N>>
- 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<N extends AbstractMutableNode<N>>
- Parameter:
filePath
-
-
resetFromNode
Resets the currentIMutableNode
from the given node.- Angegeben von:
resetFromNode
in SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>
- Parameter:
node
-
-
resetFromString
Resets the currentIMutableNode
from the given string.- Angegeben von:
resetFromString
in SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>
- Parameter:
string
-
-
setChildNodes
Resets the childINode
s of the currentIMutableNode
with the given childNodes.- Angegeben von:
setChildNodes
in SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>
- Parameter:
childNodes
-- Gibt zurück:
- the current
IMutableNode
.
-
asConcrete
- Gibt zurück:
- the current
AbstractMutableNode
.
-