Package ch.nolix.core.document.node
Klasse FileNode
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<FileNode>
,IOptionalHeaderHolder
,IMutableNode<FileNode>
,INode<FileNode>
,BlanknessRequestable
A
FileNode
is a specification that is stored in a file.- Version:
- 2017-07-14
- Autor:
- Silvan Wyss
-
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 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
.addChildNodes
(Iterable<N> childNodes) Adds the given childNodes to the currentIMutableNode
.addChildNodesFromStrings
(Iterable<String> strings) Adds the childINode
s from the given strings the currentIMutableNode
.protected FileNode
INode
<?> asWithHeader
(String header) boolean
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<? extends 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<?> node) 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
-
Konstruktordetails
-
FileNode
Creates a newFileNode
with the given file path. Creates a new file if there does not exist a file with the given file path. Access and changes the file if there exists a file with the given file path.- Parameter:
filePath
-
-
-
Methodendetails
-
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:
childNodes
-- 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
-
getHeader
- Gibt zurück:
- the header of the current
IOptionalHeaderHolder
.
-
getStoredChildNodes
-
hashCode
public int hashCode() -
hasHeader
public boolean hasHeader()- Gibt zurück:
- true if the current
IOptionalHeaderHolder
has a header.
-
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
-
-
removeChildNodes
public void removeChildNodes()Removes the childINode
s from the currentIMutableNode
. -
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
-node
-
-
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<FileNode>
- Gibt zurück:
- the current
BaseMutableNode
.
-