public class BilouCodec extends java.lang.Object implements SequenceCodec<java.lang.String>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTINUE |
static java.lang.String |
LAST |
static java.lang.String |
OTHER |
static java.lang.String |
START |
static java.lang.String |
UNIT |
Constructor and Description |
---|
BilouCodec() |
Modifier and Type | Method and Description |
---|---|
boolean |
areOutcomesCompatible(java.lang.String[] outcomes)
Checks if the outcomes of the model are compatible with the codec.
|
SequenceValidator<java.lang.String> |
createSequenceValidator()
Creates a sequence validator which can validate a sequence of outcomes.
|
Span[] |
decode(java.util.List<java.lang.String> c)
Decodes a sequence T objects into Span objects.
|
java.lang.String[] |
encode(Span[] names,
int length)
Encodes Span objects into a sequence of T objects.
|
public static final java.lang.String START
public static final java.lang.String CONTINUE
public static final java.lang.String LAST
public static final java.lang.String UNIT
public static final java.lang.String OTHER
public Span[] decode(java.util.List<java.lang.String> c)
SequenceCodec
decode
in interface SequenceCodec<java.lang.String>
public java.lang.String[] encode(Span[] names, int length)
SequenceCodec
encode
in interface SequenceCodec<java.lang.String>
public SequenceValidator<java.lang.String> createSequenceValidator()
SequenceCodec
createSequenceValidator
in interface SequenceCodec<java.lang.String>
public boolean areOutcomesCompatible(java.lang.String[] outcomes)
SequenceCodec
areOutcomesCompatible
in interface SequenceCodec<java.lang.String>
outcomes
- all possible model outcomesCopyright © 2010 - 2020 Adobe. All Rights Reserved