com.abra.j2xb.beans.xmlModel
Class MoXmlBeanCollection

java.lang.Object
  extended by com.abra.j2xb.beans.xmlModel.MoXmlElement
      extended by com.abra.j2xb.beans.xmlModel.MoXmlProperty
          extended by com.abra.j2xb.beans.xmlModel.MoXmlBeanValuedProperty
              extended by com.abra.j2xb.beans.xmlModel.MoXmlBeanCollection

public class MoXmlBeanCollection
extends MoXmlBeanValuedProperty

Since:
JDK1.5
Version:
1.0, May 1, 2008
Author:
Yoav Abrahami

Nested Class Summary
 
Nested classes/interfaces inherited from class com.abra.j2xb.beans.xmlModel.MoXmlProperty
MoXmlProperty.XmlLocation
 
Field Summary
 
Fields inherited from class com.abra.j2xb.beans.xmlModel.MoXmlBeanValuedProperty
beanDescriptor, globalElementRef
 
Method Summary
 MoXmlBeanDescriptor getCollectionItemBeanDescriptor()
           
static boolean isBeanCollectionProperty(MOPropertyDescriptor propertyDescriptor)
           
 boolean isXmlOptional()
           
 void persistInstance(XmlNode targetParentNode, java.lang.Object sourceInstance)
           
 void persistInstanceCollection(XmlNode targetParentNode, java.util.Collection collection)
           
protected  void printElementRef(java.io.PrintWriter pw, java.lang.String indent)
           
protected  void printInlineElement(java.io.PrintWriter pw, java.lang.String indent)
           
 void readInstance(XmlNode sourceNode, java.lang.Object targetInstance, java.util.Set<MoXmlElement> suppressElements)
           
 java.util.List<java.lang.Object> readInstanceCollection(XmlNode sourceNode, java.lang.Object targetInstance)
           
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.MoXmlBeanValuedProperty
getBeanDescriptor, getElementName, getInstanceBeanDescriptor, getSubstitutions, isGlobalElementRef, persistSingleInstance, printElement
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.MoXmlProperty
createMoXmlProperty, getJavaType, getPropertyDescriptor, getSchema, getXmlLocation, toString
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.MoXmlElement
getChildElements, getParentElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

printElementRef

protected void printElementRef(java.io.PrintWriter pw,
                               java.lang.String indent)
Specified by:
printElementRef in class MoXmlBeanValuedProperty

printInlineElement

protected void printInlineElement(java.io.PrintWriter pw,
                                  java.lang.String indent)
Specified by:
printInlineElement in class MoXmlBeanValuedProperty

persistInstance

public void persistInstance(XmlNode targetParentNode,
                            java.lang.Object sourceInstance)
                     throws XmlPersistException
Specified by:
persistInstance in class MoXmlElement
Throws:
XmlPersistException

readInstance

public void readInstance(XmlNode sourceNode,
                         java.lang.Object targetInstance,
                         java.util.Set<MoXmlElement> suppressElements)
                  throws XmlPersistException
Specified by:
readInstance in class MoXmlElement
Throws:
XmlPersistException

readInstanceCollection

public java.util.List<java.lang.Object> readInstanceCollection(XmlNode sourceNode,
                                                               java.lang.Object targetInstance)
                                                        throws XmlPersistException
Throws:
XmlPersistException

persistInstanceCollection

public void persistInstanceCollection(XmlNode targetParentNode,
                                      java.util.Collection collection)
                               throws XmlPersistException
Throws:
XmlPersistException

isBeanCollectionProperty

public static boolean isBeanCollectionProperty(MOPropertyDescriptor propertyDescriptor)

isXmlOptional

public boolean isXmlOptional()
Overrides:
isXmlOptional in class MoXmlProperty

getCollectionItemBeanDescriptor

public MoXmlBeanDescriptor getCollectionItemBeanDescriptor()


Copyright © 2008. All Rights Reserved.