org.inria.ns.reflex.processor.asl
Class ChoiceAction
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.asl.AbstractStepAction
org.inria.ns.reflex.processor.asl.AbstractPrimitiveModelAction
org.inria.ns.reflex.processor.asl.ChoiceAction
- All Implemented Interfaces:
- Executable, Identifiable, Presentable, NamespaceContextFactory
public class ChoiceAction
- extends AbstractPrimitiveModelAction
The <asl:choice> defines a choice list.
- Author:
- Philippe Poulard
| Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction |
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString |
ChoiceAction
public ChoiceAction(Expression minOccurs,
Expression maxOccurs,
int repeating,
Element element,
AbstractAction parent)
- Creates a new instance of
ChoiceAction.
- Parameters:
minOccurs - The min occurs when repeating this step.maxOccurs - The max occurs when repeating this step.element - The element from which the action has been unmarshalled. Used
for namespace prefix resolution when performing XPath
expressions.parent - The action depending from.
unmarshal
public static AbstractAction unmarshal(AbstractAction parent,
Element element)
throws XMLException
- XML unmarshaller for
ChoiceAction.
- Parameters:
parent - The action depending from.element - The XML element to unmarshall.
- Returns:
- The
ChoiceAction created.
- Throws:
UnmarshalException - When the element and its content is not those expected.
XMLException