railo.runtime.ext.tag
Class TagMetaDataImpl

java.lang.Object
  extended by railo.runtime.ext.tag.TagMetaDataImpl
All Implemented Interfaces:
TagMetaData

public class TagMetaDataImpl
extends Object
implements TagMetaData


Field Summary
 
Fields inherited from interface railo.runtime.ext.tag.TagMetaData
ATTRIBUTE_TYPE_DYNAMIC, ATTRIBUTE_TYPE_FIX, ATTRIBUTE_TYPE_MIXED, BODY_CONTENT_EMPTY, BODY_CONTENT_FREE, BODY_CONTENT_MUST
 
Constructor Summary
TagMetaDataImpl(int attrType, int attrMin, int attrMax, int bodyContent, boolean isBodyRE, String description, boolean handleException, boolean hasAppendix, boolean hasBody)
          Constructor of the class
 
Method Summary
 void addAttribute(TagMetaDataAttr attr)
          adds a attribute to the tag
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagMetaDataImpl

public TagMetaDataImpl(int attrType,
                       int attrMin,
                       int attrMax,
                       int bodyContent,
                       boolean isBodyRE,
                       String description,
                       boolean handleException,
                       boolean hasAppendix,
                       boolean hasBody)
Constructor of the class

Parameters:
attrType - TagMetaData.ATTRIBUTE_TYPE_FIX,TagMetaData.ATTRIBUTE_TYPE_DYNAMIC,TagMetaData.ATTRIBUTE_TYPE_MIXED
attrMin - minimal count of attributes needed for tag
attrMax - maximum count of attributes or -1 for infinity attributes
bodyContent - TagMetaData.BODY_CONTENT_EMPTY,TagMetaData.BODY_CONTENT_FREE,TagMetaData.BODY_CONTENT_MUST
isBodyRE - is the body of the tag parsed like inside a cfoutput
description - A description of the tag.
Method Detail

getAttributeMax

public int getAttributeMax()
Description copied from interface: TagMetaData
maximum count of attributes needed for tag

Specified by:
getAttributeMax in interface TagMetaData
Returns:
maximum count of attributes or -1 for infinity attributes

getAttributeMin

public int getAttributeMin()
Description copied from interface: TagMetaData
minimal count of attributes needed for tag

Specified by:
getAttributeMin in interface TagMetaData
Returns:
minimal count of attributes

getAttributeType

public int getAttributeType()
Description copied from interface: TagMetaData
attribute type

Specified by:
getAttributeType in interface TagMetaData
Returns:
TagMetaData.ATTRIBUTE_TYPE_FIX,TagMetaData.ATTRIBUTE_TYPE_DYNAMIC,TagMetaData.ATTRIBUTE_TYPE_MIXED

getAttributes

public TagMetaDataAttr[] getAttributes()
Description copied from interface: TagMetaData
fix attributes of the tag

Specified by:
getAttributes in interface TagMetaData

addAttribute

public void addAttribute(TagMetaDataAttr attr)
adds a attribute to the tag

Parameters:
attr -

getBodyContent

public int getBodyContent()
Description copied from interface: TagMetaData
type of the body content

Specified by:
getBodyContent in interface TagMetaData
Returns:
TagMetaData.BODY_CONTENT_EMPTY,TagMetaData.BODY_CONTENT_FREE,TagMetaData.BODY_CONTENT_MUST

getDescription

public String getDescription()
Description copied from interface: TagMetaData
A description of the tag.

Specified by:
getDescription in interface TagMetaData
Returns:
description of the tag

isBodyRuntimeExpressionValue

public boolean isBodyRuntimeExpressionValue()
Description copied from interface: TagMetaData
is the body of the tag parsed like inside a cfoutput

Specified by:
isBodyRuntimeExpressionValue in interface TagMetaData
Returns:
parsed or not

handleException

public boolean handleException()
Description copied from interface: TagMetaData
can the tag handle exceptons

Specified by:
handleException in interface TagMetaData
Returns:
can handle exceptions

hasAppendix

public boolean hasAppendix()
Description copied from interface: TagMetaData
has the tag a appendix

Specified by:
hasAppendix in interface TagMetaData
Returns:
has appendix

hasBody

public boolean hasBody()
Description copied from interface: TagMetaData
has the tag a body

Specified by:
hasBody in interface TagMetaData
Returns:
has a body


Copyright © 2012 Railo