public class Attribute2UnitMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
attribute2unit |
protected static java.lang.String |
KEY_ATTRIBUTE2UNIT
key to be used in the meta information map
|
protected boolean |
useHTMLLineBreaks |
Constructor and Description |
---|
Attribute2UnitMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsAttribute(java.lang.String attributeName) |
boolean |
containsUnit(java.lang.String unitString) |
java.util.HashMap |
getAttribute2unit()
for java2xml
|
java.lang.String |
getUnitString(java.lang.String attributeName) |
boolean |
isUseHTMLLineBreaks()
tells you if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.
|
java.lang.String |
put(java.lang.String attributeName,
java.lang.String unitString) |
java.lang.String |
removeAttribute(java.lang.String attributeName) |
void |
setAttribute2unit(java.util.HashMap<java.lang.String,java.lang.String> attribute2unit)
for java2xml
|
void |
setUseHTMLLineBreaks(boolean useHTMLLineBreaks)
Controlls if @link{Attribute2UnitMap#toString()} uses <br> or just backslash+n to begin a new line.
|
java.lang.String |
toString() |
java.util.Collection |
values() |
protected java.util.HashMap<java.lang.String,java.lang.String> attribute2unit
protected boolean useHTMLLineBreaks
protected static final java.lang.String KEY_ATTRIBUTE2UNIT
public void clear()
public boolean containsAttribute(java.lang.String attributeName)
public boolean containsUnit(java.lang.String unitString)
public java.lang.String getUnitString(java.lang.String attributeName)
public java.lang.String put(java.lang.String attributeName, java.lang.String unitString)
public java.lang.String removeAttribute(java.lang.String attributeName)
public java.util.Collection values()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUseHTMLLineBreaks()
public void setUseHTMLLineBreaks(boolean useHTMLLineBreaks)
public java.util.HashMap getAttribute2unit()
public void setAttribute2unit(java.util.HashMap<java.lang.String,java.lang.String> attribute2unit)
attribute2unit
- map