net.sf.japaki.self
Class PhraseBean

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

public class PhraseBean
extends AbstractGenericBean<PhraseBean>

Parser bean for bean 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<PhraseBean,Class> baseClassP
          Property of the baseClass field
static Property<PhraseBean,BeanParserBean> beanP
          Property of the bean field
static Property<PhraseBean,String> phraseNameP
          Property of the phraseName field
 
Constructor Summary
PhraseBean()
           
 
Method Summary
 Class getBaseClass()
          Returns the targetType of the created parser.
 BeanParserBean getBean()
          Returns the pattern for the new parser.
 String getPhraseName()
          Returns the key where the parser is stored.
 List<Property<? super PhraseBean,?>> 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 setBaseClass(Class baseClass)
          Changes the value of the baseClass field.
 void setBean(BeanParserBean bean)
          Changes the value of the bean field.
 void setPhraseName(String phraseName)
          Changes the value of the phraseName field.
protected  void setValue(Property property, Object value)
          Implementation of the setValue method of all properties of this bean.
 String toString()
           
 
Methods inherited from class net.sf.japaki.beans.AbstractGenericBean
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

phraseNameP

public static final Property<PhraseBean,String> phraseNameP
Property of the phraseName field


baseClassP

public static final Property<PhraseBean,Class> baseClassP
Property of the baseClass field


beanP

public static final Property<PhraseBean,BeanParserBean> beanP
Property of the bean field

Constructor Detail

PhraseBean

public PhraseBean()
Method Detail

getPhraseName

public String getPhraseName()
Returns the key where the parser is stored.

Returns:
the key where the parser is stored

getBaseClass

public Class getBaseClass()
Returns the targetType of the created parser.

Returns:
the targetType of the created parser

getBean

public BeanParserBean getBean()
Returns the pattern for the new parser.

Returns:
the pattern for the new parser

setPhraseName

public void setPhraseName(String phraseName)
Changes the value of the phraseName field.

Parameters:
phraseName - new value of the phraseName field

setBaseClass

public void setBaseClass(Class baseClass)
Changes the value of the baseClass field.

Parameters:
baseClass - new value of the baseClass field

setBean

public void setBean(BeanParserBean bean)
Changes the value of the bean field.

Parameters:
bean - new value of the bean field

getProperties

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

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

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

toString

public String toString()
Overrides:
toString in class AbstractGenericBean<PhraseBean>