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