Class AttributeFormat


public class AttributeFormat extends Object
This class describes the format of individual attributes in an attribute table.
  • Field Details

  • Constructor Details

    • AttributeFormat

      public AttributeFormat(String name, int type, int width, int dec, int flags)
    • AttributeFormat

      public AttributeFormat(String name, Class clz, int width, int dec, int flags)
  • Method Details

    • getName

      public String getName()
    • getWidth

      public int getWidth()
    • getType

      public int getType()
    • getComponentType

      public Class getComponentType()
    • getAttributeClass

      public Class 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

      public Object defaultValue()
    • toString

      public String toString()
      toString in class Object
    • getDefaultFormat

      public static AttributeFormat getDefaultFormat(Class clz, String name)
    • stringifyListHint

      public static String stringifyListHint(Object[] obj)
      Recursively turn list into a string with type hint if required
    • stringifyList

      public static String stringifyList(Object[] obj)
      Recursively turn list into a string
    • stringifyList

      public static void stringifyList(Object[] obj, StringBuilder sb)
      Recursively turn list into a string, save result in to StringBuilder
    • decodeType

      public static void decodeType(Class clz, StringBuilder sb)
      Decode the type of the list object