com.apelon.dts.client.namespace
Class Authority

java.lang.Object
  extended by com.apelon.dts.client.namespace.Authority
All Implemented Interfaces:
Cloneable

public class Authority
extends Object
implements Cloneable

Authority defines the namespace authority that oversees the content of that namespace.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

Since:
DTS 3.0.0
Version:
DTS 3.0.0
Author:
Apelon, Inc.

Constructor Summary
Authority(String description, int id)
          Authority constructor.
 
Method Summary
 Object clone()
          Clone this Authority object.
 boolean equals(Object o)
          Tests if two Authority objects are equal.
 String getDescription()
          Gets the Authority description.
 int getId()
          Gets the Authority ID.
 int hashCode()
          Returns a hash code for this Authority.
 String toString()
          Returns description of the content authority.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Authority

public Authority(String description,
                 int id)
Authority constructor.

Parameters:
description - description of Authority
id - integer Authority ID
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Clone this Authority object.

Overrides:
clone in class Object
Returns:
a clone of this Authority.
Throws:
CloneNotSupportedException - if unable to create a clone

getDescription

public String getDescription()
Gets the Authority description.

Returns:
Authority description

getId

public int getId()
Gets the Authority ID.

Returns:
Authority ID

toString

public String toString()
Returns description of the content authority.

Overrides:
toString in class Object
Returns:
description

equals

public boolean equals(Object o)
Tests if two Authority objects are equal. They are equal if the following are true:

Overrides:
equals in class Object
Parameters:
o - object to compare with
Returns:
true if the two authorities are equal; false otherwise

hashCode

public int hashCode()
Returns a hash code for this Authority.

Overrides:
hashCode in class Object
Returns:
a hash code value for this Authority.


Copyright © 2011. All Rights Reserved.