DefinitionsImpl
.@Deprecated public interface Definitions
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.
Modifier and Type | Method and Description |
---|---|
void |
addDefinitions(Map<String,Definition> defsMap)
Deprecated.
Adds new Definition objects to the internal collection and
resolves inheritance attraibutes.
|
void |
addDefinitions(Map<String,Definition> defsMap,
Locale locale)
Deprecated.
Adds new locale-specific Definition objects to the internal
collection and resolves inheritance attraibutes.
|
Map<String,Definition> |
getBaseDefinitions()
Deprecated.
Returns base definitions collection.
|
Definition |
getDefinition(String name)
Deprecated.
Returns a Definition object that matches the given name.
|
Definition |
getDefinition(String name,
Locale locale)
Deprecated.
Returns a Definition object that matches the given name and locale.
|
void |
reset()
Deprecated.
Clears definitions.
|
void |
resolveInheritances()
Deprecated.
Resolves configuration inheritance properties.
|
void |
resolveInheritances(Locale locale)
Deprecated.
Resolves locale-specific configuration inheritance properties.
|
Definition getDefinition(String name)
name
- The name of the Definition to return.void addDefinitions(Map<String,Definition> defsMap)
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)
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()
NoSuchDefinitionException
- If parent definitions are not found.void resolveInheritances(Locale locale)
locale
- The locale object to use.NoSuchDefinitionException
- If parent definitions are not found.void reset()
Map<String,Definition> getBaseDefinitions()
Copyright © 2016. All rights reserved.