public abstract class OvfLogEventHandler<T> extends Object
Constructor and Description |
---|
OvfLogEventHandler(T entity) |
Modifier and Type | Method and Description |
---|---|
void |
addValueForAlias(String alias,
String value)
Adds an alias and a value to the entity that is managed by the event handler values
|
List<String> |
getAliases() |
Map<String,String> |
getAliasesValuesMap()
Gets a map of aliases to values.
|
protected abstract Map<String,TypeConverter> |
getTypeConvertersMap()
Returns a type convert maps (the key is a field name, the value is a type converter)
|
void |
resetDefaults(T defaultEntity)
Resets the export only fields back to default values.
|
public OvfLogEventHandler(T entity)
protected abstract Map<String,TypeConverter> getTypeConvertersMap()
public Map<String,String> getAliasesValuesMap()
public void addValueForAlias(String alias, String value)
alias
- new alias to addvalue
- new value to addaccumulatingMap
- map that accumulates the new aliases/valuespublic void resetDefaults(T defaultEntity)
defaultEntity
- an entity that is provided in order to get the default values fromuseDefaultFromDefaultEntity
- flag that determines if to get default values from the default entity or from the annotationCopyright © 2012. All Rights Reserved.