skrueger
Class AttributeMetaData

java.lang.Object
  extended by skrueger.AttributeMetaData

public class AttributeMetaData
extends Object

This class holds meta information about an attribute/column. This information is used by StyledLayerInterface.

Author:
Stefan Alfons Krüger

Field Summary
protected  int colIdx
           
protected  Translation desc
           
protected  Translation title
           
protected  String unit
           
protected  boolean visible
           
 
Constructor Summary
AttributeMetaData(int colIdx, Boolean visible, Translation title, Translation desc, String unit)
          Creates an AttributeMetaData object with the following information
AttributeMetaData(Integer col, String defaultName)
          Creates a new visible AttributeMetaData with default (no) values.
 
Method Summary
 int getColIdx()
           
 Translation getDesc()
           
 Translation getTitle()
           
 String getUnit()
           
 Boolean isVisible()
           
 void setDesc(Translation desc)
           
 void setTitle(Translation title)
           
 void setUnit(String unit)
           
 void setVisible(Boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected Translation title

desc

protected Translation desc

visible

protected boolean visible

unit

protected String unit

colIdx

protected int colIdx
Constructor Detail

AttributeMetaData

public AttributeMetaData(int colIdx,
                         Boolean visible,
                         Translation title,
                         Translation desc,
                         String unit)
Creates an AttributeMetaData object with the following information

Parameters:
colIdx - The column index of this attribute in the underlying table/dbf/etc...
visible - Shall this attribute be displayed or hidden from the user?
title - Translation for Name
desc - Translation for an attribute description
unit - String of the unit that the information is in

AttributeMetaData

public AttributeMetaData(Integer col,
                         String defaultName)
Creates a new visible AttributeMetaData with default (no) values.

Method Detail

isVisible

public Boolean isVisible()

setVisible

public void setVisible(Boolean visible)

getColIdx

public int getColIdx()
Returns:
the index of this attribute in the underlying table/dbf

getTitle

public Translation getTitle()

setTitle

public void setTitle(Translation title)

getDesc

public Translation getDesc()

setDesc

public void setDesc(Translation desc)

getUnit

public String getUnit()

setUnit

public void setUnit(String unit)