Package org.openjump.util.metaData
Class Attribute2UnitMap
- java.lang.Object
-
- org.openjump.util.metaData.Attribute2UnitMap
-
public class Attribute2UnitMap extends Object
Meta information object to store the units for the attributes in a layer.- Version:
- $Rev: 856 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>attribute2unitprotected static StringKEY_ATTRIBUTE2UNITkey to be used in the meta information mapprotected booleanuseHTMLLineBreaks
-
Constructor Summary
Constructors Constructor Description Attribute2UnitMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsAttribute(String attributeName)booleancontainsUnit(String unitString)MapgetAttribute2unit()for java2xmlStringgetUnitString(String attributeName)booleanisUseHTMLLineBreaks()tells you if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.Stringput(String attributeName, String unitString)StringremoveAttribute(String attributeName)voidsetAttribute2unit(HashMap<String,String> attribute2unit)for java2xmlvoidsetUseHTMLLineBreaks(boolean useHTMLLineBreaks)Controlls if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.StringtoString()Collectionvalues()
-
-
-
Field Detail
-
useHTMLLineBreaks
protected boolean useHTMLLineBreaks
-
KEY_ATTRIBUTE2UNIT
protected static final String KEY_ATTRIBUTE2UNIT
key to be used in the meta information map- See Also:
- Constant Field Values
-
-
Method Detail
-
clear
public void clear()
-
containsAttribute
public boolean containsAttribute(String attributeName)
-
containsUnit
public boolean containsUnit(String unitString)
-
values
public Collection values()
-
isUseHTMLLineBreaks
public boolean isUseHTMLLineBreaks()
tells you if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.- Returns:
- value of useHTMLLineBreaks
-
setUseHTMLLineBreaks
public void setUseHTMLLineBreaks(boolean useHTMLLineBreaks)
Controlls if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.
-
getAttribute2unit
public Map getAttribute2unit()
for java2xml- Returns:
- attribute2unit map
-
-