org.opends.server.admin.client.spi
Class PropertySet

java.lang.Object
  extended by org.opends.server.admin.client.spi.PropertySet

public final class PropertySet
extends java.lang.Object

A set of properties. Instances of this class can be used as the core of a managed object implementation.


Constructor Summary
PropertySet()
          Creates a new empty property set.
 
Method Summary
<T> void
addProperty(PropertyDefinition<T> pd, java.util.Collection<T> defaultValues, java.util.Collection<T> activeValues)
          Creates a property with the provided sets of pre-validated default and active values.
<T> Property<T>
getProperty(PropertyDefinition<T> d)
          Get the property associated with the specified property definition.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertySet

public PropertySet()
Creates a new empty property set.

Method Detail

addProperty

public <T> void addProperty(PropertyDefinition<T> pd,
                            java.util.Collection<T> defaultValues,
                            java.util.Collection<T> activeValues)
Creates a property with the provided sets of pre-validated default and active values.

Type Parameters:
T - The type of the property.
Parameters:
pd - The property definition.
defaultValues - The set of default values for the property.
activeValues - The set of active values for the property.

getProperty

public <T> Property<T> getProperty(PropertyDefinition<T> d)
                        throws java.lang.IllegalArgumentException
Get the property associated with the specified property definition.

Type Parameters:
T - The underlying type of the property.
Parameters:
d - The Property definition.
Returns:
Returns the property associated with the specified property definition.
Throws:
java.lang.IllegalArgumentException - If this property provider does not recognise the requested property definition.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object