Package ch.nolix.core.document.node
Klasse Node
- Alle implementierten Schnittstellen:
IOptionalHeaderHolder,INode<Node>,BlanknessRequestable
A
Node is not mutable.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Feldübersicht
FelderVon Klasse geerbte Felder ch.nolix.core.document.node.AbstractNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungINode<?> asWithHeader(String header) static Nodestatic Nodestatic Nodestatic NodefromString(String string) booleanstatic NodewithChildNode(boolean childNode) static NodewithChildNode(double childNode) static NodewithChildNode(long childNode) static NodewithChildNode(INode<?> childNode, INode<?>... childNodes) static NodewithChildNode(String childNode, String... childNodes) static NodewithChildNodes(Iterable<? extends INode<?>> childNodes) static NodewithHeader(boolean header) static NodewithHeader(double header) static NodewithHeader(long header) static NodewithHeader(String header) static NodewithHeaderAndChildNode(String header, boolean childNode) static NodewithHeaderAndChildNode(String header, double childNode) static NodewithHeaderAndChildNode(String header, long childNode) static NodewithHeaderAndChildNode(String header, INode<?> childNode, INode<?>... childNodes) static NodewithHeaderAndChildNode(String header, String childNode, String... childNodes) static NodewithHeaderAndChildNodes(String header, Iterable<? extends INode<?>> 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.attribute.optionalattribute.IOptionalHeaderHolder
getHeaderOrEmptyString, getOptionalHeader, hasHeader
-
Felddetails
-
EMPTY_NODE
-
-
Methodendetails
-
fromEnum
- Parameter:
pEnum-- Gibt zurück:
- a new
Nodefrom the given pEnum.
-
fromFile
- Parameter:
filePath-- Gibt zurück:
- a new
Nodefrom the file with the given filePath. - Löst aus:
InvalidArgumentException- if the given filePath is not valid.UnrepresentingArgumentException- if the file with the given filePath does not represent aNode.
-
fromNode
-
fromString
- Parameter:
string-- Gibt zurück:
- a new
Nodefrom the given string. - Löst aus:
UnrepresentingArgumentException- if the given string does not represent aNode.
-
withChildNode
- Parameter:
childNode-- Gibt zurück:
- a new
Nodewith the given childNode.
-
withChildNode
- Parameter:
childNode-- Gibt zurück:
- a new
Nodewith the given childNode.
-
withChildNode
- Parameter:
childNode-childNodes-- Gibt zurück:
- a new
Nodewith the given childNodes.
-
withChildNode
- Parameter:
childNode-- Gibt zurück:
- a new
Nodewith the given childNode.
-
withChildNode
- Parameter:
childNode-childNodes-- Gibt zurück:
- a new
Nodewith the given childNodes. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withChildNodes
- Parameter:
childNodes-- Gibt zurück:
- a new
Nodewith the given childNodes.
-
withHeader
- Parameter:
header-- Gibt zurück:
- a new
Nodewith the given header.
-
withHeader
- Parameter:
header-- Gibt zurück:
- a new
Nodewith the given header.
-
withHeader
- Parameter:
header-- Gibt zurück:
- a new
Nodewith the given header.
-
withHeader
- Parameter:
header-- Gibt zurück:
- a new
Nodewith the given header. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withHeaderAndChildNode
- Parameter:
header-childNode-- Gibt zurück:
- a new
Nodewith the given childNode. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withHeaderAndChildNode
- Parameter:
header-childNode-- Gibt zurück:
- a new
Nodewith the given childNode. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withHeaderAndChildNode
public static Node withHeaderAndChildNode(String header, INode<?> childNode, INode<?>... childNodes) - Parameter:
header-childNode-childNodes-- Gibt zurück:
- a new
Nodewith the given header and childNodes. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withHeaderAndChildNode
- Parameter:
header-childNode-- Gibt zurück:
- a new
Nodewith the given childNode. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
withHeaderAndChildNode
- Parameter:
header-childNode-childNodes-- Gibt zurück:
- a new
Nodewith the given header and childNodes. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.ArgumentIsNullException- if one of the given childNodes is null.InvalidArgumentException- if one of the given childNodes is blank.
-
withHeaderAndChildNodes
- Parameter:
header-childNodes-- Gibt zurück:
- a new
Nodewith the given childNodes. - Löst aus:
ArgumentIsNullException- if the given header is null.InvalidArgumentException- if the given header is blank.
-
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.
-