com.sas.hls.common
Class AbstractIdentifiable

java.lang.Object
  extended by com.sas.hls.common.AbstractIdentifiable
All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
ScheduleDescriptor, WorkItem

public abstract class AbstractIdentifiable
extends Object
implements Identifiable

An abstract parent class for objects implementing the Identifiable interface.

See Also:
Serialized Form

Constructor Summary
AbstractIdentifiable()
          Zero-arg constructor
AbstractIdentifiable(String objectType)
          Constructor
AbstractIdentifiable(String objectType, String identifier)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getIdentifier()
          Get the identifier of this object.
 String getObjectType()
          Get the object type of this item.
 int hashCode()
           
 void setIdentifier(String identifier)
          Set the identifier of this object.
 void setObjectType(String objectType)
          Set the type of object this represents.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIdentifiable

public AbstractIdentifiable()
Zero-arg constructor


AbstractIdentifiable

public AbstractIdentifiable(String objectType)
Constructor

Parameters:
objectType - the type of object being created.

AbstractIdentifiable

public AbstractIdentifiable(String objectType,
                            String identifier)
Constructor

Parameters:
objectType - the type of object being created.
identifier - the identifier of the object being created.
Method Detail

getIdentifier

public String getIdentifier()
Description copied from interface: Identifiable
Get the identifier of this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier of this object

getObjectType

public String getObjectType()
Description copied from interface: Identifiable
Get the object type of this item.

Specified by:
getObjectType in interface Identifiable
Returns:
the object type of this item.

setIdentifier

public void setIdentifier(String identifier)
Set the identifier of this object.

Parameters:
identifier -

setObjectType

public void setObjectType(String objectType)
Set the type of object this represents.

Parameters:
objectType -

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA