org.apache.commons.betwixt.strategy
Class SimpleTypeMapper.Binding

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.SimpleTypeMapper.Binding
Enclosing class:
SimpleTypeMapper

public static class SimpleTypeMapper.Binding
extends java.lang.Object

Enumerates binding options for simple types. Simple types (in xml) have no attributes or child elements. For Betwixt, these are converted to and from strings and these strings used to populate either attributes or element body's.

Version:
$Revision: 561314 $
Author:
Apache Commons Team

Field Summary
static SimpleTypeMapper.Binding ATTRIBUTE
           
static SimpleTypeMapper.Binding ELEMENT
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Equals compatible with the enumeration.
 int hashCode()
          Implementation compatible with equals
 java.lang.String toString()
          Generate something appropriate for logging.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT

public static final SimpleTypeMapper.Binding ELEMENT

ATTRIBUTE

public static final SimpleTypeMapper.Binding ATTRIBUTE
Method Detail

equals

public boolean equals(java.lang.Object obj)
Equals compatible with the enumeration.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Implementation compatible with equals

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Generate something appropriate for logging.

Overrides:
toString in class java.lang.Object


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