org.eclipse.stardust.common
Class StringKey
java.lang.Object
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
StringKey
public StringKey(String id,
String defaultName)
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.