org.apache.commons.betwixt.strategy
Class TypeBindingStrategy.BindingType

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.TypeBindingStrategy.BindingType
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TypeBindingStrategy

public static final class TypeBindingStrategy.BindingType
extends java.lang.Object
implements java.io.Serializable

Enumerates the possible general ways that Betwixt can map a Java type to an XML type.

Author:
Jakarta Commons Team, Apache Software Foundation
See Also:
Serialized Form

Field Summary
static TypeBindingStrategy.BindingType COMPLEX
          Indicates that the java type should be bound to a complex xml type.
private static int COMPLEX_INDICATOR
           
static TypeBindingStrategy.BindingType PRIMITIVE
          Indicates that the type should be bound as a Java primitive.
private static int PRIMITIVE_INDICATOR
           
private  int type
           
 
Constructor Summary
private TypeBindingStrategy.BindingType(int type)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPLEX_INDICATOR

private static final int COMPLEX_INDICATOR
See Also:
Constant Field Values

PRIMITIVE_INDICATOR

private static final int PRIMITIVE_INDICATOR
See Also:
Constant Field Values

COMPLEX

public static final TypeBindingStrategy.BindingType COMPLEX
Indicates that the java type should be bound to a complex xml type. A complex xml type may have child elements and attributes. Betwixt determines the mapping for a java bean bound to a complex type.


PRIMITIVE

public static final TypeBindingStrategy.BindingType PRIMITIVE
Indicates that the type should be bound as a Java primitive. Betwixt may bind this to an attribute or a simple xml type. Which is determined by the configuration for binding primitives.


type

private int type
Constructor Detail

TypeBindingStrategy.BindingType

private TypeBindingStrategy.BindingType(int type)
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

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