net.windward.tags
Class TagAttributes

java.lang.Object
  |
  +--net.windward.tags.TagAttributes

public class TagAttributes
extends java.lang.Object

This describes what attributes this tag has. Used for validation. User: David Thielen Date: Feb 4, 2006 Version 4.1


Inner Class Summary
static class TagAttributes.TagItem
           
 
Constructor Summary
TagAttributes(int tagType, TagAttributes.TagItem select, TagAttributes.TagItem[] attributes, boolean useDatasource, boolean beanAllowed)
           
 
Method Summary
 TagAttributes.TagItem[] getAttributes()
           
 TagAttributes.TagItem getSelect()
           
 int getTagType()
           
 boolean isBeanAllowed()
           
 boolean isUseDatasource()
           
static void validateTag(BaseTag xmlTag, TagAttributes[] tagAttrs, boolean strict)
          Verifys that a tag has all required attributes and no unknown attributes.
static void validateTag(BaseTag xmlTag, TagAttributes ta, boolean strict)
          Verifys that a tag has all required attributes and no unknown attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagAttributes

public TagAttributes(int tagType,
                     TagAttributes.TagItem select,
                     TagAttributes.TagItem[] attributes,
                     boolean useDatasource,
                     boolean beanAllowed)
Method Detail

getTagType

public int getTagType()

getSelect

public TagAttributes.TagItem getSelect()

getAttributes

public TagAttributes.TagItem[] getAttributes()

isUseDatasource

public boolean isUseDatasource()

isBeanAllowed

public boolean isBeanAllowed()

validateTag

public static void validateTag(BaseTag xmlTag,
                               TagAttributes[] tagAttrs,
                               boolean strict)
                        throws TagException
Verifys that a tag has all required attributes and no unknown attributes.
Parameters:
xmlTag - The tag to check
tagAttrs - All attributes, will find the correct one for this tag and use it.
strict - true if want an exception on any error. false if extra properties will be ignored.
Throws:
TagException - thrown if illegal parameters passed in.

validateTag

public static void validateTag(BaseTag xmlTag,
                               TagAttributes ta,
                               boolean strict)
                        throws TagException
Verifys that a tag has all required attributes and no unknown attributes.
Parameters:
xmlTag - The tag to check
ta - the attribute set for this tag type.
strict - true if want an exception on any error. false if extra properties will be ignored.
Throws:
TagException - thrown if illegal parameters passed in.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software