public abstract class RegionCodeValueConstruct extends ValueConstruct
AbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_REGION_CODE
Default value for the region code is US
|
attrNamelocalName, namespace| Constructor and Description |
|---|
RegionCodeValueConstruct(java.lang.String nodeName)
Constructs
ValueConstruct to represent the region code value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object rhs)
Compares
RegionCodeValueConstruct objects based on the region code
value that they hold. |
int |
hashCode()
Returns hash code which is based on the Region Code string representation.
|
void |
setValue(java.lang.String value)
Override
ValueConstruct.setValue(String) to validate that
the region code is not null. |
consumeAttributes, generate, getHandler, getValue, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic static final java.lang.String DEFAULT_REGION_CODE
public RegionCodeValueConstruct(java.lang.String nodeName)
ValueConstruct to represent the region code value.public boolean equals(java.lang.Object rhs)
RegionCodeValueConstruct objects based on the region code
value that they hold.equals in class ValueConstructpublic int hashCode()
hashCode in class ValueConstructpublic void setValue(java.lang.String value)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
ValueConstruct.setValue(String) to validate that
the region code is not null.setValue in class ValueConstructvalue - new value for the value construct or null to reset.java.lang.NullPointerException - if the value is null.java.lang.IllegalArgumentException - if the value is invalid for the construct.