Package pal.misc
Class Attribute
- java.lang.Object
-
- pal.misc.Attribute
-
public class Attribute extends java.lang.Object
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.Object
getValue()
-
-
-
Field Detail
-
STRING
public static final java.lang.String STRING
- See Also:
- Constant Field Values
-
INTEGER
public static final java.lang.String INTEGER
- See Also:
- Constant Field Values
-
BOOLEAN
public static final java.lang.String BOOLEAN
- See Also:
- Constant Field Values
-
DOUBLE
public static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
-
FLOAT
public static final java.lang.String FLOAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Attribute
public Attribute(java.lang.String name, java.lang.String val, java.lang.String type)
- 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
public Attribute(java.lang.String name, java.lang.Object value)
-
-