|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.nxg.unity.UnitDefinition
public class UnitDefinition
Describes a unit.
A 'unit' is a notion like 'metre', or 'pixel', and is not dependent on a particular syntax. The information here includes a readable name for a quantity (such as 'Metre' or 'Julian year'), a URI uniquely naming it, and its dimensions.
The URI unique name is derived from the QUDT framework of quantities, units and dimensions, though it is not restricted to the set of units and quantities defined there.
The syntax-specific aspects of describing units concern how the
unit is abbreviated, and indeed whether it is permitted or
recommended in a particular syntax, and this is described by the
class UnitRepresentation
.
Method Summary | |
---|---|
String |
description()
Further remarks about this unit, or other comments |
Dimensions |
dimensions()
The dimensions of this unit |
UnitRepresentation |
getRepresentation(String syntax)
Return the syntax-specific information about this unit. |
String |
getURI()
The Kind of this unit, named by a URI |
String |
latexForm()
A LaTeX version of the unit symbol, if there is one defined |
String |
name()
The name of this unit, for example 'metre' |
String |
toString()
Produces a representation of this unit as a string. |
String |
type()
A description of the type of this unit, for example 'length' |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String name()
public String type()
public String description()
public String latexForm()
public Dimensions dimensions()
public String getURI()
public UnitRepresentation getRepresentation(String syntax)
syntax
- a non-null string name for the syntax, which should be one
of the syntaxes of UnitParser
public String toString()
UnitExpr.toString()
.
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |