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