net.sf.japaki.self
Class ConstantParserBean

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

public class ConstantParserBean
extends AbstractGenericBean<ConstantParserBean>
implements ParserBean

Parser bean for constant parsers.

See Also:
LeafParser.newConstantParser(java.lang.String)

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.japaki.beans.AbstractGenericBean
AbstractGenericBean.GenericProperty<B extends AbstractGenericBean,V>
 
Field Summary
static Property<ConstantParserBean,String> valueP
          Property of the value field
 
Constructor Summary
ConstantParserBean()
           
 
Method Summary
 List<Property<? super ConstantParserBean,?>> getProperties()
          Return a list of all properties of this bean.
 String getValue()
          Returns the current value of the value field.
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.
 void setValue(String value)
          Changes the value of the value field.
<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

valueP

public static final Property<ConstantParserBean,String> valueP
Property of the value field

Constructor Detail

ConstantParserBean

public ConstantParserBean()
Method Detail

getValue

public String getValue()
Returns the current value of the value field.

Returns:
the current value of the value field

setValue

public void setValue(String value)
Changes the value of the value field.

Parameters:
value - new value of the value field

getProperties

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

Specified by:
getProperties in interface GenericBean<ConstantParserBean>
Specified by:
getProperties in class AbstractGenericBean<ConstantParserBean>
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<ConstantParserBean>

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<ConstantParserBean>

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 value is null