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

java.lang.Objectorg.apache.tiles.definition.MockDefinitions
public class MockDefinitions
| Constructor Summary | |
|---|---|
| MockDefinitions()Creates a new instance of MockDefinitions. | |
| 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() | 
|  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. | 
| static int | getInstanceCount()Hokey way to verify that this class was created. | 
|  void | reset()Clears definitions. | 
|  void | resolveInheritances() | 
|  void | resolveInheritances(Locale locale) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MockDefinitions()
| Method Detail | 
|---|
public static int getInstanceCount()
public Definition getDefinition(String name)
getDefinition in interface Definitionsname - The name of the Definition to return.
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.
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 addDefinitions(Map<String,Definition> defsMap)
addDefinitions in interface DefinitionsdefsMap - The new definitions to add.
public void resolveInheritances()
                         throws NoSuchDefinitionException
resolveInheritances in interface DefinitionsNoSuchDefinitionException
public void resolveInheritances(Locale locale)
                         throws NoSuchDefinitionException
resolveInheritances in interface DefinitionsNoSuchDefinitionExceptionpublic void reset()
reset in interface Definitionspublic Map<String,Definition> getBaseDefinitions()
getBaseDefinitions in interface Definitions| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||