|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.model.datatype.DataType
javax.rad.model.datatype.BinaryDataType
public class BinaryDataType
A BinaryDataType is the data type class of a
binary ColumnDefinition.
| Field Summary | |
|---|---|
static int |
TYPE_IDENTIFIER
the type identifier. |
| Constructor Summary | |
|---|---|
BinaryDataType()
Constructs a BinaryDataType with the maximum Integer size. |
|
BinaryDataType(ICellEditor pCellEditor)
Constructs a BinaryDataType with the maximum Integer size and the given cell editor. |
|
BinaryDataType(int pSize)
Constructs a BinaryDataType with the given Integer size. |
|
BinaryDataType(int pSize,
ICellEditor pCellEditor)
Constructs a BinaryDataType with the given Integer size and the given cell editor. |
|
| Method Summary | |
|---|---|
BinaryDataType |
clone()
Clone an IDataType. |
int |
compareTo(Object pObject1,
Object pObject2)
Compares IDataType objects in the rules of the Comparable interface.
Implementations need to take care about to null objects are equal. |
Object |
convertAndCheckToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of the class
which is handled by IDataType. |
String |
convertToString(Object pObject)
Converts the oObject into a String which represents the
Object. |
Object |
convertToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of
the class which is handled by IDataType. |
static byte[] |
getContent(Object pBinaryObject)
Get's the content to the given object. |
Class |
getTypeClass()
Returns the class of the Object's handled by IDataType. |
int |
getTypeIdentifier()
Gets the data type identifier. |
Object |
prepareValue(Object pObject)
Prepares the given value. This is used for preparing values for client-side usage and occurs before the client side receives the value for the first time. If there is nothing to be done, the same object as passed in needs to be returned. |
| Methods inherited from class javax.rad.model.datatype.DataType |
|---|
getCellEditor, getCellRenderer, getSize, hashCode, setCellEditor, setCellRenderer, setSize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_IDENTIFIER
| Constructor Detail |
|---|
public BinaryDataType()
BinaryDataType with the maximum Integer size.
public BinaryDataType(int pSize)
BinaryDataType with the given Integer size.
pSize - the sizepublic BinaryDataType(ICellEditor pCellEditor)
BinaryDataType with the maximum Integer size and the given cell editor.
pCellEditor - the cell editor
public BinaryDataType(int pSize,
ICellEditor pCellEditor)
BinaryDataType with the given Integer size and the given cell editor.
pSize - the sizepCellEditor - the cell editor| Method Detail |
|---|
public int getTypeIdentifier()
public Class getTypeClass()
Object's handled by IDataType.
Object's handled by IDataType.
public Object convertAndCheckToTypeClass(Object pObject)
throws ModelException
Object which is an instance of the class
which is handled by IDataType. The resulting Object is
also checked against the type attributes like size, precision,...
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the Object is outside the limits of the
DataType attributespublic String convertToString(Object pObject)
String which represents the
Object.
pObject - the source Object to convert
String representation of the source Object
public Object convertToTypeClass(Object pObject)
throws ModelException
Object which is an instance of
the class which is handled by IDataType.
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the class/type of oObject is not supported
public int compareTo(Object pObject1,
Object pObject2)
IDataType objects in the rules of the Comparable interface.
Implementations need to take care about to null objects are equal.
compareTo in interface IDataTypecompareTo in class DataTypepObject1 - a getTypeClass() object of one IDataTypepObject2 - a getTypeClass() object of one IDataType
public BinaryDataType clone()
IDataType.
clone in interface IDataTypeclone in class DataTypeIDataTypeObject.clone()
public Object prepareValue(Object pObject)
throws ModelException
prepareValue in interface IDataTypeprepareValue in class DataTypepObject - the object to prepare.
ModelException - if the preparation failed.
public static final byte[] getContent(Object pBinaryObject)
throws IOException
pBinaryObject - the object
IOException - if it fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||