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
Von Klasse geerbte Felder ch.nolix.core.document.node.BaseNode
CLOSED_BRACKET_CODE, COMMA_CODE, DOLLAR_SYMBOL_CODE, OPEN_BRACKET_CODE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungINode
<?> asWithHeader
(String header) boolean
static Node
static Node
static Node
static Node
fromString
(String string) int
hashCode()
boolean
static Node
withChildNode
(boolean childNode) static Node
withChildNode
(double childNode) static Node
withChildNode
(long childNode) static Node
withChildNode
(INode<?> childNode, INode<?>... childNodes) static Node
withChildNode
(String childNode, String... childNodes) static Node
withChildNodes
(Iterable<? extends INode<?>> childNodes) static Node
withHeader
(boolean header) static Node
withHeader
(double header) static Node
withHeader
(long header) static Node
withHeader
(String header) static Node
withHeaderAndChildNode
(String header, boolean childNode) static Node
withHeaderAndChildNode
(String header, double childNode) static Node
withHeaderAndChildNode
(String header, long childNode) static Node
withHeaderAndChildNode
(String header, INode<?> childNode, INode<?>... childNodes) static Node
withHeaderAndChildNode
(String header, String childNode, String... childNodes) static Node
withHeaderAndChildNodes
(String header, Iterable<? extends INode<?>> 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, toXml
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.attributeapi.optionalattributeapi.IOptionalHeaderHolder
getHeaderOrEmptyString, getOptionalHeader, hasHeader
-
Felddetails
-
EMPTY_NODE
-
-
Methodendetails
-
fromEnum
- Parameter:
pEnum
-- Gibt zurück:
- a new
Node
from the given pEnum.
-
fromFile
- Parameter:
filePath
-- Gibt zurück:
- a new
Node
from 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
Node
from the given string. - Löst aus:
UnrepresentingArgumentException
- if the given string does not represent aNode
.
-
withChildNode
- Parameter:
childNode
-- Gibt zurück:
- a new
Node
with the given childNode.
-
withChildNode
- Parameter:
childNode
-- Gibt zurück:
- a new
Node
with the given childNode.
-
withChildNode
- Parameter:
childNode
-childNodes
-- Gibt zurück:
- a new
Node
with the given childNodes.
-
withChildNode
- Parameter:
childNode
-- Gibt zurück:
- a new
Node
with the given childNode.
-
withChildNode
- Parameter:
childNode
-childNodes
-- Gibt zurück:
- a new
Node
with 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
Node
with the given childNodes.
-
withHeader
- Parameter:
header
-- Gibt zurück:
- a new
Node
with the given header.
-
withHeader
- Parameter:
header
-- Gibt zurück:
- a new
Node
with the given header.
-
withHeader
- Parameter:
header
-- Gibt zurück:
- a new
Node
with the given header.
-
withHeader
- Parameter:
header
-- Gibt zurück:
- a new
Node
with 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
Node
with 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
Node
with 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
Node
with the given header and childNodes. - Löst aus:
ArgumentIsNullException
- if the given header is null.InvalidArgumentException
- if the given header is blank.
-
withHeaderAndChildNodes
- Parameter:
header
-childNodes
-- Gibt zurück:
- a new
Node
with the given 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
Node
with 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
Node
with 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.
-
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.
-