|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.definition.DefinitionsImpl
UrlDefinitionsFactory and
ResolvingLocaleUrlDefinitionDAO.
@Deprecated public class DefinitionsImpl
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. Use BasicAttributeContext.inherit(org.apache.tiles.AttributeContext). |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 Definitions
protected 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||