de.matthias_burbach.mosaique.core.model
Class Definition

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.model.AbstractFileItem
      extended byde.matthias_burbach.mosaique.core.model.Definition

public class Definition
extends AbstractFileItem

Is a Tiles definition as defined in a Tiles definitions file.

Author:
Matthias Burbach

Constructor Summary
Definition(Context context)
           
 
Method Summary
 java.lang.String getExtendz()
           
 java.lang.String getInheritedPage()
           
 Jsp getJsp()
           
 int getLevel()
           
 java.lang.String getName()
           
 java.lang.String getPage()
           
 Definition getParent()
           
 java.util.List getPuts()
           
 TilesContext getTilesContext()
           
 void setExtendz(java.lang.String extendz)
           
 void setName(java.lang.String name)
           
 void setPage(java.lang.String page)
           
 void setPuts(java.util.List puts)
           
 
Methods inherited from class de.matthias_burbach.mosaique.core.model.AbstractFileItem
getBegin, getContext, getDefinitionResolver, getEnd, getFilePath, getJspResolver, getMessage, getPrimarySearchText, getSecondarySearchText, isErroneous, setBegin, setContext, setEnd, setErroneous, setFilePath, setMessage, setPrimarySearchText, setSecondarySearchText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Definition

public Definition(Context context)
Parameters:
context - The context to use by this instance.
Method Detail

getExtendz

public java.lang.String getExtendz()
Returns:
The name of the definition this definition is derived from.

setExtendz

public void setExtendz(java.lang.String extendz)
Parameters:
extendz - The name of the definition this definition is derived from.

getPage

public java.lang.String getPage()
Returns:
The relative path of the JSP this definition defines to be associated with. Is null if this definition inherits the page attribute from a base definition.

setPage

public void setPage(java.lang.String page)
Parameters:
page - The relative path of the JSP this definition defines to be associated with. Is null if this definition inherits the page attribute from a base definition.

getJsp

public Jsp getJsp()
Returns:
The JSP resolved from the self-defined or inherited page attribute.

getName

public java.lang.String getName()
Returns:
The identifying name of this definition.

setName

public void setName(java.lang.String name)
Parameters:
name - The identifying name of this definition.

getParent

public Definition getParent()
Returns:
The parent definition this definition extends. Is null if there is no parent.

getPuts

public java.util.List getPuts()
Returns:
The put attributes of type Put this definition directly defines (excluding inherited ones).

setPuts

public void setPuts(java.util.List puts)
Parameters:
puts - The put attributes of type Put this definition directly defines (excluding inherited ones).

getInheritedPage

public java.lang.String getInheritedPage()
Returns:
The self-defined or inherited page attribute.

getTilesContext

public TilesContext getTilesContext()
Returns:
The Tiles context of this definition defined by its own attributes plus the ones inherited from the extension hierarchy.

getLevel

public int getLevel()
Returns:
The level of this definition in its extension hierarchy. Is 0 if this definition is a root definition. Is n if this definition has n parents.


Copyright © 2005-2006 . All Rights Reserved.