public class TypedAssociation extends Association
Purpose: Generic association object. This can be used to map hashtable/map containers where the key and value are non-typed primitives.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class |
keyType |
protected java.lang.Class |
valueType |
key, value
Constructor and Description |
---|
TypedAssociation()
Default constructor.
|
TypedAssociation(java.lang.Object key,
java.lang.Object value)
PUBLIC:
Create an association.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getKeyType()
PUBLIC:
Return the class of the key.
|
java.lang.Class |
getValueType()
PUBLIC:
Return the class of the value.
|
void |
postBuild(DescriptorEvent event)
INTERNAL:
Handler for the descriptor post build event.
|
void |
setKeyType(java.lang.Class keyType)
PUBLIC:
Set the class of the key.
|
void |
setValueType(java.lang.Class valueType)
PUBLIC:
Set the class of the value.
|
getKey, getValue, setKey, setValue
protected java.lang.Class keyType
protected java.lang.Class valueType
public TypedAssociation()
public TypedAssociation(java.lang.Object key, java.lang.Object value)
public java.lang.Class getKeyType()
public java.lang.Class getValueType()
public void postBuild(DescriptorEvent event)
public void setKeyType(java.lang.Class keyType)
public void setValueType(java.lang.Class valueType)