|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompilationContext
This interface is used during the compilation of a template.
Method Summary | |
---|---|
void |
applyStyleSheet(java.io.Reader styleSheetInformation)
This method will be called by the compilation mechanism if its recognizes style sheet information in the template. |
Component |
getComponent(java.lang.String componentName)
Gets the Component with the specified contraint name |
PropertyManager |
getPropertyManager(java.lang.Class componentClazz)
Returns a PropertyManager for a given Component class. |
java.lang.Object |
getStateAttribute(java.lang.Object key)
Returns any state object that has been prevously set into the compilation context, or null if the state key cannot be found. |
boolean |
isComponentPropertiesSet()
Returns true if the Component properties have already been set for the template |
boolean |
isLoudErrorsUsed()
This returns true if "loud" error messages are to be used during template compilation. |
boolean |
isPropertiesUsed()
Returns true if the Component properties will be set from the template tag attributes. |
void |
setComponentPropertiesSet(boolean flag)
Called to set whether the Component properties have been set for the given template. |
void |
setPropertiesUsed(boolean flag)
Sets whether the Component properties will be set from the template tag attributes. |
void |
setStateAttribute(java.lang.Object key,
java.lang.Object value)
Called to set some "arbitary" state attribute. |
Method Detail |
---|
Component getComponent(java.lang.String componentName)
PropertyManager getPropertyManager(java.lang.Class componentClazz)
boolean isComponentPropertiesSet()
void setComponentPropertiesSet(boolean flag)
boolean isPropertiesUsed()
void setPropertiesUsed(boolean flag)
boolean isLoudErrorsUsed()
void setStateAttribute(java.lang.Object key, java.lang.Object value)
key
- - the key of the statevalue
- - the value of the statejava.lang.Object getStateAttribute(java.lang.Object key)
key
- - the key of the state
void applyStyleSheet(java.io.Reader styleSheetInformation) throws java.lang.Exception
The implementor can then apply the style sheet information in any way it sees fit.
styleSheetInformation
- - a reader contain the style sheet information
StyleSheetParseException
- because it could be a problem
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |