Package ch.nolix.core.document.node
Klasse MutableNode
java.lang.Object
ch.nolix.core.document.node.AbstractNode<MutableNode>
ch.nolix.core.document.node.AbstractMutableNode<MutableNode>
ch.nolix.core.document.node.MutableNode
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<MutableNode>,IOptionalHeaderHolder,IMutableNode<MutableNode>,INode<MutableNode>,Resettable,BlanknessRequestable
-
Feldübersicht
Von Klasse geerbte Felder ch.nolix.core.document.node.AbstractNode
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 childINodes 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 childINodes from the given strings the currentIMutableNode.protected MutableNodeINode<?> asWithHeader(String header) static MutableNodestatic MutableNodestatic MutableNodestatic MutableNodefromString(String string) booleanremoveAndGetStoredFirstChildNodeThat(Predicate<INode<?>> selector) Removes and returns the first childINodethe given selector selects from the currentIMutableNode.voidRemoves the childINodes from the currentIMutableNode.voidremoveFirstChildNodeThat(Predicate<INode<?>> selector) Removes the first childINodethe given selector selects from the currentIMutableNode.voidremoveFirstChildNodeWithHeader(String header) Removes the first childINodewith the given header from the currentIMutableNode.voidRemoves the header of currentIFluentMutableOptionalHeaderHolder.voidreplaceFirstChildNodeWithGivenHeaderByGivenNode(String header, INode<?> childNode) Replaces the first childINodewith the given header from the currentIMutableNodeby the givenINode.voidreset()Resets the currentResettable.Sets the header of the currentIFluentMutableOptionalHeaderHolder.Von Klasse geerbte Methoden ch.nolix.core.document.node.AbstractMutableNode
addPostfixToHeader, addPrefixToHeader, resetFromFile, resetFromNode, resetFromString, setChildNodesVon Klasse geerbte Methoden ch.nolix.core.document.node.AbstractNode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, equals, getChildNodeCount, getChildNodesHeaders, getEscapeStringFor, getOptionalStoredFirstChildNodeThat, getOriginStringFromEscapeString, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAtOneBasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, hashCode, isBlank, saveToFile, saveToFile, toBoolean, toDouble, toFormattedString, toInt, toString, toXmlVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.BlanknessRequestable
isBlankVon Schnittstelle geerbte Methoden ch.nolix.coreapi.document.node.INode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAtOneBasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXmlVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attribute.optionalattribute.IOptionalHeaderHolder
getHeaderOrEmptyString, getOptionalHeader, hasHeader
-
Methodendetails
-
createEmpty
- Gibt zurück:
- a new empty
MutableNode.
-
fromFile
- Parameter:
filePath-- Gibt zurück:
- a new
MutableNodefrom 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
MutableNodefrom the givenINode.
-
fromString
- Parameter:
string-- Gibt zurück:
- a new
MutableNodefrom 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 childINodes 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 childINodes from the given strings the currentIMutableNode.- Parameter:
strings-- Gibt zurück:
- the current
IMutableNode.
-
asWithHeader
-
getStoredChildNodes
-
getHeader
- Gibt zurück:
- the header of the current
IOptionalHeaderHolder.
-
hasHeader
public boolean hasHeader()- Gibt zurück:
- true if the current
IOptionalHeaderHolderhas a header.
-
removeChildNodes
public void removeChildNodes()Removes the childINodes from the currentIMutableNode. -
removeAndGetStoredFirstChildNodeThat
Removes and returns the first childINodethe given selector selects from the currentIMutableNode.- Parameter:
selector-- Gibt zurück:
- the first child
INodethe given selector selects from the currentIMutableNode.
-
removeFirstChildNodeThat
Removes the first childINodethe given selector selects from the currentIMutableNode.- Parameter:
selector-
-
removeFirstChildNodeWithHeader
Removes the first childINodewith the given header from the currentIMutableNode.- Parameter:
header-
-
removeHeader
public void removeHeader()Removes the header of currentIFluentMutableOptionalHeaderHolder. -
replaceFirstChildNodeWithGivenHeaderByGivenNode
Replaces the first childINodewith the given header from the currentIMutableNodeby the givenINode.- Parameter:
header-childNode-
-
reset
public void reset()Resets the currentResettable. -
setHeader
Sets the header of the currentIFluentMutableOptionalHeaderHolder.- Parameter:
header-- Gibt zurück:
- the current
IFluentMutableOptionalHeaderHolder.
-
asConcrete
- Angegeben von:
asConcretein KlasseAbstractMutableNode<MutableNode>- Gibt zurück:
- the current
AbstractMutableNode.
-