Package ca.spatial.table
Class AttributeFormat
java.lang.Object
ca.spatial.table.AttributeFormat
This class describes the format of individual attributes in an
attribute table.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeFormat(String name, int type, int width, int dec, int flags)
AttributeFormat(String name, Class clz, int width, int dec, int flags)
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
decodeType(Class clz, StringBuilder sb)
Decode the type of the list objectint
getDec()
static AttributeFormat
getDefaultFormat(Class clz, String name)
int
getFlags()
getName()
int
int
getType()
int
getWidth()
boolean
hasFlag(int option)
boolean
boolean
boolean
void
setCellEditable(boolean mode)
void
setStorageWidth(int width)
static String
stringifyList(Object[] obj)
Recursively turn list into a stringstatic void
stringifyList(Object[] obj, StringBuilder sb)
Recursively turn list into a string, save result in to StringBuilderstatic String
stringifyListHint(Object[] obj)
Recursively turn list into a string with type hint if requiredtoString()
-
Field Details
-
STRING
public static final int STRING- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER- See Also:
- Constant Field Values
-
NUMBER
public static final int NUMBER- See Also:
- Constant Field Values
-
SHAPE
public static final int SHAPE- See Also:
- Constant Field Values
-
EXTENT
public static final int EXTENT- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN- See Also:
- Constant Field Values
-
LIST
public static final int LIST- See Also:
- Constant Field Values
-
CUSTOM
public static final int CUSTOM- See Also:
- Constant Field Values
-
EDITING_ALLOWED
public static final int EDITING_ALLOWED- See Also:
- Constant Field Values
-
INDEXED
public static final int INDEXED- See Also:
- Constant Field Values
-
DYNAMIC
public static final int DYNAMIC- See Also:
- Constant Field Values
-
NATIVE_BINARY
public static final int NATIVE_BINARY- See Also:
- Constant Field Values
-
TYPES
-
-
Constructor Details
-
AttributeFormat
-
AttributeFormat
-
-
Method Details
-
getName
-
getWidth
public int getWidth() -
getType
public int getType() -
getComponentType
-
getAttributeClass
-
getDec
public int getDec() -
setCellEditable
public void setCellEditable(boolean mode) -
isCellEditable
public boolean isCellEditable() -
hasNativeIndex
public boolean hasNativeIndex() -
getFlags
public int getFlags() -
hasFlag
public boolean hasFlag(int option) -
isDynamic
public boolean isDynamic() -
getStorageWidth
public int getStorageWidth() -
setStorageWidth
public void setStorageWidth(int width) -
defaultValue
-
toString
-
getDefaultFormat
-
stringifyListHint
Recursively turn list into a string with type hint if required -
stringifyList
Recursively turn list into a string -
stringifyList
Recursively turn list into a string, save result in to StringBuilder -
decodeType
Decode the type of the list object
-