public class Attribute
extends java.lang.Object
Constructor and Description |
---|
Attribute(java.lang.String name,
java.lang.Class type,
java.lang.String units)
Creates a new attribute.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the attribute name.
|
java.lang.Class |
getType()
Gets the attribute data type.
|
java.lang.String |
getUnits()
Gets the attribute units.
|
java.lang.String |
toString() |
public Attribute(java.lang.String name, java.lang.Class type, java.lang.String units)
name
- the attribute name.type
- the attribute data type.units
- the attribute units or null for no units.public java.lang.String getName()
public java.lang.Class getType()
public java.lang.String getUnits()
public java.lang.String toString()
toString
in class java.lang.Object