public abstract class RegionCodeValueConstruct extends ValueConstruct
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_REGION_CODE
Default value for the region code is US
|
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. |
generate, getHandler, getValue, hasValue, isRequired, putAttributes
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public 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 ValueConstruct
public int hashCode()
hashCode
in class ValueConstruct
public 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 ValueConstruct
value
- 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.