|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.jelly.impl.TagScript
TagScript
abstract base class for a
script that evaluates a custom tag.
Field Summary | |
protected java.util.Map |
attributes
The attribute expressions that are created |
protected Tag |
tag
the tag to be evaluated |
Constructor Summary | |
TagScript()
|
|
TagScript(Tag tag)
|
Method Summary | |
void |
addAttribute(java.lang.String name,
Expression expression)
Add an initialization attribute for the tag. |
protected java.lang.Object |
convertType(java.lang.Object value,
java.lang.Class requiredType)
Converts the given value to the required type. |
protected JellyException |
createJellyException(java.lang.String reason)
Creates a new Jelly exception, adorning it with location information |
protected JellyException |
createJellyException(java.lang.String reason,
java.lang.Exception cause)
Creates a new Jelly exception, adorning it with location information |
protected void |
endNamespacePrefixes(XMLOutput output)
End the new namespace prefixes mapped for the current element |
int |
getColumnNumber()
|
java.lang.String |
getElementName()
|
java.lang.String |
getFileName()
|
int |
getLineNumber()
|
Tag |
getTag()
|
protected void |
handleException(java.lang.Exception e)
A helper method to handle this non-Jelly exception. |
protected void |
handleException(JellyException e)
A helper method to handle this Jelly exception. |
static TagScript |
newInstance(Tag tag)
|
void |
setColumnNumber(int columnNumber)
Sets the column number of the tag |
void |
setElementName(java.lang.String elementName)
Sets the element name which caused the problem |
void |
setFileName(java.lang.String fileName)
Sets the Jelly file which caused the problem |
void |
setLineNumber(int lineNumber)
Sets the line number of the tag |
void |
setLocator(org.xml.sax.Locator locator)
Configures this TagScript from the SAX Locator, setting the column and line numbers |
void |
setNamespacesMap(java.util.Map namespacesMap)
Sets the optional namespaces prefix -> URI map |
void |
setTag(Tag tag)
Sets the tag to be evaluated |
protected void |
startNamespacePrefixes(XMLOutput output)
Output the new namespace prefixes used for this element |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Script |
compile, run |
Field Detail |
protected Tag tag
protected java.util.Map attributes
Constructor Detail |
public TagScript()
public TagScript(Tag tag)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void setNamespacesMap(java.util.Map namespacesMap)
public void setLocator(org.xml.sax.Locator locator)
public static TagScript newInstance(Tag tag)
public void addAttribute(java.lang.String name, Expression expression)
public Tag getTag()
public void setTag(Tag tag)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.lang.String getElementName()
public void setElementName(java.lang.String elementName)
public int getLineNumber()
public void setLineNumber(int lineNumber)
public int getColumnNumber()
public void setColumnNumber(int columnNumber)
protected void startNamespacePrefixes(XMLOutput output) throws org.xml.sax.SAXException
protected void endNamespacePrefixes(XMLOutput output) throws org.xml.sax.SAXException
protected java.lang.Object convertType(java.lang.Object value, java.lang.Class requiredType) throws java.lang.Exception
value
- is the value to be converted. This will not be nullrequiredType
- the type that the value should be converted toprotected void handleException(java.lang.Exception e) throws java.lang.Exception
protected JellyException createJellyException(java.lang.String reason)
protected JellyException createJellyException(java.lang.String reason, java.lang.Exception cause)
protected void handleException(JellyException e) throws java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |