public abstract class EnumConstruct extends ValueConstruct
ValueConstruct
where the attribute values are constrained to a discrete set of valid
values.AbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
values
The set of valid values for the enum construct.
|
attrNamelocalName, namespace| Modifier | Constructor and Description |
|---|---|
protected |
EnumConstruct(XmlNamespace namespace,
String tagName,
String attrName,
Set<String> values)
Constructs a new EnumConstruct instance associated with a particular
XML representation and set of expected values.
|
protected |
EnumConstruct(XmlNamespace namespace,
String tagName,
String attrName,
Set<String> values,
String initialValue)
Constructs a new EnumConstruct instance associated with a particular
XML representation and set of expected values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setValue(String v)
Sets the value.
|
consumeAttributes, equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateprotected EnumConstruct(XmlNamespace namespace, String tagName, String attrName, Set<String> values)
protected EnumConstruct(XmlNamespace namespace, String tagName, String attrName, Set<String> values, String initialValue)
null, the constructed instance will
be initialized to the value and will be immutable.public void setValue(String v) throws IllegalArgumentException
ValueConstructsetValue in class ValueConstructv - new value for the value construct or null to reset.IllegalArgumentException - if the value is invalid for the construct.Copyright © 2012. All Rights Reserved.