|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mib.type.TypeAdapter
An empty implementation of the TypeConverter interface.
Constructor Summary | |
TypeAdapter()
|
Method Summary | |
void |
createCompound(java.util.Vector symbols)
Called for composed types. |
void |
createEnumeratedInteger(java.util.Vector labels,
java.util.Vector values)
Called for integer types that may only have one of an enumerated set of values. |
void |
createInteger()
Called for integer types. |
void |
createString()
Called for string types. |
void |
createVector(Type elementType)
Called for vector types. |
void |
transferDefaultValue(int value)
Called for types having a default value. |
void |
transferDefaultValue(java.lang.String value)
Called for types having a default value. |
void |
transferNameAlias(java.lang.String name)
Called to report a type name alias for this type. |
void |
transferReadable(boolean readable)
Called to set the status of whether or not that data is readable from the data layer. |
void |
transferSizeLimits(int minLength,
int maxLength)
Called for types having size limits associated with them. |
void |
transferValueLimits(int minValue,
int maxValue)
Called for integer types having value limits associated with them. |
void |
transferWriteable(boolean writeable)
Called to set the status of whether or not that data is writable to the data layer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeAdapter()
Method Detail |
public void createInteger()
createInteger
in interface TypeConverter
public void createEnumeratedInteger(java.util.Vector labels, java.util.Vector values)
createEnumeratedInteger
in interface TypeConverter
labels
- a vector with the string labelsvalues
- a vector with the integer valuespublic void createString()
createString
in interface TypeConverter
public void createVector(Type elementType)
createVector
in interface TypeConverter
elementType
- the vector element typepublic void createCompound(java.util.Vector symbols)
createCompound
in interface TypeConverter
symbols
- a vector with the symbols that compose
the typepublic void transferNameAlias(java.lang.String name)
transferNameAlias
in interface TypeConverter
name
- the alias nampublic void transferValueLimits(int minValue, int maxValue)
transferValueLimits
in interface TypeConverter
minValue
- the minimum valuemaxValue
- the maximum valuepublic void transferSizeLimits(int minLength, int maxLength)
transferSizeLimits
in interface TypeConverter
minLength
- the minimum length, or -1 for nonemaxLength
- the maximum length, or -1 for nonepublic void transferReadable(boolean readable)
transferReadable
in interface TypeConverter
readable
- true if readable, false otherwisepublic void transferWriteable(boolean writeable)
transferWriteable
in interface TypeConverter
writeable
- true if writeable, false otherwisepublic void transferDefaultValue(java.lang.String value)
transferDefaultValue
in interface TypeConverter
value
- a string value or a label, depending on
contextpublic void transferDefaultValue(int value)
transferDefaultValue
in interface TypeConverter
value
- an integer value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |