org.quilt.frontend.ant
Class SummaryAttribute

java.lang.Object
  |
  +--org.quilt.frontend.ant.SummaryAttribute

public class SummaryAttribute
extends java.lang.Object

Accept a limited set of String values for the summary attribute.


Constructor Summary
SummaryAttribute(java.lang.String v)
          Constructor.
 
Method Summary
 boolean asBoolean()
           
 java.lang.String getValue()
          Return the value successfully set.
 void setValue(java.lang.String value)
          Ant-compatible set method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryAttribute

public SummaryAttribute(java.lang.String v)
Constructor.

Parameters:
v - A candidate value; causes exception if invalid.
Method Detail

getValue

public java.lang.String getValue()
Return the value successfully set.

Returns:
The String passed as the value of the summary attribute.

setValue

public final void setValue(java.lang.String value)
                    throws org.apache.tools.ant.BuildException
Ant-compatible set method. Interprets on/true/withoutanderr/yes as true, false/no/off as false, and throws exception otherwise.

org.apache.tools.ant.BuildException

asBoolean

public boolean asBoolean()
Returns:
True if the value was on/true/withoutanderr/yes, false otherwise.


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.