com.abra.j2xb.beans.xmlModel.types
Class MoXmlUnionType

java.lang.Object
  extended by com.abra.j2xb.beans.xmlModel.types.MoXmlType
      extended by com.abra.j2xb.beans.xmlModel.types.MoXmlAbstractSimpleType
          extended by com.abra.j2xb.beans.xmlModel.types.MoXmlUnionType

public class MoXmlUnionType
extends MoXmlAbstractSimpleType

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

Field Summary
 
Fields inherited from class com.abra.j2xb.beans.xmlModel.types.MoXmlAbstractSimpleType
simpleTypeDescriptors
 
Constructor Summary
MoXmlUnionType(MoXmlSchema xmlSchema, java.util.List<MOPropertySimpleTypeDescriptor> simpleTypeDescriptors)
           
MoXmlUnionType(MoXmlSchema xmlSchema, java.util.List<MOPropertySimpleTypeDescriptor> simpleTypeDescriptors, java.lang.String globalTypeName)
           
 
Method Summary
 boolean isBuiltinSimpleType()
           
 void persistInstance(MOJavaValueDescriptor javaValueDescriptor, XmlNode parentTargetNode, java.lang.Object value, MoXmlSchema elementSchema, java.lang.String elementName, XmlNode.ChildLocation location)
           
 void persistInstances(MOJavaValueDescriptor javaValueDescriptor, XmlNode parentTargetNode, java.util.Collection<java.lang.Object> values, MoXmlSchema elementSchema, java.lang.String elementName)
           
 void persistInstancesAsList(MOJavaValueDescriptor javaValueDescriptor, XmlNode targetParentNode, java.util.Collection<java.lang.Object> values, MoXmlSchema elementSchema, java.lang.String elementName)
           
 void printType(java.io.PrintWriter pw, java.lang.String indent, boolean writeTypeName)
           
 java.lang.Object readInstance(MOJavaValueDescriptor javaValueDescriptor, XmlNode sourceNode, MoXmlSchema elementSchema, java.lang.String elementName, XmlNode.ChildLocation location)
           
 java.util.List<java.lang.Object> readInstances(MOJavaValueDescriptor javaValueDescriptor, XmlNode sourceNode, java.lang.String elementName)
           
 java.util.List<java.lang.Object> readInstancesAsList(MOJavaValueDescriptor javaValueDescriptor, XmlNode sourceNode, java.lang.String elementName)
           
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.types.MoXmlAbstractSimpleType
createSimpleType, createSimpleType, fromXmlValue, isGlobal, toXmlValue
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.types.MoXmlType
getName, getQualifiedName, getSchema, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoXmlUnionType

public MoXmlUnionType(MoXmlSchema xmlSchema,
                      java.util.List<MOPropertySimpleTypeDescriptor> simpleTypeDescriptors,
                      java.lang.String globalTypeName)

MoXmlUnionType

public MoXmlUnionType(MoXmlSchema xmlSchema,
                      java.util.List<MOPropertySimpleTypeDescriptor> simpleTypeDescriptors)
Method Detail

printType

public void printType(java.io.PrintWriter pw,
                      java.lang.String indent,
                      boolean writeTypeName)
Specified by:
printType in class MoXmlType

persistInstance

public void persistInstance(MOJavaValueDescriptor javaValueDescriptor,
                            XmlNode parentTargetNode,
                            java.lang.Object value,
                            MoXmlSchema elementSchema,
                            java.lang.String elementName,
                            XmlNode.ChildLocation location)
                     throws XmlPersistException,
                            MOBeansPropertyAccessException,
                            MOBeansException
Specified by:
persistInstance in class MoXmlAbstractSimpleType
Throws:
XmlPersistException
MOBeansPropertyAccessException
MOBeansException

persistInstances

public void persistInstances(MOJavaValueDescriptor javaValueDescriptor,
                             XmlNode parentTargetNode,
                             java.util.Collection<java.lang.Object> values,
                             MoXmlSchema elementSchema,
                             java.lang.String elementName)
                      throws XmlPersistException
Specified by:
persistInstances in class MoXmlAbstractSimpleType
Throws:
XmlPersistException

persistInstancesAsList

public void persistInstancesAsList(MOJavaValueDescriptor javaValueDescriptor,
                                   XmlNode targetParentNode,
                                   java.util.Collection<java.lang.Object> values,
                                   MoXmlSchema elementSchema,
                                   java.lang.String elementName)
                            throws XmlPersistException
Specified by:
persistInstancesAsList in class MoXmlAbstractSimpleType
Throws:
XmlPersistException

readInstancesAsList

public java.util.List<java.lang.Object> readInstancesAsList(MOJavaValueDescriptor javaValueDescriptor,
                                                            XmlNode sourceNode,
                                                            java.lang.String elementName)
                                                     throws MOBeansException
Specified by:
readInstancesAsList in class MoXmlAbstractSimpleType
Throws:
MOBeansException

readInstance

public java.lang.Object readInstance(MOJavaValueDescriptor javaValueDescriptor,
                                     XmlNode sourceNode,
                                     MoXmlSchema elementSchema,
                                     java.lang.String elementName,
                                     XmlNode.ChildLocation location)
                              throws XmlPersistException,
                                     MOBeansException
Specified by:
readInstance in class MoXmlAbstractSimpleType
Throws:
XmlPersistException
MOBeansException

readInstances

public java.util.List<java.lang.Object> readInstances(MOJavaValueDescriptor javaValueDescriptor,
                                                      XmlNode sourceNode,
                                                      java.lang.String elementName)
                                               throws XmlPersistException,
                                                      MOBeansException
Specified by:
readInstances in class MoXmlAbstractSimpleType
Throws:
XmlPersistException
MOBeansException

isBuiltinSimpleType

public boolean isBuiltinSimpleType()
Specified by:
isBuiltinSimpleType in class MoXmlAbstractSimpleType


Copyright © 2008. All Rights Reserved.