com.ibm.designer.domino.xsp.registry
Class RegistryContentsUtil

java.lang.Object
  extended by com.ibm.designer.domino.xsp.registry.RegistryContentsUtil

public class RegistryContentsUtil
extends java.lang.Object

A simple FacesRegistry utility that looks up FacesRegistry information for complex types such as simple actions and data sources.

See Also:
FacesRegistry, FacesDefinition

Constructor Summary
RegistryContentsUtil()
           
 
Method Summary
static FacesComplexDefinition getConverterBaseDefinition(FacesRegistry registry)
          Returns the base complex definition for a converter.
static java.util.List<FacesDefinition> getConverters(FacesRegistry registry)
          Returns all of the converters identified in the FacesRegistry.
static FacesComplexDefinition getDataSourceBaseDefinition(FacesRegistry registry)
          Returns the base complex definition for a data source.
static java.util.List<FacesDefinition> getDataSources(FacesRegistry registry)
          Returns all of the data sources identified in the FacesRegistry.
static java.util.List<FacesDefinition> getDocumentDataSources(FacesRegistry registry)
          Returns all of the data sources (that may be used as document datasources) identified in the FacesRegistry.
static java.util.List<com.ibm.designer.domino.xsp.internal.editors.complex.ComplexPropertyCategory> getSimpleActionCategories(FacesRegistry registry)
          Returns the categories of all of the simple actions in the provided registry
static java.util.List<FacesDefinition> getSimpleActions(FacesRegistry registry)
          Returns all of the simple actions identified in the FacesRegistry.
static FacesComplexDefinition getSimpleActionsBaseDefinition(FacesRegistry registry)
          Returns the base complex definition for a simple action.
static FacesComplexDefinition getValidatorBaseDefinition(FacesRegistry registry)
          Returns the base complex definition for a validator.
static java.util.List<FacesDefinition> getValidators(FacesRegistry registry)
          Returns all of the validators identified in the FacesRegistry.
static java.util.List<FacesDefinition> getViewPanelDataSources(FacesRegistry registry)
          Returns all of the data sources (that may be used by the viewPanel control) identified in the FacesRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryContentsUtil

public RegistryContentsUtil()
Method Detail

getSimpleActionsBaseDefinition

public static FacesComplexDefinition getSimpleActionsBaseDefinition(FacesRegistry registry)
Returns the base complex definition for a simple action. All simple actions can be retrieved from this definition. The list of simple actions available in the registry can be discovered by calling com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry).

Parameters:
registry - the current FacesRegistry
Returns:
a complex definition for simple actions
See Also:
com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry), getSimpleActions(FacesRegistry)

getDataSourceBaseDefinition

public static FacesComplexDefinition getDataSourceBaseDefinition(FacesRegistry registry)
Returns the base complex definition for a data source. All data sources can be retrieved from this definition. The list of data sources available in the registry can be discovered by calling com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry).

Parameters:
registry - the current FacesRegistry
Returns:
a complex definition for data sources
See Also:
com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry), getDataSources(FacesRegistry)

getConverterBaseDefinition

public static FacesComplexDefinition getConverterBaseDefinition(FacesRegistry registry)
Returns the base complex definition for a converter. All converters can be retrieved from this definition. The list of converters available in the registry can be discovered by calling com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry).

Parameters:
registry - the current FacesRegistry
Returns:
a complex definition for converters
See Also:
com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry), getConverters(FacesRegistry)

getValidatorBaseDefinition

public static FacesComplexDefinition getValidatorBaseDefinition(FacesRegistry registry)
Returns the base complex definition for a validator. All validators can be retrieved from this definition. The list of validators available in the registry can be discovered by calling com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry).

Parameters:
registry - the current FacesRegistry
Returns:
a complex definition for validators
See Also:
com.ibm.xsp.registry.RegistryUtil.getSubstitutableDefinitions(FacesDefinition, FacesRegistry), getValidators(FacesRegistry)

getSimpleActionCategories

public static java.util.List<com.ibm.designer.domino.xsp.internal.editors.complex.ComplexPropertyCategory> getSimpleActionCategories(FacesRegistry registry)
Returns the categories of all of the simple actions in the provided registry

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of descriptors of the categories of simple actions

getDataSources

public static java.util.List<FacesDefinition> getDataSources(FacesRegistry registry)
Returns all of the data sources identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of data sources discovered in the provided registry, may be null

getViewPanelDataSources

public static java.util.List<FacesDefinition> getViewPanelDataSources(FacesRegistry registry)
Returns all of the data sources (that may be used by the viewPanel control) identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of data sources (that may be used by the viewPanel control) discovered in the provided registry, may be null

getDocumentDataSources

public static java.util.List<FacesDefinition> getDocumentDataSources(FacesRegistry registry)
Returns all of the data sources (that may be used as document datasources) identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of data sources (that may be used as document datasources) discovered in the provided registry, may be null

getConverters

public static java.util.List<FacesDefinition> getConverters(FacesRegistry registry)
Returns all of the converters identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of converters discovered in the provided registry, may be null

getValidators

public static java.util.List<FacesDefinition> getValidators(FacesRegistry registry)
Returns all of the validators identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of validators discovered in the provided registry, may be null

getSimpleActions

public static java.util.List<FacesDefinition> getSimpleActions(FacesRegistry registry)
Returns all of the simple actions identified in the FacesRegistry.

Parameters:
registry - an instance of FacesRegistry
Returns:
a list of simple actions discovered in the provided registry, may be null