skrueger
Class AttributeMetaData
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
title
protected Translation title
desc
protected Translation desc
visible
protected boolean visible
unit
protected String unit
colIdx
protected int colIdx
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 Namedesc
- Translation
for an attribute descriptionunit
- 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.
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)