public static class TypeDefinitionIntegerImpl.ShortValue extends TypeDefinitionIntegerImpl.BaseIntegerValue implements PropertyValue
| Constructor and Description |
|---|
ShortValue(TypeDefinitionIntegerImpl type,
Short value) |
| Modifier and Type | Method and Description |
|---|---|
Short |
getValue()
Returns the value of the property through a generic Java object interface.
|
void |
setValue(short value) |
getType, isDefinedTypeequals, hashCode, toStringequals, getType, hashCode, toStringpublic ShortValue(TypeDefinitionIntegerImpl type, Short value) throws IllegalArgumentException
IllegalArgumentExceptionpublic Short getValue()
PropertyValueReturns the value of the property through a generic Java object interface. Alternative type-specific access methods are provided in each type definition.
For example, for a property value of a UInt32 type, this method
returns an Integer. Values will need to be cast to appropriate types by the
application. The value returned may be null, which may indicate that an optional
property was not present.
getValue in interface PropertyValueTypeDefinition.createValue(Object)public void setValue(short value)
throws IllegalArgumentException
IllegalArgumentException(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.