Apache CXF API

org.apache.cxf.tools.common.toolspec.parser
Class Option

java.lang.Object
  extended by org.apache.cxf.tools.common.toolspec.parser.Option
All Implemented Interfaces:
TokenConsumer

public class Option
extends Object
implements TokenConsumer


Field Summary
protected  Element annotation
           
protected  Element argument
           
 
Constructor Summary
Option(Element el)
           
 
Method Summary
 boolean accept(TokenInputStream args, Element result, ErrorVisitor errors)
           
 String getAnnotation()
           
 String getName()
           
 String getPrimarySwitch()
           
 boolean hasArgument()
           
 boolean hasImmediateArgument()
           
 boolean isSatisfied(ErrorVisitor errors)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

argument

protected Element argument

annotation

protected Element annotation
Constructor Detail

Option

public Option(Element el)
Method Detail

hasArgument

public boolean hasArgument()

hasImmediateArgument

public boolean hasImmediateArgument()

accept

public boolean accept(TokenInputStream args,
                      Element result,
                      ErrorVisitor errors)
Specified by:
accept in interface TokenConsumer
Returns:
whether the first token was accepted

isSatisfied

public boolean isSatisfied(ErrorVisitor errors)
Specified by:
isSatisfied in interface TokenConsumer

getName

public String getName()

getAnnotation

public String getAnnotation()

getPrimarySwitch

public String getPrimarySwitch()

toString

public String toString()
Overrides:
toString in class Object

Apache CXF API

Apache CXF