Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Nested Class Summary

Nested classes/interfaces inherited from interface org.teleal.cling.model.types.Datatype
`Datatype.Builtin, Datatype.Default`

Constructor Summary
`IntegerDatatype(int byteSize)`

Method Summary
`Integer` | `fromString(String s)`
`int` | `getByteSize()`
`Integer` | `getDefaultValue()`
`int` | `getMaxValue()`
`int` | `getMinValue()`
`boolean` | `isValid(Integer value)`

Methods inherited from class org.teleal.cling.model.types.AbstractDatatype
`getBuiltin, getDisplayString, getString, getValueType, setBuiltin, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### IntegerDatatype

    public IntegerDatatype(int byteSize)

Method Detail

### 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.