|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentDefinitions
Interface for managing collections of ComponentDefinition
objects.
The ComponentDefinitions interface provides a pattern for managing ComponentDefinition objects. Implementations will provide a means to append new ComponentDefinitions to the collection, add and retrieve lcale-specific ComponentDefinitions objects, and reset the collections.
Method Summary | |
---|---|
void |
addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap)
Adds new ComponentDefinition objects to the internal collection and resolves inheritance attraibutes. |
void |
addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap,
java.util.Locale locale)
Adds new locale-specific ComponentDefinition objects to the internal collection and resolves inheritance attraibutes. |
java.util.Map |
getBaseDefinitions()
Returns base definitions collection; |
ComponentDefinition |
getDefinition(java.lang.String name)
Returns a ComponentDefinition object that matches the given name. |
ComponentDefinition |
getDefinition(java.lang.String name,
java.util.Locale locale)
Returns a ComponentDefinition object that matches the given name and locale. |
void |
reset()
Clears definitions. |
void |
resolveInheritances()
Resolves configuration inheritance properties. |
void |
resolveInheritances(java.util.Locale locale)
Resolves locale-specific configuration inheritance properties. |
Method Detail |
---|
ComponentDefinition getDefinition(java.lang.String name)
name
- The name of the ComponentDefinition to return.
void addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap) throws NoSuchDefinitionException
defsMap
- The new definitions to add.
NoSuchDefinitionException
- if a ComponentDefinition extends from
one that doesn't exist.void addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap, java.util.Locale locale) throws NoSuchDefinitionException
defsMap
- The new definitions to add.locale
- The locale to add the definitions to.
NoSuchDefinitionException
- if a ComponentDefinition extends from
one that doesn't exist.ComponentDefinition getDefinition(java.lang.String name, java.util.Locale locale)
name
- The name of the ComponentDefinition to return.locale
- The locale to use to resolve the definition.
void resolveInheritances() throws NoSuchDefinitionException
NoSuchDefinitionException
void resolveInheritances(java.util.Locale locale) throws NoSuchDefinitionException
NoSuchDefinitionException
void reset()
java.util.Map getBaseDefinitions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |