UrlDefinitionsFactory and
ResolvingLocaleUrlDefinitionDAO.@Deprecated public class DefinitionsImpl extends Object implements Definitions
| Constructor and Description |
|---|
DefinitionsImpl()
Deprecated.
Creates a new instance of DefinitionsImpl.
|
DefinitionsImpl(Map<String,Definition> baseDefinitions,
Map<Locale,Map<String,Definition>> localeSpecificDefinitions)
Deprecated.
Creates a new instance of DefinitionsImpl to be used as a wrapper.
|
| 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.
|
protected Definition |
getDefinitionByAttribute(Attribute attr,
Locale locale)
Deprecated.
Searches for a definition specified as an attribute.
|
protected void |
overload(Definition parent,
Definition child)
Deprecated.
|
void |
reset()
Deprecated.
Clears definitions.
|
protected void |
resolveInheritance(Definition definition,
Locale locale,
Set<String> alreadyResolvedDefinitions)
Deprecated.
Resolve locale-specific inheritance.
|
void |
resolveInheritances()
Deprecated.
Resolve extended instances.
|
void |
resolveInheritances(Locale locale)
Deprecated.
Resolve locale-specific extended instances.
|
public DefinitionsImpl()
public DefinitionsImpl(Map<String,Definition> baseDefinitions, Map<Locale,Map<String,Definition>> localeSpecificDefinitions)
baseDefinitions - The base definitions to use.localeSpecificDefinitions - Maps a locale to a map of definitions.public Definition getDefinition(String name)
getDefinition in interface Definitionsname - The name of the Definition to return.public void addDefinitions(Map<String,Definition> defsMap)
addDefinitions in interface DefinitionsdefsMap - The new definitions to add.NoSuchDefinitionException - If something goes wrong during
addition.public void addDefinitions(Map<String,Definition> defsMap, Locale locale)
addDefinitions in interface DefinitionsdefsMap - The new definitions to add.locale - The locale to add the definitions to.NoSuchDefinitionException - If something goes wrong during
inheritance resolution.public Definition getDefinition(String name, Locale locale)
getDefinition in interface Definitionsname - The name of the Definition to return.locale - The locale to use to resolve the definition.public void resolveInheritances()
resolveInheritances in interface DefinitionsNoSuchDefinitionException - If a parent definition is not found.public void resolveInheritances(Locale locale)
resolveInheritances in interface Definitionslocale - The locale to use.NoSuchDefinitionException - If a parent definition is not found.public void reset()
reset in interface Definitionspublic Map<String,Definition> getBaseDefinitions()
getBaseDefinitions in interface Definitionsprotected Definition getDefinitionByAttribute(Attribute attr, Locale locale)
attr - The attribute to use.locale - The locale to search into.null.protected void resolveInheritance(Definition definition, Locale locale, Set<String> alreadyResolvedDefinitions)
definition - The definition to resolvelocale - The locale to use.alreadyResolvedDefinitions - The set of the definitions that have
been already resolved.NoSuchDefinitionException - If an inheritance can not be solved.@Deprecated protected void overload(Definition parent, Definition child)
BasicAttributeContext.inherit(org.apache.tiles.AttributeContext).parent - The parent definition.child - The child that will be overloaded.Copyright © 2025. All rights reserved.