com.abra.j2xb.beans.xmlModel
Class MoXmlSimpleProperty

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.MoXmlSimpleProperty

public class MoXmlSimpleProperty
extends MoXmlProperty

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
 
Constructor Summary
MoXmlSimpleProperty(MoXmlElement parent, MoXmlSchema schema, MOPropertyDescriptor propertyDescriptor)
           
 
Method Summary
static java.lang.String getEnumTypeKey(java.lang.Class<?> enumType)
           
 MoXmlType getType()
           
 java.lang.Object getValue(XmlNode sourceNode)
           
 MoXmlProperty.XmlLocation getXmlLocation()
           
static boolean isSimpleType(MOPropertyDescriptor propertyDescriptor)
           
 boolean isXmlAttribute()
           
 void persistInstance(XmlNode targetParentNode, java.lang.Object sourceInstance)
           
 void printElement(java.io.PrintWriter pw, java.lang.String indent)
           
 void readInstance(XmlNode sourceNode, java.lang.Object targetInstance, java.util.Set<MoXmlElement> suppressElements)
           
 
Methods inherited from class com.abra.j2xb.beans.xmlModel.MoXmlProperty
createMoXmlProperty, getElementName, getJavaType, getPropertyDescriptor, getSchema, isXmlOptional, 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
 

Constructor Detail

MoXmlSimpleProperty

public MoXmlSimpleProperty(MoXmlElement parent,
                           MoXmlSchema schema,
                           MOPropertyDescriptor propertyDescriptor)
Method Detail

getEnumTypeKey

public static java.lang.String getEnumTypeKey(java.lang.Class<?> enumType)

printElement

public void printElement(java.io.PrintWriter pw,
                         java.lang.String indent)
Specified by:
printElement in class MoXmlElement

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

getXmlLocation

public MoXmlProperty.XmlLocation getXmlLocation()
Overrides:
getXmlLocation in class MoXmlProperty

isSimpleType

public static boolean isSimpleType(MOPropertyDescriptor propertyDescriptor)

getType

public MoXmlType getType()

isXmlAttribute

public boolean isXmlAttribute()

getValue

public java.lang.Object getValue(XmlNode sourceNode)
                          throws MOBeansException
Throws:
MOBeansException


Copyright © 2008. All Rights Reserved.