public static class AttMagic.A
extends Object
implements Serializable
Modifier and Type | Method and Description |
---|---|
int |
getAttType() |
String |
getDataType() |
String |
getDbCol() |
String |
getFormula() |
String |
getFromName() |
String |
getFullDbCol() |
String |
getFullPDbCol() |
String |
getLocalizedName(Locale l) |
Map<Locale,String> |
getLocalizedNames() |
String |
getMapping() |
String |
getMasterName() |
String |
getName() |
String |
getObid() |
String |
getPDbCol() |
int |
getPrecision() |
String |
getUnit() |
boolean |
hasLabel() |
boolean |
isAlias() |
boolean |
isCalculated() |
boolean |
isDecode() |
boolean |
isGlobal() |
boolean |
isOotb() |
boolean |
isStandard() |
String |
toString()
print info of Attribute
|
boolean |
validateUnit(Object newUnit,
boolean throwException)
ensures that the newUnit matches the internal unit
|
static boolean |
validateUnit(String cunit,
Object newUnit,
boolean throwException)
ensure two units are of the same type (mass, length etc.)
|
public String toString()
toString
in class Object
public boolean validateUnit(Object newUnit, boolean throwException) throws WTException
newUnit
- throwException
- WTException
public static boolean validateUnit(String cunit, Object newUnit, boolean throwException) throws WTException
cunit
- base unit stringnewUnit
- a new unit valuethrowException
- flag if an exception should be thrown on mismatchWTException
- thrown only if requested.public String getName()
public String getMasterName()
public Map<Locale,String> getLocalizedNames()
public String getLocalizedName(Locale l)
public boolean isDecode()
public String getDataType()
public int getAttType()
public boolean isOotb()
public boolean isGlobal()
public boolean isStandard()
public boolean isCalculated()
public boolean isAlias()
public boolean hasLabel()
public String getUnit()
public String getObid()
public String getDbCol()
public String getPDbCol()
public String getFullDbCol()
public String getFullPDbCol()
public int getPrecision()
public String getFromName()
public String getFormula()
public String getMapping()