public class DefaultOperationRequestAddress extends Object implements OperationRequestAddress
OperationRequestAddress.Node
Constructor and Description |
---|
DefaultOperationRequestAddress() |
DefaultOperationRequestAddress(OperationRequestAddress initial)
Creates a prefix and initializes it to the value of the argument.
|
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.
|
boolean |
equals(Object obj) |
String |
getNodeName()
Returns the node name of the last node.
|
String |
getNodeType()
Returns the node type of the last node.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the prefix is empty.
|
Iterator<OperationRequestAddress.Node> |
iterator() |
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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultOperationRequestAddress()
public DefaultOperationRequestAddress(OperationRequestAddress initial)
initial
- the initial valuepublic void toNodeType(String nodeType)
OperationRequestAddress
toNodeType
in interface OperationRequestAddress
nodeType
- the node type to append to the current addresspublic void toNode(String nodeName)
OperationRequestAddress
toNode
in interface OperationRequestAddress
nodeName
- the node name to append to the current addresspublic void toNode(String nodeType, String nodeName)
OperationRequestAddress
toNode
in interface OperationRequestAddress
nodeType
- the node type of the node to append to the current addressnodeName
- the node name of the node to append to the current addresspublic void appendPath(OperationRequestAddress path)
OperationRequestAddress
appendPath
in interface OperationRequestAddress
path
- the path to append to the current addresspublic String toNodeType()
OperationRequestAddress
toNodeType
in interface OperationRequestAddress
public OperationRequestAddress.Node toParentNode()
OperationRequestAddress
toParentNode
in interface OperationRequestAddress
public void reset()
OperationRequestAddress
reset
in interface OperationRequestAddress
public boolean endsOnType()
OperationRequestAddress
endsOnType
in interface OperationRequestAddress
public boolean isEmpty()
OperationRequestAddress
isEmpty
in interface OperationRequestAddress
public int length()
OperationRequestAddress
length
in interface OperationRequestAddress
public Iterator<OperationRequestAddress.Node> iterator()
iterator
in interface Iterable<OperationRequestAddress.Node>
public String getNodeType()
OperationRequestAddress
getNodeType
in interface OperationRequestAddress
public String getNodeName()
OperationRequestAddress
getNodeName
in interface OperationRequestAddress
Copyright © 2023 JBoss by Red Hat. All rights reserved.