org.eclipse.stardust.common
Class StringKey
java.lang.Object
org.eclipse.stardust.common.StringKey
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
- Direct Known Subclasses:
- Direction
public class StringKey
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable
- Version:
- $Revision$
- Author:
- ubirkemeyer
- See Also:
- Serialized Form
|
Constructor Summary |
StringKey(java.lang.String id,
java.lang.String defaultName)
|
|
Method Summary |
int |
compareTo(java.lang.Object rhs)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
|
static StringKey |
getKey(java.lang.Class type,
java.lang.String id)
Translates the stringified ID into the appropriate key instance. |
static StringKey |
getKey(java.lang.Class type,
java.lang.String id,
java.util.List valueCache)
Translates the stringified ID into the appropriate key instance. |
static java.util.List |
getKeys(java.lang.Class type)
|
java.lang.String |
getName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
StringKey
public StringKey(java.lang.String id,
java.lang.String defaultName)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getId
public java.lang.String getId()
getName
public java.lang.String getName()
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getKeys
public static java.util.List getKeys(java.lang.Class type)
getKey
public static StringKey getKey(java.lang.Class type,
java.lang.String id,
java.util.List valueCache)
- Translates the stringified ID into the appropriate key instance.
- Parameters:
id - The stringified ID to be resolved.
- Returns:
- The resolved key,
null if no key could be resolved.
getKey
public static StringKey getKey(java.lang.Class type,
java.lang.String id)
- Translates the stringified ID into the appropriate key instance.
- Parameters:
id - The stringified ID to be resolved.
- Returns:
- The resolved key,
null if no key could be resolved.
compareTo
public int compareTo(java.lang.Object rhs)
- Specified by:
compareTo in interface java.lang.Comparable
Copyright © 2013 SunGard CSA LLC. All Rights Reserved.