com.ebm_ws.infra.xmlmapping.utils
Class MappedField

java.lang.Object
  extended by com.ebm_ws.infra.xmlmapping.utils.MappedField

public class MappedField
extends java.lang.Object


Field Summary
static int ANCESTOR
          This is the type of a Field that is mapped to the closest ancestor that matches the class.
static int ATTRIBUTE
          This is the type of a Field that is mapped to an XML attribute.
static int CHILD_ELT
          This is the type of a Field that is mapped to one or several elements in a named child element.
static int COLLECTED_ELT
          This is the type of a Field that is mapped to one or several XML direct child elements.
static int CONTENT
          This is the type of a Field that is mapped to the content of the element.
static int PARENT
          This is the type of a Field that is mapped to the parent object in instanciated the model.
static int ROOT
          This is the type of a Field that is mapped to the root object in the instanciated model.
 
Constructor Summary
MappedField()
           
 
Method Summary
 java.lang.Class getBaseClass()
           
 java.lang.reflect.Field getField()
           
 int getMappingType()
           
 int getMaxOccurs()
           
 int getMinOccurs()
           
 java.lang.String getName()
           
protected static MappedField getXmlMapping(java.lang.reflect.Field field)
           
 boolean isUseRequired()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTRIBUTE

public static final int ATTRIBUTE
This is the type of a Field that is mapped to an XML attribute.

See Also:
Constant Field Values

CHILD_ELT

public static final int CHILD_ELT
This is the type of a Field that is mapped to one or several elements in a named child element.

See Also:
Constant Field Values

COLLECTED_ELT

public static final int COLLECTED_ELT
This is the type of a Field that is mapped to one or several XML direct child elements.

See Also:
Constant Field Values

CONTENT

public static final int CONTENT
This is the type of a Field that is mapped to the content of the element.

See Also:
Constant Field Values

PARENT

public static final int PARENT
This is the type of a Field that is mapped to the parent object in instanciated the model.

See Also:
Constant Field Values

ROOT

public static final int ROOT
This is the type of a Field that is mapped to the root object in the instanciated model.

See Also:
Constant Field Values

ANCESTOR

public static final int ANCESTOR
This is the type of a Field that is mapped to the closest ancestor that matches the class.

See Also:
Constant Field Values
Constructor Detail

MappedField

public MappedField()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getXmlMapping

protected static MappedField getXmlMapping(java.lang.reflect.Field field)
                                    throws XmlMappingException
Throws:
XmlMappingException

getMappingType

public int getMappingType()

getName

public java.lang.String getName()

getField

public java.lang.reflect.Field getField()

getBaseClass

public java.lang.Class getBaseClass()

isUseRequired

public boolean isUseRequired()

getMinOccurs

public int getMinOccurs()

getMaxOccurs

public int getMaxOccurs()


Copyright © 2008 eBMWebsourcing. All Rights Reserved.