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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.milligan.eccles.Tag
      extended byorg.milligan.eccles.tags.IfTag

public class IfTag
extends org.milligan.eccles.Tag

If construct


Field Summary
static java.lang.String ELSE_CAN_PROCESS_PROPERTY
           
protected static java.lang.String[] tagSpecificProperties
          Tag properties for output
private  java.lang.String test
           
 
Fields inherited from class org.milligan.eccles.Tag
CONTINUE_PROCESSING, EXCEPTION_PROPERTY, log, PROCESS_CHILDREN, SIMPLE_BREAK, SKIP_CHILDREN, UNDERLYING_EXCEPTION_PROPERTY
 
Constructor Summary
IfTag()
           
 
Method Summary
 org.milligan.eccles.EcclesReturnValue doStartTag(org.milligan.eccles.RunState state)
          Called at the start of tag processing.
static boolean evaluateBoolean(org.milligan.eccles.RunState state, java.lang.String test)
          Usefull helper function for evaluating to a boolean or throwing an exception if not a boolean 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 getTest()
           
 void setTest(java.lang.String test)
           
 
Methods inherited from class org.milligan.eccles.Tag
addChildTag, doAfterChildren, doEndTag, doFinishChildren, doInitChildren, getChildren, getId, getName, getParent, getPropertiesString, hasChildren, isEmpty, isReportingTag, populateElement, populateElementPropertiesFromTag, setChildren, setId, setName, validate, 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

ELSE_CAN_PROCESS_PROPERTY

public static final java.lang.String ELSE_CAN_PROCESS_PROPERTY

test

private java.lang.String test

tagSpecificProperties

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

Constructor Detail

IfTag

public IfTag()
Method Detail

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


setTest

public void setTest(java.lang.String test)

getTest

public java.lang.String getTest()

doStartTag

public org.milligan.eccles.EcclesReturnValue doStartTag(org.milligan.eccles.RunState state)
                                                 throws org.milligan.eccles.EcclesException
Description copied from class: org.milligan.eccles.Tag
Called at the start of tag processing. Return either PROCESS_CHILDREN (to process the children) or SKIP_CHILDREN


evaluateBoolean

public static boolean evaluateBoolean(org.milligan.eccles.RunState state,
                                      java.lang.String test)
                               throws org.milligan.eccles.EcclesException
Usefull helper function for evaluating to a boolean or throwing an exception if not a boolean type. Used by assert tag as well.


getTagPropertiesForDisplay

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