public final class DomainID extends AbstractID implements Serializable, Comparable
A Class whose instances represent a unique identifier for a JCSP.NET domain.
See AbstractID
for a further explanation of domains and the use
of this class.
Constructor and Description |
---|
DomainID(String name)
Public constructor for a
DomainID which takes
the name of the domain as a parameter. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this object with another object and returns whether
the supplied object is equals, smaller or larger.
|
boolean |
equals(Object o)
This compares an object with this object.
|
String |
getDomainName()
Public accessor for the Domain name.
|
AbstractID |
getParentID()
Returns the identifier representing this domain's parent
domain.
|
int |
hashCode()
Returns an
int hash code for the current object. |
String |
toString()
Returns a human readable
String showing this domain
name and any parent domains. |
public DomainID(String name)
DomainID
which takes
the name of the domain as a parameter.name
- The name of the domain.public boolean equals(Object o)
public int hashCode()
Returns an int
hash code for the current object.
This obeys the standard hash code rules.
public int compareTo(Object o)
Compares this object with another object and returns whether the supplied object is equals, smaller or larger.
compareTo
in interface Comparable
o
- The object to compare with this object.public String getDomainName()
Public accessor for the Domain name.
Returns "" if this represents the Null Domain.
String
.public String toString()
Returns a human readable String
showing this domain
name and any parent domains.
public AbstractID getParentID()
Returns the identifier representing this domain's parent domain.
At present this always returns the global domain's ID.
getParentID
in class AbstractID
AbstractID
.Copyright © 1996–2015. All rights reserved.