public interface OperationRequestAddress extends Iterable<OperationRequestAddress.Node>
Modifier and Type | Interface and Description |
---|---|
static interface |
OperationRequestAddress.Node |
Modifier and Type | Method and Description |
---|---|
void |
appendPath(OperationRequestAddress path)
Appends the path to the current address.
|
boolean |
endsOnType()
Checks whether the prefix ends on a node type or a node name.
|
String |
getNodeName()
Returns the node name of the last node.
|
String |
getNodeType()
Returns the node type of the last node.
|
boolean |
isEmpty()
Checks whether the prefix is empty.
|
int |
length()
Returns the number of nodes (more specifically node types, if the address
ends on a type, it means the last node is not complete, but it will be
counted as a node by this method).
|
void |
reset()
Resets the prefix, i.e.
|
void |
toNode(String nodeName)
Appends the node name to the current address.
|
void |
toNode(String nodeType,
String nodeName)
Appends the node to the current address.
|
String |
toNodeType()
Sets the current prefix to the node type of the current node,
i.e.
|
void |
toNodeType(String nodeType)
Appends the node type to the current address.
|
OperationRequestAddress.Node |
toParentNode()
Removes the last node in the prefix, i.e.
|
forEach, iterator, spliterator
void toNodeType(String nodeType)
nodeType
- the node type to append to the current addressvoid toNode(String nodeName)
nodeName
- the node name to append to the current addressvoid toNode(String nodeType, String nodeName)
nodeType
- the node type of the node to append to the current addressnodeName
- the node name of the node to append to the current addressvoid appendPath(OperationRequestAddress path)
path
- the path to append to the current addressString toNodeType()
OperationRequestAddress.Node toParentNode()
void reset()
boolean endsOnType()
boolean isEmpty()
String getNodeType()
String getNodeName()
int length()
Copyright © 2023 JBoss by Red Hat. All rights reserved.