Keel 2.1RC2

org.keel.services.finder
Class ObjectKey

java.lang.Object
  extended byorg.keel.services.finder.ObjectKey
All Implemented Interfaces:
java.lang.Comparable

public class ObjectKey
extends java.lang.Object
implements java.lang.Comparable

Version:
1.0
Author:
@author eliotc

Field Summary
private  java.util.Map additionalAttributes
           
private  java.lang.String alias
           
private  java.lang.String name
           
private  java.lang.Object uniqueId
           
 
Constructor Summary
ObjectKey()
          The default constructor
ObjectKey(java.lang.Object aUniqueId, java.lang.String aName, java.lang.String aAlias)
          The constructor with all standard attributes
 
Method Summary
 int compareTo(java.lang.Object o)
          This method implements the comparable interface.
 boolean equals(java.lang.Object o)
          This method overwrites the default equals method.
 java.lang.String getAlias()
           
 java.lang.Object getAttribute(java.lang.String attribName)
           
 java.util.Set getAttributeNames()
           
 java.lang.String getName()
           
 java.lang.Object getUniqueId()
           
 void setAlias(java.lang.String alias)
           
 void setAttribute(java.lang.String attribName, java.lang.Object attribValue)
           
 void setName(java.lang.String name)
           
 void setUniqueId(java.lang.Object uniqueId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uniqueId

private java.lang.Object uniqueId

name

private java.lang.String name

alias

private java.lang.String alias

additionalAttributes

private java.util.Map additionalAttributes
Constructor Detail

ObjectKey

public ObjectKey()
The default constructor


ObjectKey

public ObjectKey(java.lang.Object aUniqueId,
                 java.lang.String aName,
                 java.lang.String aAlias)
The constructor with all standard attributes

Parameters:
aUniqueId -
aName -
aAlias -
Method Detail

setAttribute

public void setAttribute(java.lang.String attribName,
                         java.lang.Object attribValue)

getAttribute

public java.lang.Object getAttribute(java.lang.String attribName)

getAttributeNames

public java.util.Set getAttributeNames()

getAlias

public java.lang.String getAlias()

getUniqueId

public java.lang.Object getUniqueId()

getName

public java.lang.String getName()

setAlias

public void setAlias(java.lang.String alias)

setName

public void setName(java.lang.String name)

setUniqueId

public void setUniqueId(java.lang.Object uniqueId)

compareTo

public int compareTo(java.lang.Object o)
This method implements the comparable interface. Object ordering is based exclusively on the struct id ordering.

Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
This method overwrites the default equals method. Of course to objects are equal iff they have the same unique id.


Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.