railo.runtime.ext.tag
Interface TagMetaData


public interface TagMetaData


Field Summary
static int ATTRIBUTE_TYPE_DYNAMIC
          there is no restriction or rules for attributes, tag can have as many as whished
static int ATTRIBUTE_TYPE_FIX
          tag has a fix defined group of attributes, only this attributes are allowed
static int ATTRIBUTE_TYPE_MIXED
          tag has a fix set of attributes, but is also free in use addional tags
static int BODY_CONTENT_EMPTY
          Body is not allowed for this tag
static int BODY_CONTENT_FREE
          tag can have a body, but it is not required
static int BODY_CONTENT_MUST
          body is required for this tag
 
Method Summary
 int getAttributeMax()
          maximal count of attributes needed for tag
 int getAttributeMin()
          minimal count of attributes needed for tag
 TagMetaDataAttr[] getAttributes()
          fix attributes of the tag
 int getAttributeType()
          attribute type
 int getBodyContent()
          type of the body content
 java.lang.String getDescription()
          A description of the tag.
 boolean handleException()
          can the tag handle exceptons
 boolean hasAppendix()
          has the tag a appendix
 boolean hasBody()
          has the tag a body
 boolean isBodyRuntimeExpressionValue()
          is the body of the tag parsed like inside a cfoutput
 

Field Detail

BODY_CONTENT_EMPTY

public static final int BODY_CONTENT_EMPTY
Body is not allowed for this tag

See Also:
Constant Field Values

BODY_CONTENT_FREE

public static final int BODY_CONTENT_FREE
tag can have a body, but it is not required

See Also:
Constant Field Values

BODY_CONTENT_MUST

public static final int BODY_CONTENT_MUST
body is required for this tag

See Also:
Constant Field Values

ATTRIBUTE_TYPE_FIX

public static final int ATTRIBUTE_TYPE_FIX
tag has a fix defined group of attributes, only this attributes are allowed

See Also:
Constant Field Values

ATTRIBUTE_TYPE_DYNAMIC

public static final int ATTRIBUTE_TYPE_DYNAMIC
there is no restriction or rules for attributes, tag can have as many as whished

See Also:
Constant Field Values

ATTRIBUTE_TYPE_MIXED

public static final int ATTRIBUTE_TYPE_MIXED
tag has a fix set of attributes, but is also free in use addional tags

See Also:
Constant Field Values
Method Detail

getBodyContent

public int getBodyContent()
type of the body content

Returns:
TagMetaData.BODY_CONTENT_EMPTY,TagMetaData.BODY_CONTENT_FREE,TagMetaData.BODY_CONTENT_MUST

getAttributeType

public int getAttributeType()
attribute type

Returns:
TagMetaData.ATTRIBUTE_TYPE_FIX,TagMetaData.ATTRIBUTE_TYPE_DYNAMIC,TagMetaData.ATTRIBUTE_TYPE_MIXED

getAttributeMin

public int getAttributeMin()
minimal count of attributes needed for tag

Returns:
minimal count of attributes

getAttributeMax

public int getAttributeMax()
maximal count of attributes needed for tag

Returns:
maximal count of attributes or -1 for infinity attributes

isBodyRuntimeExpressionValue

public boolean isBodyRuntimeExpressionValue()
is the body of the tag parsed like inside a cfoutput

Returns:
parsed or not

getDescription

public java.lang.String getDescription()
A description of the tag.

Returns:
description of the tag

getAttributes

public TagMetaDataAttr[] getAttributes()
fix attributes of the tag

Returns:

hasBody

public boolean hasBody()
has the tag a body

Returns:
has a body

handleException

public boolean handleException()
can the tag handle exceptons

Returns:
can handle exceptions

hasAppendix

public boolean hasAppendix()
has the tag a appendix

Returns:
has appendix