public class Property
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Property(java.lang.String name, java.util.List values)
Construct a property from name string and associated list of values.
|
Property(java.lang.String name, java.lang.Object val)
Construct a property from name string and associated value.
|
public Property(java.lang.String name, java.util.List values)
name
- Property namevalues
- List of values associated with this propertypublic Property(java.lang.String name, java.lang.Object val)
name
- Property nameval
- Value associated with this propertypublic java.lang.String getName()
public java.util.List getValues()
public void addValue(java.lang.Object value)
value
- new value that is associated with this property