net.sf.jagg.msd
Class CharacterDiscriminator.CharExtractor<E>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.PortionExtractor<E,java.lang.Character>
net.sf.jagg.msd.CharacterDiscriminator.CharExtractor<E>
- Enclosing class:
- CharacterDiscriminator
protected class CharacterDiscriminator.CharExtractor<E>
- extends PortionExtractor<E,java.lang.Character>
A CharExtractor
extracts integer labels by converting the
character into an integer. It does not use the index.
Method Summary |
int |
getLabel(E element)
Create an integer label out of the extractor's label. |
boolean |
isComplete(E element)
Determines whether discrimination is complete for the given element, at
the given index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharacterDiscriminator.CharExtractor
public CharacterDiscriminator.CharExtractor(Extractor<E,java.lang.Character> extractor)
- Create a
CharExtractor
that first uses the given
Extractor
to get the value.
- Parameters:
extractor
- Another Extractor
.
getLabel
public int getLabel(E element)
- Create an integer label out of the extractor's label.
- Specified by:
getLabel
in class PortionExtractor<E,java.lang.Character>
- Parameters:
element
- The element.
- Returns:
- An integer label.
isComplete
public boolean isComplete(E element)
- Determines whether discrimination is complete for the given element, at
the given index.
- Specified by:
isComplete
in class AbstractExtractor<E,java.lang.Character>
- Parameters:
element
- The element.
- Returns:
true
if discrimination is complete or cannot
continue, usually because the discrimination has run off the end of
the label, false
otherwise.
Copyright © 2010-2013 jAgg Team. All Rights Reserved.