Package ch.nolix.core.document.node
Klasse MutableNode
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<MutableNode>
,IOptionalHeaderHolder
,IMutableNode<MutableNode>
,INode<MutableNode>
,BlanknessRequestable
-
Feldübersicht
Von Klasse geerbte Felder ch.nolix.core.document.node.BaseNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddChildNode
(INode<?> childNode, INode<?>... childNodes) Adds the given childNodes to the currentIMutableNode
.addChildNodeFromString
(String string, String... strings) Adds the childINode
s from the given strings the currentIMutableNode
.<N extends INode<?>>
MutableNodeaddChildNodes
(Iterable<N> pChildNodes) Adds the given childNodes to the currentIMutableNode
.addChildNodesFromStrings
(Iterable<String> strings) Adds the childINode
s from the given strings the currentIMutableNode
.protected MutableNode
INode
<?> asWithHeader
(String header) static MutableNode
boolean
static MutableNode
static MutableNode
static MutableNode
fromString
(String string) int
hashCode()
boolean
removeAndGetStoredFirstChildNodeThat
(Predicate<INode<?>> selector) Removes and returns the first childINode
the given selector selects from the currentIMutableNode
.void
Removes the childINode
s from the currentIMutableNode
.void
removeFirstChildNodeThat
(Predicate<INode<?>> selector) Removes the first childINode
the given selector selects from the currentIMutableNode
.void
removeFirstChildNodeWithHeader
(String header) Removes the first childINode
with the given header from the currentIMutableNode
.Removes the header of currentIFluentMutableOptionalHeaderHolder
.void
replaceFirstChildNodeWithGivenHeaderByGivenNode
(String header, INode<?> childNode) Replaces the first childINode
with the given header from the currentIMutableNode
by the givenINode
.void
reset()
Removes the header and childINode
s of the currentIMutableNode
.Sets the header of the currentIFluentMutableOptionalHeaderHolder
.Von Klasse geerbte Methoden ch.nolix.core.document.node.BaseMutableNode
addPostfixToHeader, addPrefixToHeader, resetFromFile, resetFromString, setChildNodes
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, 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.documentapi.nodeapi.INode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAt1BasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXml
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.optionalattributeapi.IOptionalHeaderHolder
getHeaderOrEmptyString, getOptionalHeader, hasHeader
-
Methodendetails
-
createEmpty
- Gibt zurück:
- a new empty
MutableNode
.
-
fromFile
- Parameter:
filePath
-- Gibt zurück:
- a new
MutableNode
from the file with the given filePath. - Löst aus:
InvalidArgumentException
- if the given filePath is not valid.UnrepresentingArgumentException
- if the file with the given filePath does not represent aMutableNode
.
-
fromNode
- Parameter:
node
-- Gibt zurück:
- a new
MutableNode
from the givenINode
.
-
fromString
- Parameter:
string
-- Gibt zurück:
- a new
MutableNode
from the given string. - Löst aus:
UnrepresentingArgumentException
- if the given string does not represent aMutableNode
.
-
addChildNode
Adds the given childNodes to the currentIMutableNode
.- Parameter:
childNode
-childNodes
-- Gibt zurück:
- the current
IMutableNode
.
-
addChildNodeFromString
Adds the childINode
s from the given strings the currentIMutableNode
.- Parameter:
string
-strings
-- Gibt zurück:
- the current
IMutableNode
.
-
addChildNodes
Adds the given childNodes to the currentIMutableNode
.- Typparameter:
N
- is the type of the given childNodes.- Parameter:
pChildNodes
-- Gibt zurück:
- the current
IMutableNode
.
-
addChildNodesFromStrings
Adds the childINode
s from the given strings the currentIMutableNode
.- Parameter:
strings
-- Gibt zurück:
- the current
IMutableNode
.
-
asWithHeader
-
equals
-
getStoredChildNodes
-
getHeader
- Gibt zurück:
- the header of the current
IOptionalHeaderHolder
.
-
hasHeader
public boolean hasHeader()- Gibt zurück:
- true if the current
IOptionalHeaderHolder
has a header.
-
hashCode
public int hashCode() -
removeChildNodes
public void removeChildNodes()Removes the childINode
s from the currentIMutableNode
. -
removeAndGetStoredFirstChildNodeThat
Removes and returns the first childINode
the given selector selects from the currentIMutableNode
.- Parameter:
selector
-- Gibt zurück:
- the first child
INode
the given selector selects from the currentIMutableNode
.
-
removeFirstChildNodeThat
Removes the first childINode
the given selector selects from the currentIMutableNode
.- Parameter:
selector
-
-
removeFirstChildNodeWithHeader
Removes the first childINode
with the given header from the currentIMutableNode
.- Parameter:
header
-
-
removeHeader
Removes the header of currentIFluentMutableOptionalHeaderHolder
.- Gibt zurück:
- the current
IFluentMutableOptionalHeaderHolder
.
-
replaceFirstChildNodeWithGivenHeaderByGivenNode
Replaces the first childINode
with the given header from the currentIMutableNode
by the givenINode
.- Parameter:
header
-childNode
-
-
reset
public void reset()Removes the header and childINode
s of the currentIMutableNode
. -
setHeader
Sets the header of the currentIFluentMutableOptionalHeaderHolder
.- Parameter:
header
-- Gibt zurück:
- the current
IFluentMutableOptionalHeaderHolder
.
-
asConcrete
- Angegeben von:
asConcrete
in KlasseBaseMutableNode<MutableNode>
- Gibt zurück:
- the current
BaseMutableNode
.
-