Package pal.misc
Class Attribute
java.lang.Object
pal.misc.Attribute
An immutable attribute has a name and value.
A convenience constructor for conversion from
string to types Boolean, Integer, Double, Float is available.
- Version:
- $Id: Attribute.java,v 1.1 2001/11/21 22:17:07 alexi Exp $
- Author:
- Alexei Drummond
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
STRING
- See Also:
-
INTEGER
- See Also:
-
BOOLEAN
- See Also:
-
DOUBLE
- See Also:
-
FLOAT
- See Also:
-
-
Constructor Details
-
Attribute
- Parameters:
name
- the name of the attribute.val
- the value as a stringtype
- a string description of the type the value is. One of 'boolean', 'integer', 'double', 'float', 'string'
-
Attribute
-
-
Method Details
-
getName
-
getValue
-