public final class DomainID extends AbstractID implements java.io.Serializable, java.lang.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(java.lang.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(java.lang.Object o)
Compares this object with another object and returns whether
the supplied object is equals, smaller or larger.
|
boolean |
equals(java.lang.Object o)
This compares an object with this object.
|
java.lang.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. |
java.lang.String |
toString()
Returns a human readable
String showing this domain
name and any parent domains. |
public DomainID(java.lang.String name)
DomainID which takes
the name of the domain as a parameter.name - The name of the domain.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an object to compare with this object.true iff the supplied object is a non-null DomainID which represents the same Domain.public int hashCode()
Returns an int hash code for the current object.
This obeys the standard hash code rules.
hashCode in class java.lang.Objectint hash code.public int compareTo(java.lang.Object o)
Compares this object with another object and returns whether the supplied object is equals, smaller or larger.
compareTo in interface java.lang.Comparableo - The object to compare with this object.public java.lang.String getDomainName()
Public accessor for the Domain name.
Returns "" if this represents the Null Domain.
String.public java.lang.String toString()
Returns a human readable String showing this domain
name and any parent domains.
toString in class java.lang.ObjectString.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 AbstractIDAbstractID.Copyright © 1996–2019. All rights reserved.