org.apache.woden.internal
Class ReaderFeatures

java.lang.Object
  extended by org.apache.woden.internal.ReaderFeatures

public class ReaderFeatures
extends java.lang.Object

This class contains all supported Woden reader features and stores their values for individual parser configurations. TODO: determine the required features (e.g. org.apache.woden.verbose) and create an ID for each value.


Field Summary
protected  java.util.Hashtable values
          This hashtable contains the values for the features.
 
Constructor Summary
ReaderFeatures()
           
 
Method Summary
 boolean getValue(java.lang.String featureId)
          Get the value for the given feature.
 void setValue(java.lang.String featureId, boolean value)
          Set the value of the given feature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected java.util.Hashtable values
This hashtable contains the values for the features.

Constructor Detail

ReaderFeatures

public ReaderFeatures()
Method Detail

getValue

public boolean getValue(java.lang.String featureId)
                 throws java.lang.IllegalArgumentException
Get the value for the given feature.

Parameters:
featureId - The ID of the feature for which the value is requested.
Returns:
true if the feature is enabled, false otherwise.
Throws:
java.lang.IllegalArgumentException - if the feature is not supported.

setValue

public void setValue(java.lang.String featureId,
                     boolean value)
              throws java.lang.IllegalArgumentException
Set the value of the given feature

Parameters:
featureId - The ID of the feature to set.
value - The value to set for the feature.
Throws:
java.lang.IllegalArgumentException - if the feature is not supported.


Copyright © 2007. All Rights Reserved.