public class GraphName
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static GraphName |
empty() |
boolean |
equals(java.lang.Object obj) |
GraphName |
getBasename() |
GraphName |
getParent() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isGlobal()
Is this a /global/name?
If node node1 in the global / namespace accesses the resource /bar, that
will resolve to the name /bar.
If node node2 in the /wg/ namespace accesses the resource /foo, that will
resolve to the name /foo.
If node node3 in the /wg/ namespace accesses the resource /foo/bar, that
will resolve to the name /foo/bar.
|
boolean |
isPrivate()
Is this a ~private/name?
If node node1 in the global / namespace accesses the resource ~bar, that
will resolve to the name /node1/bar.
|
boolean |
isRelative()
Is this a relative/name?
If node node1 in the global / namespace accesses the resource ~bar,
that will resolve to the name /node1/bar.
|
boolean |
isRoot() |
GraphName |
join(GraphName other)
Join this
GraphName with another. |
GraphName |
join(java.lang.String other) |
static GraphName |
newAnonymous()
Creates an anonymous
GraphName . |
static GraphName |
of(java.lang.String name)
|
static GraphName |
root() |
GraphName |
toGlobal()
Convert name to a global name representation.
|
GraphName |
toRelative()
Convert name to a relative name representation.
|
java.lang.String |
toString() |
public static GraphName newAnonymous()
GraphName
.GraphName
suitable for creating an anonymous nodepublic static GraphName of(java.lang.String name)
public boolean isGlobal()
true
if this name is a global name, false
otherwisepublic boolean isRoot()
true
if this GraphName
represents the root
namespace, false
otherwisepublic boolean isEmpty()
true
if this GraphName
is empty, false
otherwisepublic boolean isPrivate()
true
if the name is a private name, false
otherwisepublic boolean isRelative()
public GraphName getParent()
public GraphName toRelative()
GraphName
public GraphName toGlobal()
GraphName
public GraphName join(java.lang.String other)
join(GraphName)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object