Interface Attribute


public interface Attribute
An attribute represents a simple field in an Entity/DB-table or a more complex structure containing multiple fields/sources
  • Field Details

  • Method Details

    • newInstance

      static Attribute newInstance(String id, String name, Class<?> c, Select[] select, String[] aggrs, String mapId, Resource res)
      create a new instance
      Parameters:
      id -
      name -
      c -
      select -
      aggrs -
      mapId -
      res -
      Returns:
    • getId

      String getId()
      Returns:
      the id
    • getName

      String getName()
      Returns:
      the name
    • getLocalizedName

      String getLocalizedName()
      Returns:
      the i18n-name
    • getMapId

      String getMapId()
      in case of mapped values, the method returns the <mapping>-id
      Returns:
      in case of mapped values,
    • getResource

      Resource getResource()
      Returns:
      the Resource used for i18n
    • getSelectLength

      int getSelectLength()
      Returns:
      the number of fields selected from the DB
    • getSelects

      Select[] getSelects()
      Returns:
      the defined selections for the SQL-query
    • getAllowedAggrs

      String[] getAllowedAggrs()
      Returns:
      all allowed aggregation-types
    • getAsDomElement

      Element getAsDomElement()
      Returns:
      the DOM-element from reporting.xml
    • getType

      Class<?> getType()
      Returns:
      the class used for this attribute. May be a simple type, or a ReportingData
    • getTypeString

      String getTypeString()
      Returns:
      the classname of getType()