org.opends.server.admin
Class ManagedObjectDefinitionResource

java.lang.Object
  extended by org.opends.server.admin.ManagedObjectDefinitionResource

public final class ManagedObjectDefinitionResource
extends java.lang.Object

A class for retrieving non-internationalized resource properties associated with a managed object definition.

Resource properties are not available for the TopCfgDefn.


Method Summary
static ManagedObjectDefinitionResource createForProfile(java.lang.String profile)
          Creates a new resource instance for the named profile.
 java.lang.String getString(AbstractManagedObjectDefinition<?,?> d, java.lang.String key)
          Get the resource value associated with the specified key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createForProfile

public static ManagedObjectDefinitionResource createForProfile(java.lang.String profile)
Creates a new resource instance for the named profile.

Parameters:
profile - The name of the profile.
Returns:
Returns the resource instance for the named profile.

getString

public java.lang.String getString(AbstractManagedObjectDefinition<?,?> d,
                                  java.lang.String key)
                           throws java.util.MissingResourceException,
                                  java.lang.UnsupportedOperationException
Get the resource value associated with the specified key.

Parameters:
d - The managed object definition.
key - The resource key.
Returns:
Returns the resource value associated with the specified key.
Throws:
java.util.MissingResourceException - If the key was not found.
java.lang.UnsupportedOperationException - If the provided managed object definition was the TopCfgDefn.