com.apelon.dts.client.common
Class DTSObject

java.lang.Object
  extended by com.apelon.dts.client.common.DTSObject
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AssociationType, ContentVersion, DTSPropertyType, DTSRoleType, Kind, PropertiedObject, QualifierType

public abstract class DTSObject
extends Object
implements Cloneable

A DTSObject is a named object in a Namespace, uniquely identified within the namespace by an integer ID and a code.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

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

Constructor Summary
  DTSObject()
           
protected DTSObject(String name, int id, String code, int namespaceId)
          Contructs a DTSObject which has a name, code, ID, and namespace ID.
 
Method Summary
 boolean equals(Object o)
          Tests if two DTSObjects are equal.
 String getCode()
          Gets the code of the DTSObject.
 int getId()
          Gets the ID of the DTSObject.
 String getName()
          Gets the name of the DTSObject.
 int getNamespaceId()
          Gets the namespace ID for this DTS object.
 int hashCode()
          Returns a hashcode for this DTS object.
 void setCode(String code)
          Sets the code of the DTSObject.
 void setId(int id)
          Sets the ID of the DTSObject.
 void setName(String name)
          Sets the name of the DTSObject.
 void setNamespaceId(int newNamespaceId)
          Sets a new namespace ID for this DTSObject.
 String toString()
          Gets the name of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DTSObject

public DTSObject()

DTSObject

protected DTSObject(String name,
                    int id,
                    String code,
                    int namespaceId)
Contructs a DTSObject which has a name, code, ID, and namespace ID.

Parameters:
name - the name of the DTSObject
id - the ID string of the DTSObject
code - the code of the DTSObject
namespaceId - the numerical ID of the DTSObject's namespace
Method Detail

getName

public String getName()
Gets the name of the DTSObject.

Returns:
name of the DTSObject.

setName

public void setName(String name)
Sets the name of the DTSObject.

Parameters:
name - the new name of the DTSObject.

getId

public int getId()
Gets the ID of the DTSObject.

Returns:
the ID of the DTSObject.

setId

public void setId(int id)
Sets the ID of the DTSObject.

Parameters:
id - the new ID of the DTSObject.

getCode

public String getCode()
Gets the code of the DTSObject.

Returns:
the code of the DTSObject.

setCode

public void setCode(String code)
Sets the code of the DTSObject.

Parameters:
code - the new code of the DTSObject.

setNamespaceId

public void setNamespaceId(int newNamespaceId)
Sets a new namespace ID for this DTSObject.

Parameters:
newNamespaceId - new namespace ID

getNamespaceId

public int getNamespaceId()
Gets the namespace ID for this DTS object.

Returns:
the namespace ID for this DTS object

equals

public boolean equals(Object o)
Tests if two DTSObjects are equal. Two DTSObjects are equal if the following are true:

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

hashCode

public int hashCode()
Returns a hashcode for this DTS object.

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

toString

public String toString()
Gets the name of this object.

Overrides:
toString in class Object
Returns:
The name of this object.


Copyright © 2011. All Rights Reserved.