|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ChoiceConverter
public abstract class ChoiceConverter
The ChoiceConverter
can convert
choice value. This class is intent to be extended.
Field Summary | |
---|---|
protected AsnConverter[] |
alternativeConverters
The alternative converters |
Constructor Summary | |
---|---|
ChoiceConverter()
|
|
ChoiceConverter(AsnConverter[] alternativeConverters)
|
Method Summary | |
---|---|
abstract java.lang.Object |
createAlternative(int index,
java.lang.Object alternativeObject)
Given the choice index, and the alternative object, create the choice value object. |
AsnConverter |
getAlternativeConverter(int index)
Returns this ChoiceConverter's alternative converters. |
abstract int |
getAlternativeIndex(java.lang.Object object)
Given the choice value object, return the choice index. |
abstract java.lang.Object |
getAlternativeObject(java.lang.Object object)
Given the choice value object, return the alternative object. |
void |
setAlternativeConverters(AsnConverter[] alternativeConverters)
Sets this ChoiceConverter's alternative converters |
Methods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter |
---|
convert, convert, convert, convert, createAsnConverterConverter, createAsnConverterType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AsnConverter[] alternativeConverters
Constructor Detail |
---|
public ChoiceConverter()
public ChoiceConverter(AsnConverter[] alternativeConverters)
Method Detail |
---|
public void setAlternativeConverters(AsnConverter[] alternativeConverters)
alternativeConverters
- The alternative converterspublic AsnConverter getAlternativeConverter(int index)
public abstract java.lang.Object createAlternative(int index, java.lang.Object alternativeObject)
index
- The choice indexalternativeObject
- The alternative object
public abstract int getAlternativeIndex(java.lang.Object object)
object
- The choice value object
public abstract java.lang.Object getAlternativeObject(java.lang.Object object)
object
- The choice value object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |