net.sf.japaki.self
Class FixedParserBean

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

public class FixedParserBean
extends AbstractGenericBean<FixedParserBean>
implements ParserBean

Parser bean for constant parsers like line feeds.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.japaki.beans.AbstractGenericBean
AbstractGenericBean.GenericProperty<B extends AbstractGenericBean,V>
 
Field Summary
static Property<FixedParserBean,Parser<Object>> parserP
          Property of the parser field
 
Constructor Summary
FixedParserBean()
           
 
Method Summary
 Parser<Object> getParser()
          Returns the current value of the parser field.
 List<Property<? super FixedParserBean,?>> 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.
 void setParser(Parser<Object> parser)
          Changes the value of the parser field.
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

parserP

public static final Property<FixedParserBean,Parser<Object>> parserP
Property of the parser field

Constructor Detail

FixedParserBean

public FixedParserBean()
Method Detail

getParser

public Parser<Object> getParser()
Returns the current value of the parser field.

Returns:
the current value of the parser field

setParser

public void setParser(Parser<Object> parser)
Changes the value of the parser field.

Parameters:
parser - new value of the parser field

getProperties

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

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

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

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