org.ujac.print
Class TypedAttributeHandler

java.lang.Object
  extended by 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

Field Summary
protected  AttributeHandler attributeHandler
          The attribute handler to use.
 
Constructor Summary
TypedAttributeHandler(AttributeHandler attributeHandler)
          Constructs a TypedAttributeHandler instance with specific attributes.
 
Method Summary
abstract  Object parseAttribute(Locator locator, String attrName, Object attrValue, boolean evaluate)
          Gets the value for the given attribute's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeHandler

protected AttributeHandler attributeHandler
The attribute handler to use.

Constructor Detail

TypedAttributeHandler

public TypedAttributeHandler(AttributeHandler attributeHandler)
Constructs a TypedAttributeHandler instance with specific attributes.

Parameters:
attributeHandler - The attribute handler to use.
Method Detail

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.