net.sf.japaki.self
Class LeafParserBean

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

public class LeafParserBean
extends AbstractGenericBean<LeafParserBean>
implements ParserBean

Parser bean for leaf parsers.

See Also:
LeafParser.newParser(java.text.Format, net.sf.japaki.beans.Property, java.lang.String, 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<LeafParserBean,BeanParserBean> delimiterP
          Property of the delimiter field
static Property<LeafParserBean,String> parserNameP
          Property of the parserName field
static Property<LeafParserBean,String> patternP
          Property of the pattern field
static Property<LeafParserBean,String> propertyNameP
          Property of the propertyName field
static Property<LeafParserBean,Integer> sizeP
          Property of the size field
static Property<LeafParserBean,String> subParserNameP
          Property of the subParserName field
 
Constructor Summary
LeafParserBean()
           
 
Method Summary
 BeanParserBean getDelimiter()
          Returns the current value of the delimiter field.
 String getParserName()
          Returns the current value of the parserName field.
 String getPattern()
          Returns the current value of the pattern field.
 List<Property<? super LeafParserBean,?>> getProperties()
          Return a list of all properties of this bean.
 String getPropertyName()
          Returns the current value of the propertyName field.
 Integer getSize()
          Returns the current value of the size field.
 String getSubParserName()
          Returns the current value of the subParserName field.
protected  Object getValue(Property property)
          Implementation of the getValue method of all properties of this bean.
 void setDelimiter(BeanParserBean delimiter)
          Changes the value of the delimiter field.
 void setParserName(String parserName)
          Changes the value of the parserName field.
 void setPattern(String pattern)
          Changes the value of the pattern field.
 void setPropertyName(String propertyName)
          Changes the value of the propertyName field.
 void setSize(Integer size)
          Changes the value of the size field.
 void setSubParserName(String subParserName)
          Changes the value of the subParserName 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

propertyNameP

public static final Property<LeafParserBean,String> propertyNameP
Property of the propertyName field


parserNameP

public static final Property<LeafParserBean,String> parserNameP
Property of the parserName field


patternP

public static final Property<LeafParserBean,String> patternP
Property of the pattern field


sizeP

public static final Property<LeafParserBean,Integer> sizeP
Property of the size field


subParserNameP

public static final Property<LeafParserBean,String> subParserNameP
Property of the subParserName field


delimiterP

public static final Property<LeafParserBean,BeanParserBean> delimiterP
Property of the delimiter field

Constructor Detail

LeafParserBean

public LeafParserBean()
Method Detail

getPropertyName

public String getPropertyName()
Returns the current value of the propertyName field.

Returns:
the current value of the propertyName field

getParserName

public String getParserName()
Returns the current value of the parserName field.

Returns:
the current value of the parserName field

getPattern

public String getPattern()
Returns the current value of the pattern field.

Returns:
the current value of the pattern field

getSize

public Integer getSize()
Returns the current value of the size field.

Returns:
the current value of the size field

getSubParserName

public String getSubParserName()
Returns the current value of the subParserName field.

Returns:
the current value of the subParserName field

getDelimiter

public BeanParserBean getDelimiter()
Returns the current value of the delimiter field.

Returns:
the current value of the delimiter field

setPropertyName

public void setPropertyName(String propertyName)
Changes the value of the propertyName field.

Parameters:
propertyName - new value of the propertyName field

setParserName

public void setParserName(String parserName)
Changes the value of the parserName field.

Parameters:
parserName - new value of the parserName field

setPattern

public void setPattern(String pattern)
Changes the value of the pattern field.

Parameters:
pattern - new value of the pattern field

setSize

public void setSize(Integer size)
Changes the value of the size field.

Parameters:
size - new value of the size field

setSubParserName

public void setSubParserName(String subParserName)
Changes the value of the subParserName field.

Parameters:
subParserName - new value of the subParserName field

setDelimiter

public void setDelimiter(BeanParserBean delimiter)
Changes the value of the delimiter field.

Parameters:
delimiter - new value of the delimiter field

getProperties

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

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

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

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
NoSuchPropertyException - if the property for a name could not be found