public abstract class AbstractDataProfile extends java.lang.Object implements DataProfile
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
Constructor and Description |
---|
AbstractDataProfile(java.lang.String name,
java.lang.Class dataClass) |
AbstractDataProfile(java.lang.String id,
java.lang.String name,
java.lang.Class dataClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerce(DataType dataType,
java.lang.Object value,
Tags tags) |
java.lang.Object |
createData(java.lang.Object data,
Tags tags) |
protected java.lang.Object |
doCoerce(DataType dataType,
java.lang.Object value,
Tags tags) |
protected java.lang.Object |
doCreateData(java.lang.Object data,
Tags tags) |
java.lang.Class |
getDataClass() |
java.lang.String |
getID() |
java.lang.String |
getName() |
public AbstractDataProfile(java.lang.String id, java.lang.String name, java.lang.Class dataClass)
public AbstractDataProfile(java.lang.String name, java.lang.Class dataClass)
public java.lang.String getID()
getID
in interface DataProfile
public java.lang.String getName()
getName
in interface DataProfile
public java.lang.Class getDataClass()
getDataClass
in interface DataProfile
public java.lang.Object createData(java.lang.Object data, Tags tags)
createData
in interface DataProfile
protected java.lang.Object doCreateData(java.lang.Object data, Tags tags)
public java.lang.Object coerce(DataType dataType, java.lang.Object value, Tags tags) throws CoercionException
coerce
in interface DataProfile
CoercionException
protected java.lang.Object doCoerce(DataType dataType, java.lang.Object value, Tags tags) throws CoercionException
CoercionException