com.google.gdata.data
Class EnumConstruct

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ValueConstruct
          extended by com.google.gdata.data.EnumConstruct
All Implemented Interfaces:
Extension
Direct Known Subclasses:
CrawlRateConstruct, DomainPreferenceConstruct

public abstract class EnumConstruct
extends ValueConstruct

The EnumConstruct class defines a special type of ValueConstruct where the attribute values are constrained to a discrete set of valid values.


Method Summary
 void setValue(java.lang.String v)
          Sets the value.
 
Methods inherited from class com.google.gdata.data.ValueConstruct
equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setValue

public void setValue(java.lang.String v)
              throws java.lang.IllegalArgumentException
Description copied from class: ValueConstruct
Sets the value. Subclasses can override this method to do additional validation of the value.

Overrides:
setValue in class ValueConstruct
Parameters:
v - new value for the value construct or null to reset.
Throws:
java.lang.IllegalArgumentException - if the value is invalid for the construct.