net.sf.japaki.self
Class ChoiceParserBean

java.lang.Object
  extended by net.sf.japaki.beans.AbstractGenericBean<ChoiceParserBean>
      extended by net.sf.japaki.self.ChoiceParserBean
All Implemented Interfaces:
GenericBean<ChoiceParserBean>, ParserBean

public class ChoiceParserBean
extends AbstractGenericBean<ChoiceParserBean>
implements ParserBean

Parser bean for choice parsers.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.japaki.beans.AbstractGenericBean
AbstractGenericBean.GenericProperty<B extends AbstractGenericBean,V>
 
Field Summary
static Property<ChoiceParserBean,List<BeanParserBean>> beansP
          Property of the beans field
 
Constructor Summary
ChoiceParserBean()
           
 
Method Summary
 List<BeanParserBean> getBeans()
          Returns the option parser beans.
 List<Property<? super ChoiceParserBean,?>> getProperties()
          Return a list of all properties of this bean.
protected  Object getValue(Property property)
          Implementation of the getValue method of all properties of this bean.
protected  void setValue(Property property, Object value)
          Implementation of the setValue method of all properties of this bean.
<T> Parser<? super T>
toParser(Inspector<?,T> inspector)
          Creates a parser from the information stored in the bean.
 
Methods inherited from class net.sf.japaki.beans.AbstractGenericBean
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

beansP

public static final Property<ChoiceParserBean,List<BeanParserBean>> beansP
Property of the beans field

Constructor Detail

ChoiceParserBean

public ChoiceParserBean()
Method Detail

getBeans

public List<BeanParserBean> getBeans()
Returns the option parser beans.

Returns:
the option parser beans

getProperties

public List<Property<? super ChoiceParserBean,?>> getProperties()
Description copied from interface: GenericBean
Return a list of all properties of this bean.

Specified by:
getProperties in interface GenericBean<ChoiceParserBean>
Specified by:
getProperties in class AbstractGenericBean<ChoiceParserBean>
Returns:
a list of all properties of this bean

getValue

protected Object getValue(Property property)
Description copied from class: AbstractGenericBean
Implementation of the getValue method of all properties of this bean. This method should not be called directly, use AbstractGenericBean.GenericProperty.getValue(B) instead.

Specified by:
getValue in class AbstractGenericBean<ChoiceParserBean>

setValue

protected void setValue(Property property,
                        Object value)
Description copied from class: AbstractGenericBean
Implementation of the setValue method of all properties of this bean. This method should not be called directly, use AbstractGenericBean.GenericProperty.setValue(B, V) instead.

Specified by:
setValue in class AbstractGenericBean<ChoiceParserBean>

toParser

public <T> Parser<? super T> toParser(Inspector<?,T> inspector)
Description copied from interface: ParserBean
Creates a parser from the information stored in the bean.

Specified by:
toParser in interface ParserBean
Parameters:
inspector - necessary context information
Returns:
the new parser
Throws:
NullPointerException - if a parameter that is necessary to create the parser is null
IllegalArgumentException - if a property of this bean has a value that can not be used to create a parser