Class DataAttribute

java.lang.Object
xal.tools.data.DataAttribute

public class DataAttribute extends Object
DataAttribute class
Author:
tap
  • Constructor Details

    • DataAttribute

      public DataAttribute(String aName, Class<?> aType, boolean primaryState, String defaultValue)
      Creates new DataAttribute
    • DataAttribute

      public DataAttribute(String aName, Class<?> aType, boolean primaryState)
      Creates new DataAttribute
    • DataAttribute

      public DataAttribute(DataAdaptor adaptor)
  • Method Details

    • readerWriter

      public DataListener readerWriter()
    • name

      public String name()
    • type

      public Class<?> type()
    • isPrimaryKey

      public boolean isPrimaryKey()
    • getDefaultStringValue

      public String getDefaultStringValue()
      Get the serialized default value to assign for this attribute if a value is not specified.
      Returns:
      the default value for this attribute
    • getDefaultValue

      public Object getDefaultValue()
      Get the deserialized default value to assign for this attribute if a value is not specified.
      Returns:
      the default value for this attribute