|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.id.impl.KeyImpl
public class KeyImpl
standard implementation of ID Keys.
| Constructor Summary | |
|---|---|
KeyImpl(java.util.Map<java.lang.String,java.lang.String> keyValues)
create a key with the given name-value-mapping. |
|
KeyImpl(java.lang.String key)
create simple unnamed key. |
|
KeyImpl(java.lang.String name,
java.lang.String keyValue)
create a simple named key. |
|
| Method Summary | |
|---|---|
static KeyImpl |
ensureImpl(Key someKey)
convert other key implementations to the default KeyImpl, if necessary. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKey()
Get the value of a simple key. |
java.lang.String |
getKey(java.lang.String name)
Get the key for the given name. |
java.lang.String |
getKeyName()
Get the name of a simple key. |
java.util.Iterator<java.lang.String> |
getKeyNames()
Get the names of this key. |
java.util.Map<java.lang.String,java.lang.String> |
getKeyValues()
create a map representation of this key. |
int |
hashCode()
|
boolean |
isCompositeKey()
Checks if this is a simple or composite key. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyImpl(java.util.Map<java.lang.String,java.lang.String> keyValues)
keyValues - names and key values to use
public KeyImpl(java.lang.String name,
java.lang.String keyValue)
name - key namekeyValue - key value.public KeyImpl(java.lang.String key)
key - the key value| Method Detail |
|---|
public static KeyImpl ensureImpl(Key someKey)
someKey - key in deliberate implementation
public java.lang.String getKey()
getKey in interface KeyKey.getKey()public java.lang.String getKeyName()
getKeyName in interface KeyKey.getKeyName()public boolean isCompositeKey()
isCompositeKey in interface KeyKey.isCompositeKey()public java.util.Iterator<java.lang.String> getKeyNames()
getKeyNames in interface KeyKey.getKeyNames()public java.lang.String getKey(java.lang.String name)
getKey in interface Keyname - a key name
Key.getKey(java.lang.String)public java.util.Map<java.lang.String,java.lang.String> getKeyValues()
getKeyValues in interface KeyKey.getKeyValues()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||