org.objectweb.jorm.metainfo.api
Interface ScalarField
- MetaObject, PrimitiveElement, Serializable, TypedElement
public interface ScalarField
A ScalarField describes corresponds to a hidden field of a ClassObject or
a Generic Class. For Classes, it is typically used to represent PNames. For
Generic Class, it can also be used for the index attributes of the
Generic Class.
- X. Spengler
getNullValue
public String getNullValue()
get the null value for this field.
- the string representation of the null value or null if there is no null value for this field.
getNullValueObject
public Object getNullValueObject()
get the null value for this field
- an object representing the null value according to the field
type. For instance a null value for a byte scalar field is stored into a
java.lang.Byte object.
hasNullValue
public boolean hasNullValue()
Test if the null value exists for this field.
- true if the null value exist for this field.
setNullValue
public void setNullValue(String value)
Set the null value for this field.
value
- a string representation of the nullvalue