Klasse FileNode
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<FileNode>, IOptionalHeaderHolder, IMutableNode<FileNode>, INode<FileNode>, Resettable, BlanknessRequestable
A
FileNode is a specification that is stored in a file.- Autor:
- Silvan Wyss
-
Feldübersicht
Von Klasse geerbte Felder AbstractNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator 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.addChildNodes(Iterable<N> childNodes) Adds the given childNodes to the currentIMutableNode.addChildNodesFromStrings(Iterable<String> strings) Adds the childINodes from the given strings the currentIMutableNode.protected FileNodeINode<?> asWithHeader(String header) 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<?> node) 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 AbstractMutableNode
addPostfixToHeader, addPrefixToHeader, resetFromFile, resetFromNode, resetFromString, setChildNodesVon Klasse geerbte Methoden AbstractNode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, equals, getChildNodeCount, 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 Schnittstelle geerbte Methoden BlanknessRequestable
isBlankVon Schnittstelle geerbte Methoden INode
containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAtOneBasedIndex, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXmlVon Schnittstelle geerbte Methoden IOptionalHeaderHolder
getHeaderOrEmptyString, getOptionalHeader, hasHeader
-
Konstruktordetails
-
FileNode
-
-
Methodendetails
-
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:
childNodes-- 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
-
getHeader
- Gibt zurück:
- the header of the current
IOptionalHeaderHolder.
-
getStoredChildNodes
-
hasHeader
public boolean hasHeader()- Gibt zurück:
- true if the current
IOptionalHeaderHolderhas a header, false otherwise.
-
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-
-
removeChildNodes
public void removeChildNodes()Removes the childINodes from the currentIMutableNode. -
removeHeader
public void removeHeader()Removes the header of currentIFluentMutableOptionalHeaderHolder. -
replaceFirstChildNodeWithGivenHeaderByGivenNode
Replaces the first childINodewith the given header from the currentIMutableNodeby the givenINode.- Parameter:
header-node-
-
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<FileNode>- Gibt zurück:
- the current
AbstractMutableNode.
-