public class MultiplexMappingDefinition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName
The attribute name.
|
private java.lang.Class |
baseClass
The class.
|
private java.util.HashMap |
forwardMappings
The forward mappings.
|
private java.util.HashMap |
reverseMappings
The reverse mappings.
|
Constructor and Description |
---|
MultiplexMappingDefinition(java.lang.Class baseClass,
java.lang.String attributeName,
MultiplexMappingEntry[] entries)
Creates a new mapping definition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Returns the attribute name.
|
java.lang.Class |
getBaseClass()
Returns the class.
|
MultiplexMappingEntry |
getEntryForClass(java.lang.String clazz)
Returns a mapping entry for a class.
|
MultiplexMappingEntry |
getEntryForType(java.lang.String type)
Returns a mapping entry for a type.
|
private java.lang.Class baseClass
private java.lang.String attributeName
private java.util.HashMap forwardMappings
private java.util.HashMap reverseMappings
public MultiplexMappingDefinition(java.lang.Class baseClass, java.lang.String attributeName, MultiplexMappingEntry[] entries)
baseClass
- the class.attributeName
- the attribute name.entries
- the entries.public java.lang.String getAttributeName()
public java.lang.Class getBaseClass()
public MultiplexMappingEntry getEntryForType(java.lang.String type)
type
- the type.public MultiplexMappingEntry getEntryForClass(java.lang.String clazz)
clazz
- the class.