Package ch.nolix.core.document.node
Klasse BaseMutableNode<MN extends BaseMutableNode<MN>>
java.lang.Object
ch.nolix.core.document.node.BaseNode<MN>
ch.nolix.core.document.node.BaseMutableNode<MN>
- Alle implementierten Schnittstellen:
IFluentMutableOptionalHeaderHolder<MN>,IOptionalHeaderHolder,IMutableNode<MN>,INode<MN>,BlanknessRequestable
- Bekannte direkte Unterklassen:
FileNode,MutableNode
public abstract class BaseMutableNode<MN extends BaseMutableNode<MN>>
extends BaseNode<MN>
implements IMutableNode<MN>
-
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
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal MNaddPostfixToHeader(String postfix) Adds the given postfix at the end of the header of the currentIMutableNodeif the currentIMutableNodehas a header.final MNaddPrefixToHeader(String prefix) Adds the given prefix at the begin of the header of the currentIMutableNodeif the currentIMutableNodehas a header.protected abstract MNfinal voidresetFromFile(String filePath) Resets the currentIMutableNodefrom the file with the given file path.final voidresetFromString(String string) Resets the currentIMutableNodefrom the given string.final MNsetChildNodes(Iterable<? extends INode<?>> childNodes) Resets the childINodes of the currentIMutableNodewith the given childNodes.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, toXmlVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.BlanknessRequestable
isBlankVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.fluentmutableoptionalattributeapi.IFluentMutableOptionalHeaderHolder
removeHeader, setHeaderVon Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.IMutableNode
addChildNode, addChildNodeFromString, addChildNodes, addChildNodesFromStrings, removeAndGetStoredFirstChildNodeThat, removeChildNodes, removeFirstChildNodeThat, removeFirstChildNodeWithHeader, replaceFirstChildNodeWithGivenHeaderByGivenNode, resetVon Schnittstelle geerbte Methoden ch.nolix.coreapi.documentapi.nodeapi.INode
asWithHeader, containsChildNodes, containsChildNodeThat, containsChildNodeWithHeader, containsOneChildNode, getChildNodeCount, getChildNodesHeaders, getOptionalStoredFirstChildNodeThat, getSingleChildNodeAsBoolean, getSingleChildNodeAsDouble, getSingleChildNodeAsInt, getSingleChildNodeHeader, getStoredChildNodeAt1BasedIndex, getStoredChildNodes, getStoredChildNodesThat, getStoredChildNodesWithHeader, getStoredFirstChildNode, getStoredFirstChildNodeThat, getStoredFirstChildNodeWithHeader, getStoredSingleChildNode, toBoolean, toDouble, toFormattedString, toInt, toXmlVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.optionalattributeapi.IOptionalHeaderHolder
getHeader, getHeaderOrEmptyString, getOptionalHeader, hasHeader, hasHeader
-
Konstruktordetails
-
BaseMutableNode
public BaseMutableNode()
-
-
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<MN extends BaseMutableNode<MN>>- 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<MN extends BaseMutableNode<MN>>- Parameter:
prefix-- Gibt zurück:
- the current
IMutableNode.
-
resetFromFile
Resets the currentIMutableNodefrom the file with the given file path.- Angegeben von:
resetFromFilein SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>- Parameter:
filePath-
-
resetFromString
Resets the currentIMutableNodefrom the given string.- Angegeben von:
resetFromStringin SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>- Parameter:
string-
-
setChildNodes
Resets the childINodes of the currentIMutableNodewith the given childNodes.- Angegeben von:
setChildNodesin SchnittstelleIMutableNode<MN extends BaseMutableNode<MN>>- Parameter:
childNodes-- Gibt zurück:
- the current
IMutableNode.
-
asConcrete
- Gibt zurück:
- the current
BaseMutableNode.
-