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:
Apache 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.
static TypeBindingStrategy.BindingType PRIMITIVE
          Indicates that the type should be bound as a Java primitive.
 
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

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.

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()


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.