org.opends.server.admin
Class DefaultManagedObject<C extends ConfigurationClient,S extends Configuration>

java.lang.Object
  extended by org.opends.server.admin.DefaultManagedObject<C,S>
Type Parameters:
C - The type of client default managed object configuration.
S - The type of server default managed object configuration.
All Implemented Interfaces:
PropertyProvider

public final class DefaultManagedObject<C extends ConfigurationClient,S extends Configuration>
extends java.lang.Object
implements PropertyProvider

A default managed object which should be created when a parent managed object is created. Default managed objects are associated with a RelationDefinition.


Nested Class Summary
static class DefaultManagedObject.Builder<C extends ConfigurationClient,S extends Configuration>
          An interface for incrementally constructing default managed objects.
 
Field Summary
 
Fields inherited from interface org.opends.server.admin.PropertyProvider
DEFAULT_PROVIDER
 
Method Summary
 ManagedObjectDefinition<C,S> getManagedObjectDefinition()
          Gets the managed object definition associated with this default managed object.
<T> java.util.SortedSet<T>
getPropertyValues(PropertyDefinition<T> pd)
          Gets a mutable copy of the set of property values for the specified property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManagedObjectDefinition

public ManagedObjectDefinition<C,S> getManagedObjectDefinition()
Gets the managed object definition associated with this default managed object.

Returns:
Returns the managed object definition associated with this default managed object.

getPropertyValues

public <T> java.util.SortedSet<T> getPropertyValues(PropertyDefinition<T> pd)
                                         throws java.lang.IllegalArgumentException
Gets a mutable copy of the set of property values for the specified property.

Specified by:
getPropertyValues in interface PropertyProvider
Type Parameters:
T - The type of the property to be retrieved.
Parameters:
pd - The property to be retrieved.
Returns:
Returns a newly allocated set containing a copy of the property's values. An empty set indicates that the property has no values defined and any default behavior is applicable.
Throws:
java.lang.IllegalArgumentException - If the property definition is not associated with this managed object's definition.