org.eclipse.stardust.common
Class StringKey

java.lang.Object
  extended by org.eclipse.stardust.common.StringKey
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Direction

public class StringKey
extends Object
implements Serializable, Comparable

Version:
$Revision$
Author:
ubirkemeyer
See Also:
Serialized Form

Constructor Summary
StringKey(String id, String defaultName)
           
 
Method Summary
 int compareTo(Object rhs)
           
 boolean equals(Object obj)
          
 String getId()
           
static StringKey getKey(Class type, String id)
          Translates the stringified ID into the appropriate key instance.
static StringKey getKey(Class type, String id, List valueCache)
          Translates the stringified ID into the appropriate key instance.
static
<T> List<T>
getKeys(Class<T> type)
           
static
<T> List<T>
getKeys(Class<T> type, boolean includeDeprecatedKeys)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringKey

public StringKey(String id,
                 String defaultName)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getId

public String getId()

getName

public String getName()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getKeys

public static <T> List<T> getKeys(Class<T> type)

getKeys

public static <T> List<T> getKeys(Class<T> type,
                                  boolean includeDeprecatedKeys)

getKey

public static StringKey getKey(Class type,
                               String id,
                               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(Class type,
                               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(Object rhs)
Specified by:
compareTo in interface Comparable


Copyright © 2017 Eclipse Stardust. All Rights Reserved.