org.ujac.print
Class TypedAttributeHandler
java.lang.Object
org.ujac.print.TypedAttributeHandler
- Direct Known Subclasses:
- BooleanAttributeHandler, BorderAttributeHandler, ColorAttributeHandler, DimensionAttributeHandler, DoubleAttributeHandler, EscapeSequenceTextAttributeHandler, FloatAttributeHandler, HorizontalAlignmentAttributeHandler, IntegerAttributeHandler, TextAttributeHandler, VerticalAlignmentAttributeHandler
public abstract class TypedAttributeHandler
- extends Object
Name: TypedAttributeHandler
Description: The base class for typed attribute handlers.
- Author:
- lauerc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributeHandler
protected AttributeHandler attributeHandler
- The attribute handler to use.
TypedAttributeHandler
public TypedAttributeHandler(AttributeHandler attributeHandler)
- Constructs a TypedAttributeHandler instance with specific attributes.
- Parameters:
attributeHandler
- The attribute handler to use.
parseAttribute
public abstract Object parseAttribute(Locator locator,
String attrName,
Object attrValue,
boolean evaluate)
throws TagAttributeException
- Gets the value for the given attribute's name.
- Parameters:
locator
- The tag source locator.attrName
- The attribute's name.attrValue
- The argument value.evaluate
- If this flag is set to true, the attribute will get evaluated.
- Returns:
- The determined value.
- Throws:
TagAttributeException
- if the item contains an invalid value or an required attribute was not defined.
Copyright © 2003-2004 UJAC.org. All Rights Reserved.