public class NodeId
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
NodeId.IdFactory |
static class |
NodeId.TestIdFactory |
static class |
NodeId.UuidIdFactory |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static NodeId |
forChain(java.io.Serializable... ids) |
static NodeId |
fromString(java.lang.String value) |
NodeId |
getEntityId()
This returns the root entity id for the overall object.
|
java.io.Serializable |
getMemberId() |
NodeId |
getOwner() |
int |
hashCode() |
java.io.Serializable[] |
idChain() |
NodeId |
inheritedMemberId(NodeId member)
Replaces the member's entity id with the entity id of this node id.
|
boolean |
isInherited() |
boolean |
isMember() |
boolean |
isMemberOf(NodeId other)
Returns true if this id is under the provided id.
|
NodeId |
memberId(NodeId child)
Takes a NodeId, which represents the id of an inherited node, and turns it into a member node of this id.
|
NodeId |
newChildId() |
static NodeId |
newId() |
static NodeId |
newId(java.io.Serializable name)
Used for testing only, the default factory will ignore the passed name
|
NodeId |
newParentEntity(java.io.Serializable entityId) |
static void |
setIdFactory(NodeId.IdFactory factory) |
java.lang.String |
toString() |
public static void setIdFactory(NodeId.IdFactory factory)
public static NodeId newId()
public static NodeId newId(java.io.Serializable name)
public NodeId newChildId()
public static NodeId forChain(java.io.Serializable... ids)
public NodeId memberId(NodeId child)
public NodeId inheritedMemberId(NodeId member)
public NodeId newParentEntity(java.io.Serializable entityId)
public java.io.Serializable getMemberId()
public boolean isInherited()
public boolean isMember()
public NodeId getOwner()
public boolean isMemberOf(NodeId other)
public NodeId getEntityId()
public java.io.Serializable[] idChain()
public java.lang.String toString()
toString
in class java.lang.Object
public static NodeId fromString(java.lang.String value)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object