railo.runtime.ext.tag
Interface TagMetaData

All Known Implementing Classes:
TagMetaDataImpl

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 additional 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()
          maximum 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
 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

static final int BODY_CONTENT_EMPTY
Body is not allowed for this tag

See Also:
Constant Field Values

BODY_CONTENT_FREE

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

See Also:
Constant Field Values

BODY_CONTENT_MUST

static final int BODY_CONTENT_MUST
body is required for this tag

See Also:
Constant Field Values

ATTRIBUTE_TYPE_FIX

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

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

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

See Also:
Constant Field Values
Method Detail

getBodyContent

int getBodyContent()
type of the body content

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

getAttributeType

int getAttributeType()
attribute type

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

getAttributeMin

int getAttributeMin()
minimal count of attributes needed for tag

Returns:
minimal count of attributes

getAttributeMax

int getAttributeMax()
maximum count of attributes needed for tag

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

isBodyRuntimeExpressionValue

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

Returns:
parsed or not

getDescription

String getDescription()
A description of the tag.

Returns:
description of the tag

getAttributes

TagMetaDataAttr[] getAttributes()
fix attributes of the tag


hasBody

boolean hasBody()
has the tag a body

Returns:
has a body

handleException

boolean handleException()
can the tag handle exceptons

Returns:
can handle exceptions

hasAppendix

boolean hasAppendix()
has the tag a appendix

Returns:
has appendix


Copyright © 2012 Railo