|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.definition.ComponentDefinitionsImpl
public class ComponentDefinitionsImpl
Constructor Summary | |
---|---|
ComponentDefinitionsImpl()
Creates a new instance of ComponentDefinitionsImpl |
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. |
protected void |
overload(ComponentDefinition parent,
ComponentDefinition child)
Overloads a child definition with a given parent. |
void |
reset()
Clears definitions. |
void |
resolveAttributeDependencies()
|
void |
resolveAttributeDependencies(java.util.Locale locale)
|
protected void |
resolveInheritance(ComponentDefinition definition)
Resolve inheritance. |
protected void |
resolveInheritance(ComponentDefinition definition,
java.util.Locale locale)
Resolve locale-specific inheritance. |
void |
resolveInheritances()
Resolve extended instances. |
void |
resolveInheritances(java.util.Locale locale)
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 ComponentDefinitionsImpl()
Method Detail |
---|
public ComponentDefinition getDefinition(java.lang.String name)
getDefinition
in interface ComponentDefinitions
name
- The name of the ComponentDefinition to return.
public void addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap) throws NoSuchDefinitionException
addDefinitions
in interface ComponentDefinitions
defsMap
- The new definitions to add.
NoSuchDefinitionException
public void addDefinitions(java.util.Map<java.lang.String,ComponentDefinition> defsMap, java.util.Locale locale) throws NoSuchDefinitionException
addDefinitions
in interface ComponentDefinitions
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.public ComponentDefinition getDefinition(java.lang.String name, java.util.Locale locale)
getDefinition
in interface ComponentDefinitions
name
- The name of the ComponentDefinition to return.locale
- The locale to use to resolve the definition.
public void resolveInheritances() throws NoSuchDefinitionException
resolveInheritances
in interface ComponentDefinitions
NoSuchDefinitionException
public void resolveInheritances(java.util.Locale locale) throws NoSuchDefinitionException
resolveInheritances
in interface ComponentDefinitions
NoSuchDefinitionException
public void reset()
reset
in interface ComponentDefinitions
public java.util.Map getBaseDefinitions()
getBaseDefinitions
in interface ComponentDefinitions
public void resolveAttributeDependencies()
public void resolveAttributeDependencies(java.util.Locale locale)
protected void resolveInheritance(ComponentDefinition definition) throws NoSuchDefinitionException
NoSuchDefinitionException
- If an inheritance can not be solved.protected void resolveInheritance(ComponentDefinition definition, java.util.Locale locale) throws NoSuchDefinitionException
NoSuchDefinitionException
- If an inheritance can not be solved.protected void overload(ComponentDefinition parent, ComponentDefinition child)
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 |