|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.PropertyConfig
public abstract class PropertyConfig
Stores configuration settings for a property of a Java bean.
Field Summary | |
---|---|
static String |
LEFT
Left justification setting |
static String |
RIGHT
Right justification setting |
Constructor Summary | |
---|---|
PropertyConfig()
|
Method Summary | |
---|---|
String |
getCollection()
Returns the collection type, or null if this property is not a collection or array. |
String |
getGetter()
Returns the name of the getter method to use to retrieve this property's value from its parent bean when writing to an output stream. |
Integer |
getMaxOccurs()
Returns the maximum number of times this property may appear (consecutively) in an input stream. |
Integer |
getMinOccurs()
Returns the minimum number of times this property must appear in an input stream. |
String |
getName()
Returns the name of this property. |
String |
getSetter()
Returns the name of the setter method to use when setting this property's value on its parent bean while reading from an input stream. |
String |
getType()
Returns the fully qualified class name or type alias of this property's value. |
String |
getXmlName()
Returns XML element or attribute name of this property. |
String |
getXmlNamespace()
Returns the XML namespace for this property element or attribute. |
String |
getXmlPrefix()
Returns the XML prefix for the namespace assigned to this property element or attribute. |
String |
getXmlType()
Returns the XML node type of this property. |
String |
getXmlWrapper()
Returns the name of a XML wrapper element for this property. |
boolean |
isBean()
Returns whether this property defines a bean class with its own list of properties. |
boolean |
isField()
Returns whether this property configuration defines a field. |
boolean |
isIgnored()
Returns true if this property is not a bean property. |
boolean |
isNillable()
Returns whether this property is nillable. |
void |
setCollection(String collection)
Sets the collection type. |
void |
setGetter(String getter)
Sets the name of the getter method to use to retrieve this property's value from it parent bean when writing to an output stream. |
void |
setIgnored(boolean ignore)
Set to true if this property is not a bean property. |
void |
setMaxOccurs(Integer maxOccurs)
Sets the maximum number of times this property may appear (consecutively) in an input stream. |
void |
setMinOccurs(Integer minOccurs)
Sets the minimum number of times this property must appear consecutively in an input stream. |
void |
setName(String name)
Sets the name of this property. |
void |
setNillable(boolean nillable)
Sets whether this property is nillable. |
void |
setSetter(String setter)
Sets the name of the setter method to use when setting this property's value on its parent bean while reading from an input stream. |
void |
setType(String type)
Sets the fully qualified class name or type alias of this property's value. |
void |
setXmlName(String xmlName)
Sets the XML element or attribute name of this property. |
void |
setXmlNamespace(String xmlNamespace)
Sets the XML namespace for this property element or attribute. |
void |
setXmlPrefix(String xmlPrefix)
Sets the XML prefix for the namespace assigned to this property element or attribute. |
void |
setXmlType(String xmlType)
Sets the XML node type of this property. |
void |
setXmlWrapper(String xmlWrapper)
Sets the name of a XML wrapper element for this property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LEFT
public static final String RIGHT
Constructor Detail |
---|
public PropertyConfig()
Method Detail |
---|
public boolean isBean()
public boolean isField()
public String getName()
public void setName(String name)
name
- the field namepublic boolean isIgnored()
public void setIgnored(boolean ignore)
ignore
- true if this property is not a bean property.public String getGetter()
public void setGetter(String getter)
getter
- the getter method for this propertypublic String getSetter()
public void setSetter(String setter)
setter
- the setter method for this propertypublic String getType()
public void setType(String type)
type
- the class name of this property valuepublic String getCollection()
public void setCollection(String collection)
collection
- the collection typepublic Integer getMinOccurs()
public void setMinOccurs(Integer minOccurs)
minOccurs
- the minimum required occurrences of this propertypublic Integer getMaxOccurs()
public void setMaxOccurs(Integer maxOccurs)
maxOccurs
- the maximum allowed occurrences of this property, or -1 if
there is no limitpublic String getXmlType()
XmlTypeConstants
public void setXmlType(String xmlType)
xmlType
- the XML node typeXmlTypeConstants
public String getXmlName()
public void setXmlName(String xmlName)
xmlName
- the XML element or attribute namepublic String getXmlNamespace()
public void setXmlNamespace(String xmlNamespace)
xmlNamespace
- the XML namespacepublic String getXmlPrefix()
public void setXmlPrefix(String xmlPrefix)
xmlPrefix
- the XML namespace prefixpublic boolean isNillable()
public void setNillable(boolean nillable)
nillable
- true if this property is nillablepublic String getXmlWrapper()
public void setXmlWrapper(String xmlWrapper)
xmlWrapper
- the XML wrapper element name or null if
this property is not wrapped by another element
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |