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).

Constructor Summary
BeanProperty()
           
 
Method Summary
 void addValue(BeanPropertyValue value)
          Add a property value.
 java.lang.String getName()
          Get the property name.
 java.util.Vector getValues()
          Get the list of property values for this property.
 void setName(java.lang.String name)
          Set the property name.
 void setValue(BeanPropertyValue value)
          Set the property value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanProperty

public BeanProperty()
Method Detail

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