Package ch.nolix.core.document.node
Klasse AbstractMutableNode<N extends AbstractMutableNode<N>>
java.lang.Object
ch.nolix.core.document.node.AbstractNode<N>
ch.nolix.core.document.node.AbstractMutableNode<N>
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<N>,IOptionalHeaderHolder,IMutableNode<N>,INode<N>,Resettable,BlanknessRequestable
- Bekannte direkte Unterklassen:
FileNode,MutableNode
public abstract class AbstractMutableNode<N extends AbstractMutableNode<N>>
extends AbstractNode<N>
implements IMutableNode<N>
-
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 TypMethodeBeschreibungfinal NaddPostfixToHeader(String postfix) Adds the given postfix at the end of the header of the currentIMutableNodeif the currentIMutableNodehas a header.final NaddPrefixToHeader(String prefix) Adds the given prefix at the begin of the header of the currentIMutableNodeif the currentIMutableNodehas a header.protected abstract Nfinal voidresetFromFile(String filePath) Resets the currentIMutableNodefrom the file with the given file path.final voidresetFromNode(INode<?> node) Resets the currentIMutableNodefrom the given node.final voidresetFromString(String string) Resets the currentIMutableNodefrom the given string.final NsetChildNodes(Iterable<? extends INode<?>> childNodes) Resets the childINodes of the currentIMutableNodewith the given childNodes.Von 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.attribute.fluentmutableoptionalattribute.IFluentMutableOptionalHeaderHolder
removeHeader, setHeaderVon Schnittstelle geerbte Methoden ch.nolix.coreapi.document.node.IMutableNode
addChildNode, addChildNodeFromString, addChildNodes, addChildNodesFromStrings, removeAndGetStoredFirstChildNodeThat, removeChildNodes, removeFirstChildNodeThat, removeFirstChildNodeWithHeader, replaceFirstChildNodeWithGivenHeaderByGivenNodeVon Schnittstelle geerbte Methoden ch.nolix.coreapi.document.node.INode
asWithHeader, containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAtOneBasedIndex, getStoredChildNodes, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXmlVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attribute.optionalattribute.IOptionalHeaderHolder
getHeader, getHeaderOrEmptyString, getOptionalHeader, hasHeader, hasHeaderVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.statemutation.Resettable
reset
-
Konstruktordetails
-
AbstractMutableNode
public AbstractMutableNode()
-
-
Methodendetails
-
addPostfixToHeader
Adds the given postfix at the end of the header of the currentIMutableNodeif the currentIMutableNodehas a header. Sets the given postfix as the header of the currentIMutableNodeif the currentIMutableNodedoes not have a header.- Angegeben von:
addPostfixToHeaderin SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
postfix-- Gibt zurück:
- the current
IMutableNode.
-
addPrefixToHeader
Adds the given prefix at the begin of the header of the currentIMutableNodeif the currentIMutableNodehas a header. Sets the given prefix as the header of the currentIMutableNodeif the currentIMutableNodedoes not have a header.- Angegeben von:
addPrefixToHeaderin SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
prefix-- Gibt zurück:
- the current
IMutableNode.
-
resetFromFile
Resets the currentIMutableNodefrom the file with the given file path.- Angegeben von:
resetFromFilein SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
filePath-
-
resetFromNode
Resets the currentIMutableNodefrom the given node.- Angegeben von:
resetFromNodein SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
node-
-
resetFromString
Resets the currentIMutableNodefrom the given string.- Angegeben von:
resetFromStringin SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
string-
-
setChildNodes
Resets the childINodes of the currentIMutableNodewith the given childNodes.- Angegeben von:
setChildNodesin SchnittstelleIMutableNode<N extends AbstractMutableNode<N>>- Parameter:
childNodes-- Gibt zurück:
- the current
IMutableNode.
-
asConcrete
- Gibt zurück:
- the current
AbstractMutableNode.
-