org.apache.woden.internal
Class WriterFeatures

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

public class WriterFeatures
extends java.lang.Object

This class contains all supported Woden writer features . TODO Decide this is necessary or not? 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
WriterFeatures()
           
 
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

WriterFeatures

public WriterFeatures()
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 © 2005-2011 Apache Software Foundation. All Rights Reserved.