|
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.parser.PropertyDefinition org.beanio.parser.BeanDefinition org.beanio.parser.xml.XmlBeanDefinition
public class XmlBeanDefinition
A bean definition implementation for XML formatted streams.
Field Summary |
---|
Fields inherited from class org.beanio.parser.PropertyDefinition |
---|
INVALID, MISSING |
Constructor Summary | |
---|---|
XmlBeanDefinition()
|
Method Summary | |
---|---|
Object |
formatRecord(Node parent,
Object bean)
Formats a bean object into a XML DOM tree, with support for collection type beans. |
Object |
formatRecord(Object bean)
Formats a Java bean into a record (whose class type will depend on the type of stream and record writer being used). |
XmlDefinition |
getXmlDefinition()
Returns the XML attributes that define this node. |
boolean |
isBeanExistenceKnown()
Returns true if a bean is known to exist before parsing its child fields. |
boolean |
matches(Record record)
Test if a record matches this record definition. |
protected Object |
parsePropertyValue(Record record)
Validates and parses a record into a Java bean. |
Methods inherited from class org.beanio.parser.BeanDefinition |
---|
addProperty, defines, getAllFields, getBeanProperty, getProperty, getPropertyCount, getPropertyList, isBean, isDefinitionFor, isPropertyTypeMap, isRecordIdentifer, setBeanProperty, setPropertyList, setPropertyType, setRecordIdentifer |
Methods inherited from class org.beanio.parser.PropertyDefinition |
---|
getCollectionType, getLength, getMaxOccurs, getMinOccurs, getName, getParent, getPropertyDescriptor, getPropertyType, isArray, isCollection, isConstant, isField, isLazy, isProperty, isRecordIdentifier, parseValue, setCollectionType, setLazy, setLength, setMaxOccurs, setMinOccurs, setName, setParent, setProperty, setPropertyDescriptor, setRecordIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlBeanDefinition()
Method Detail |
---|
public boolean matches(Record record)
BeanDefinition
matches
in class BeanDefinition
record
- the record to test
protected Object parsePropertyValue(Record record) throws InvalidRecordException
BeanDefinition
parsePropertyValue
in class BeanDefinition
record
- the record to parse
InvalidRecordException
public boolean isBeanExistenceKnown()
BeanDefinition
isBeanExistenceKnown
in class BeanDefinition
public Object formatRecord(Object bean)
BeanDefinition
formatRecord
in class BeanDefinition
bean
- the bean to format
public Object formatRecord(Node parent, Object bean)
parent
- the parent DOM element to appendbean
- the bean objectpublic XmlDefinition getXmlDefinition()
XmlNode
getXmlDefinition
in interface XmlNode
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |