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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagAttributes
public TagAttributes(int tagType,
TagAttributes.TagItem select,
TagAttributes.TagItem[] attributes,
boolean useDatasource,
boolean beanAllowed)
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 checktagAttrs - 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 checkta - 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