Class AbstractIdentifiable

java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
AbstractRevisionable, AclMembers, AclOwner, AnalysisDataset, AnalysisResult, AttributeDefinition, AttributeValue, AuditEntry, CompletedElement, DictionaryDescriptor, Element, ExternalDictionary, GlobalPrivilege, GroupDescriptor, MembershipDescriptor, ModelDescriptor, ObjectIdentity, ProcessDefinitionInfo, ProcessFlowDescriptor, RepositoryItem, RoleDescriptor, ScheduleDescriptor, ScopedPrivilege, SectionDescriptor, Session, SharedWorkspaceEntry, StandardDescriptor, Study, TlfDescriptor, TypeDescriptor, UserDescriptor

public abstract class AbstractIdentifiable extends Object implements Identifiable
An abstract parent class for objects implementing the Identifiable interface.
Since:
1.1
See Also:
  • Constructor Details

    • AbstractIdentifiable

      public AbstractIdentifiable(String typeId, String id)
      Constructor.
      Parameters:
      typeId - the object type of the object, typically set by implementing classes.
      id - the unique identifier for the object instance.
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Identifiable
      Returns the unique identifier for this object instance. In most cases, this value will be UUID.randomUUID() but it is up to specific implementations to decide.
      Specified by:
      getId in interface Identifiable
      Returns:
      the unique identifier for this object instance.
    • getTypeId

      public String getTypeId()
      Description copied from interface: Identifiable
      Returns the identifying type for this object. This type identifier may be defined in the TypeService but that is not a requirement. The type should be sufficiently unique within the system that implementers can identify their own object instances and provide lookup routines when necessary.
      Specified by:
      getTypeId in interface Identifiable
      Returns:
      the identifying type for this object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object