uk.me.nxg.unity
Class UnitRepresentation

java.lang.Object
  extended by uk.me.nxg.unity.UnitRepresentation

public class UnitRepresentation
extends Object

A description of the way that a unit is represented in a particular syntax.


Method Summary
 String getAbbreviation()
          Returns a symbolic abbreviation for this unit in this syntax.
 boolean hasNext()
          If there is more than one representation for this unit in this syntax, then this will return the next one.
 boolean isDeprecated()
          Indicates whether this syntax deprecates (but still permits) the use of this unit.
 boolean mayHaveSIPrefixes()
          Indicates whether this unit may be used with SI prefixes.
 UnitRepresentation next()
          Returns true if hasNext() would succeed.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

mayHaveSIPrefixes

public boolean mayHaveSIPrefixes()
Indicates whether this unit may be used with SI prefixes.


isDeprecated

public boolean isDeprecated()
Indicates whether this syntax deprecates (but still permits) the use of this unit.


getAbbreviation

public String getAbbreviation()
Returns a symbolic abbreviation for this unit in this syntax. For example, it might return "m" for Metres.


hasNext

public boolean hasNext()
If there is more than one representation for this unit in this syntax, then this will return the next one.


next

public UnitRepresentation next()
Returns true if hasNext() would succeed.