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, waitforEach, spliteratorpublic DefaultOperationRequestAddress()
public DefaultOperationRequestAddress(OperationRequestAddress initial)
initial - the initial valuepublic void toNodeType(String nodeType)
OperationRequestAddresstoNodeType in interface OperationRequestAddressnodeType - the node type to append to the current addresspublic void toNode(String nodeName)
OperationRequestAddresstoNode in interface OperationRequestAddressnodeName - the node name to append to the current addresspublic void toNode(String nodeType, String nodeName)
OperationRequestAddresstoNode in interface OperationRequestAddressnodeType - 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)
OperationRequestAddressappendPath in interface OperationRequestAddresspath - the path to append to the current addresspublic String toNodeType()
OperationRequestAddresstoNodeType in interface OperationRequestAddresspublic OperationRequestAddress.Node toParentNode()
OperationRequestAddresstoParentNode in interface OperationRequestAddresspublic void reset()
OperationRequestAddressreset in interface OperationRequestAddresspublic boolean endsOnType()
OperationRequestAddressendsOnType in interface OperationRequestAddresspublic boolean isEmpty()
OperationRequestAddressisEmpty in interface OperationRequestAddresspublic int length()
OperationRequestAddresslength in interface OperationRequestAddresspublic Iterator<OperationRequestAddress.Node> iterator()
iterator in interface Iterable<OperationRequestAddress.Node>public String getNodeType()
OperationRequestAddressgetNodeType in interface OperationRequestAddresspublic String getNodeName()
OperationRequestAddressgetNodeName in interface OperationRequestAddressCopyright © 2014 JBoss by Red Hat. All rights reserved.