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 |
|---|---|
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() |
void |
reset()
Resets the prefix, i.e.
|
void |
toNode(String nodeName)
Appends the node name to the prefix.
|
void |
toNode(String nodeType,
String nodeName)
Appends the node to the prefix.
|
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 prefix.
|
OperationRequestAddress.Node |
toParentNode()
Removes the last node in the prefix, i.e.
|
public DefaultOperationRequestAddress()
public DefaultOperationRequestAddress(OperationRequestAddress initial)
initial - the initial valuepublic void toNodeType(String nodeType)
OperationRequestAddresstoNodeType in interface OperationRequestAddressnodeType - the node type to append to the prefix.public void toNode(String nodeName)
OperationRequestAddresstoNode in interface OperationRequestAddressnodeName - the node name to append to the prefix.public void toNode(String nodeType, String nodeName)
OperationRequestAddresstoNode in interface OperationRequestAddressnodeType - the node type of the node to append to the prefixnodeName - the node name of the node to append to the prefixpublic 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 Iterator<OperationRequestAddress.Node> iterator()
iterator in interface Iterable<OperationRequestAddress.Node>public String getNodeType()
OperationRequestAddressgetNodeType in interface OperationRequestAddresspublic String getNodeName()
OperationRequestAddressgetNodeName in interface OperationRequestAddressCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.