org.locomotive.directory
Class BeanProperty
java.lang.Object
|
+--org.locomotive.directory.BeanProperty
- public class BeanProperty
- extends java.lang.Object
Represents a property of a bean. A bean can one single value or a list
of values.
- Version:
- $Id: BeanProperty.java,v 1.2 1999/05/05 10:19:31 gunnar Exp $
- Author:
- Gunnar Rønning (gunnar@candleweb.no).
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
BeanProperty
public BeanProperty()
setName
public void setName(java.lang.String name)
- Set the property name.
- Parameters:
name
- The property name.
getName
public java.lang.String getName()
- Get the property name.
- Returns:
- A String with the property name.
setValue
public void setValue(BeanPropertyValue value)
- Set the property value. This method will throw away existing values.
- Parameters:
value
- The value for this property.
addValue
public void addValue(BeanPropertyValue value)
- Add a property value. This method will add a property value
to the list of values for this property.
- Parameters:
value
- The value to add for this property.
getValues
public java.util.Vector getValues()
- Get the list of property values for this property.
- Returns:
- A vector with BeanPropertyValue objects.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object