org.teleal.cling.model.types
Class IntegerDatatype
java.lang.Object
org.teleal.cling.model.types.AbstractDatatype<java.lang.Integer>
org.teleal.cling.model.types.IntegerDatatype
- All Implemented Interfaces:
- Datatype<java.lang.Integer>
public class IntegerDatatype
- extends AbstractDatatype<java.lang.Integer>
Although the UDA 1.0 spec doesn't say it, we assume that "int" is a 4 byte regular Java integer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntegerDatatype
public IntegerDatatype(int byteSize)
fromString
public java.lang.Integer fromString(java.lang.String s)
throws InvalidValueException
- Throws:
InvalidValueException
isValid
public boolean isValid(java.lang.Integer value)
- Specified by:
isValid
in interface Datatype<java.lang.Integer>
- Overrides:
isValid
in class AbstractDatatype<java.lang.Integer>
getMinValue
public int getMinValue()
getMaxValue
public int getMaxValue()
getByteSize
public int getByteSize()
getDefaultValue
public java.lang.Integer getDefaultValue()
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.