<UNIT> : Unit

Java class : leon.info.LyUnit

ROLE

The UNIT element allows to define a unit.

ATTRIBUTES

<!ATTLIST UNIT
	  id ID #IMPLIED
	  javaName NMTOKEN #IMPLIED
	  factor CDATA #IMPLIED
	  offset CDATA #IMPLIED
	  value CDATA #IMPLIED
	  name CDATA #IMPLIED
	  alias CDATA #IMPLIED
	  print ( true | false) "false">
Attribute Mand. Description Default
id no Identifier of the unit.  
javaName no Java class used for the conversions. This class is dominating on the Java class associated with the dictionary of units.  
factor no Conversion factor with the reference unit (1 for the reference unit).  
offset no Conversion offset with the reference unit (0 for the reference unit).  
value no Value of the unit. The value must be a string whose format is free (this label must remain short because it will be displayed with a graphical object). Its content is purely informative. Preserved for upward compatibility.  
name no Name of the unit.  
alias no Short name of the unit.  
print no Boolean indicating if this unit is used for printing. false

ELEMENTS

<!ELEMENT UNIT 
	  (FORMAT?)>
Element Mand. Mult. Description
FORMAT no no Format of the unit.