org.opends.server.admin
Class PropertyDefinitionUsageBuilder

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

public final class PropertyDefinitionUsageBuilder
extends java.lang.Object

A property definition visitor which can be used to generate syntax usage information.


Constructor Summary
PropertyDefinitionUsageBuilder(boolean isDetailed)
          Creates a new property usage builder.
 
Method Summary
 Message getUsage(PropertyDefinition<?> pd)
          Generates the usage information for the provided property definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDefinitionUsageBuilder

public PropertyDefinitionUsageBuilder(boolean isDetailed)
Creates a new property usage builder.

Parameters:
isDetailed - Indicates whether or not the generated usage should contain detailed information such as constraints.
Method Detail

getUsage

public Message getUsage(PropertyDefinition<?> pd)
Generates the usage information for the provided property definition.

Parameters:
pd - The property definitions.
Returns:
Returns the usage information for the provided property definition.