de.matthias_burbach.mosaique.core.model
Class DefinitionResolver

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.model.DefinitionResolver

public class DefinitionResolver
extends java.lang.Object

Author:
Matthias Burbach

Constructor Summary
DefinitionResolver()
           
 
Method Summary
 void addTilesDefinitions(TilesDefinitions tilesDefinitions)
          Adds a TilesDefinitions object to the internal list.
 void clear()
          Clears the internal list of added TilesDefinitions objects.
static DefinitionResolver getInstance()
           
 Definition resolve(java.lang.String name)
          Resolves a definition by name from the internal list of TilesDefinitions objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionResolver

public DefinitionResolver()
Method Detail

getInstance

public static DefinitionResolver getInstance()
Returns:
The singleton instance of this class.

clear

public void clear()
Clears the internal list of added TilesDefinitions objects.


addTilesDefinitions

public void addTilesDefinitions(TilesDefinitions tilesDefinitions)
Adds a TilesDefinitions object to the internal list.

Parameters:
tilesDefinitions - The object to add.

resolve

public Definition resolve(java.lang.String name)
Resolves a definition by name from the internal list of TilesDefinitions objects.

Parameters:
name - The name of the definition to resolve.
Returns:
The definition resolved or null if none such definition exists.


Copyright © 2005-2006 . All Rights Reserved.