Package ch.nolix.core.document.node
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.- Version:
- 2017-07-14
- Autor:
- Silvan Wyss
-
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 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 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
-
Konstruktordetails
-
FileNode
Creates a newFileNodewith 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 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.
-
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.
-