Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.milligan.eccles.tags
Class CatchTag  view CatchTag download CatchTag.java

java.lang.Object
  extended byorg.milligan.eccles.Tag
      extended byorg.milligan.eccles.tags.CatchTag
All Implemented Interfaces:
org.milligan.eccles.Catch

public class CatchTag
extends org.milligan.eccles.Tag
implements org.milligan.eccles.Catch

The catch section of a try-catch block. The type property is a class derived from java.lang.Exception. If no '.' characters are found in the type name, then "java.lang." is automatically prepended to the string.


Field Summary
private  java.lang.Class _type
           
protected static java.lang.String[] tagSpecificProperties
          Tag properties for output
private  java.lang.String type
           
 
Fields inherited from class org.milligan.eccles.Tag
CONTINUE_PROCESSING, EXCEPTION_PROPERTY, log, PROCESS_CHILDREN, SIMPLE_BREAK, SKIP_CHILDREN, UNDERLYING_EXCEPTION_PROPERTY
 
Constructor Summary
CatchTag()
           
 
Method Summary
 boolean canHandleException(org.milligan.eccles.EcclesException e)
           
 java.lang.Class get_type()
           
 java.lang.String getTagName()
          Name of the tag as it appears in the config file.
 java.lang.String[] getTagPropertiesForDisplay()
          Get a list of properties to be output
 java.lang.String getType()
           
 void setType(java.lang.String type)
           
static java.lang.String transformExceptionTypeName(java.lang.String input)
          Modify the name of an exception.
 void validate()
          Called upon tag creation during script reading.
 
Methods inherited from class org.milligan.eccles.Tag
addChildTag, doAfterChildren, doEndTag, doFinishChildren, doInitChildren, doStartTag, getChildren, getId, getName, getParent, getPropertiesString, hasChildren, isEmpty, isReportingTag, populateElement, populateElementPropertiesFromTag, setChildren, setId, setName, validateHasNoChildren, validateNotEmptyProperties, validateNotEmptyProperties, validateNotEmptyProperties, validateNotEmptyProperty, validateProperties, validateProperties, validateProperties, validateProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private java.lang.String type

_type

private java.lang.Class _type

tagSpecificProperties

protected static final java.lang.String[] tagSpecificProperties
Tag properties for output

Constructor Detail

CatchTag

public CatchTag()
Method Detail

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

get_type

public java.lang.Class get_type()

getTagName

public java.lang.String getTagName()
Description copied from class: org.milligan.eccles.Tag
Name of the tag as it appears in the config file. Used for exception & status reporting


canHandleException

public boolean canHandleException(org.milligan.eccles.EcclesException e)
Specified by:
canHandleException in interface org.milligan.eccles.Catch

validate

public void validate()
              throws org.milligan.eccles.EcclesException
Description copied from class: org.milligan.eccles.Tag
Called upon tag creation during script reading. Perform extra validation that cannot be handled by the schema


getTagPropertiesForDisplay

public java.lang.String[] getTagPropertiesForDisplay()
Get a list of properties to be output


transformExceptionTypeName

public static java.lang.String transformExceptionTypeName(java.lang.String input)
Modify the name of an exception. If no '.' characters are found in the type name, then "java.lang." is automatically prepended to the string.