public abstract class AbstractKey extends Object implements Key
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractKey() |
| Modifier and Type | Method and Description |
|---|---|
Key |
addKey(KeyNameMapper keyMapper,
String name,
Key key)
This adds a child Key to the key, in case the mapper cannot map will not add to child keys
and just ignore the added key
|
int |
compareTo(Key o) |
CompositeKey |
getChildrenAsComposite() |
Key |
getKey(int index)
This retrieves a key at a given index
|
Key |
getKey(KeyNameMapper keyMapper,
String name)
This retrieves a specific payload value KeyValue object which contains the Key of the value
|
int |
getKeyCount() |
Key[] |
getKeys()
Returns an array of the child keys
|
Map<String,Key> |
getKeysByName(KeyNameMapper keyMapper)
This retrieves a map of all the child keys stored in this key
|
boolean |
hasChildren()
Returns if the key has children
|
Key |
setKeys(Key[] keys)
Sets directly the children key values
|
Key |
setKeys(KeyNameMapper keyMapper,
Map<String,Key> keyFields)
This sets all the key payload values
|
long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneKey, cloneKey, equals, getValue, hashCode, toStringcomparepublic Key setKeys(KeyNameMapper keyMapper, Map<String,Key> keyFields)
Keypublic Key setKeys(Key[] keys)
Keypublic Key addKey(KeyNameMapper keyMapper, String name, Key key)
Keypublic Key getKey(int index)
Keypublic Key getKey(KeyNameMapper keyMapper, String name)
Keypublic boolean hasChildren()
KeyhasChildren in interface Keypublic Key[] getKeys()
Keypublic int getKeyCount()
getKeyCount in interface Keypublic CompositeKey getChildrenAsComposite()
getChildrenAsComposite in interface Keypublic Map<String,Key> getKeysByName(KeyNameMapper keyMapper)
KeygetKeysByName in interface Keypublic int compareTo(Key o)
compareTo in interface Comparable<Key>Copyright © 2015. All rights reserved.