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

java.lang.Object
  extended by com.abra.j2xb.beans.xmlModel.types.MoXmlType
      extended by com.abra.j2xb.beans.xmlModel.types.MoXmlAbstractSimpleType
Direct Known Subclasses:
MoXmlSimpleType, MoXmlUnionType

public abstract class MoXmlAbstractSimpleType
extends MoXmlType

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

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

Field Detail

simpleTypeDescriptors

protected java.util.List<MOPropertySimpleTypeDescriptor> simpleTypeDescriptors
Constructor Detail

MoXmlAbstractSimpleType

public MoXmlAbstractSimpleType(MoXmlSchema schema)

MoXmlAbstractSimpleType

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

MoXmlAbstractSimpleType

public MoXmlAbstractSimpleType(MoXmlSchema schema,
                               java.lang.String globalTypeName,
                               MOPropertySimpleTypeDescriptor simpleTypeDescriptor)
Method Detail

createSimpleType

public static MoXmlAbstractSimpleType createSimpleType(MoXmlSchema xmlSchema,
                                                       MOJavaValueDescriptor javaValueDescriptor)

createSimpleType

public static MoXmlAbstractSimpleType createSimpleType(MoXmlSchema xmlSchema,
                                                       MOJavaValueDescriptor javaValueDescriptor,
                                                       java.lang.String globalTypeName)

toXmlValue

protected XmlValue toXmlValue(java.lang.Object value)

fromXmlValue

protected java.lang.Object fromXmlValue(XmlValue xmlValue)

persistInstance

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

persistInstances

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

persistInstancesAsList

public abstract void persistInstancesAsList(MOJavaValueDescriptor javaValueDescriptor,
                                            XmlNode targetParentNode,
                                            java.util.Collection<java.lang.Object> collection,
                                            MoXmlSchema elementSchema,
                                            java.lang.String elementName)
                                     throws XmlPersistException
Throws:
XmlPersistException

readInstancesAsList

public abstract java.util.List<java.lang.Object> readInstancesAsList(MOJavaValueDescriptor javaValueDescriptor,
                                                                     XmlNode sourceNode,
                                                                     java.lang.String elementName)
                                                              throws MOBeansException
Throws:
MOBeansException

readInstance

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

readInstances

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

isGlobal

public boolean isGlobal()
Overrides:
isGlobal in class MoXmlType

isBuiltinSimpleType

public abstract boolean isBuiltinSimpleType()


Copyright © 2008. All Rights Reserved.