|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.beans.AbstractGenericBean<LeafParserBean>
net.sf.japaki.self.LeafParserBean
public class LeafParserBean
Parser bean for leaf parsers.
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. |
|
|
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 |
|---|
public static final Property<LeafParserBean,String> propertyNameP
public static final Property<LeafParserBean,String> parserNameP
public static final Property<LeafParserBean,String> patternP
public static final Property<LeafParserBean,Integer> sizeP
public static final Property<LeafParserBean,String> subParserNameP
public static final Property<LeafParserBean,BeanParserBean> delimiterP
| Constructor Detail |
|---|
public LeafParserBean()
| Method Detail |
|---|
public String getPropertyName()
public String getParserName()
public String getPattern()
public Integer getSize()
public String getSubParserName()
public BeanParserBean getDelimiter()
public void setPropertyName(String propertyName)
propertyName - new value of the propertyName fieldpublic void setParserName(String parserName)
parserName - new value of the parserName fieldpublic void setPattern(String pattern)
pattern - new value of the pattern fieldpublic void setSize(Integer size)
size - new value of the size fieldpublic void setSubParserName(String subParserName)
subParserName - new value of the subParserName fieldpublic void setDelimiter(BeanParserBean delimiter)
delimiter - new value of the delimiter fieldpublic List<Property<? super LeafParserBean,?>> getProperties()
GenericBean
getProperties in interface GenericBean<LeafParserBean>getProperties in class AbstractGenericBean<LeafParserBean>protected Object getValue(Property property)
AbstractGenericBeangetValue
method of all properties of this bean.
This method should not be called directly,
use AbstractGenericBean.GenericProperty.getValue(B) instead.
getValue in class AbstractGenericBean<LeafParserBean>
protected void setValue(Property property,
Object value)
AbstractGenericBeansetValue
method of all properties of this bean.
This method should not be called directly,
use AbstractGenericBean.GenericProperty.setValue(B, V) instead.
setValue in class AbstractGenericBean<LeafParserBean>public <T> Parser<? super T> toParser(Inspector<?,T> inspector)
ParserBean
toParser in interface ParserBeaninspector - necessary context information
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||