|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.xml.ChoiceSupport
public abstract class ChoiceSupport
A base class for types that support choices.
Constructor Summary | |
---|---|
ChoiceSupport()
|
Method Summary | |
---|---|
static Predicate<Relationship> |
choiceOptionNamePredicate(String relationshipName)
A convenience utility to create a predicate that finds a specific choice based on the name of the XML element. |
static Predicate<Relationship> |
choiceOptionTypePredicate(String[] relationshipTypes)
A convenience utility to create a predicate that finds a specific choice based on the part type (or part types). |
Relationship |
findChoiceOption(Predicate<Relationship> predicate)
Find a specific choice based on some matching strategy defined by the predicate. |
abstract List<Relationship> |
getChoices()
Get the list of choices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChoiceSupport()
Method Detail |
---|
public Relationship findChoiceOption(Predicate<Relationship> predicate)
Find a specific choice based on some matching strategy defined by the predicate.
predicate
- - a class that determines the matching strategy of the choice.
public abstract List<Relationship> getChoices()
Get the list of choices.
public static Predicate<Relationship> choiceOptionNamePredicate(String relationshipName)
A convenience utility to create a predicate that finds a specific choice based on the name of the XML element.
relationshipName
- - the name of the XML element on the incoming message
public static Predicate<Relationship> choiceOptionTypePredicate(String[] relationshipTypes)
A convenience utility to create a predicate that finds a specific choice based on the part type (or part types).
relationshipTypes
- - the part types (typically taken from a part type mapping)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |