org.apache.commons.betwixt.strategy
Class TypeBindingStrategy

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.TypeBindingStrategy
Direct Known Subclasses:
TypeBindingStrategy.Default

public abstract class TypeBindingStrategy
extends java.lang.Object

Determines the way that a type (of object) should be bound by Betwixt.

Author:
Apache Commons Team, Apache Software Foundation

Nested Class Summary
static class TypeBindingStrategy.BindingType
          Enumerates the possible general ways that Betwixt can map a Java type to an XML type.
static class TypeBindingStrategy.Default
          The default TypeBindingStrategy used by Betwixt.
 
Field Summary
static TypeBindingStrategy DEFAULT
          The default Betwixt TypeBindingStrategy implementation.
 
Constructor Summary
TypeBindingStrategy()
           
 
Method Summary
abstract  TypeBindingStrategy.BindingType bindingType(java.lang.Class type)
          Gets the binding type to be used for the given Java type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final TypeBindingStrategy DEFAULT
The default Betwixt TypeBindingStrategy implementation. Since the default implementation has no state, a singleton instance can be provided.

Constructor Detail

TypeBindingStrategy

public TypeBindingStrategy()
Method Detail

bindingType

public abstract TypeBindingStrategy.BindingType bindingType(java.lang.Class type)
Gets the binding type to be used for the given Java type.

Parameters:
type - Class for which the binding type is to be determined, not null
Returns:
BindingType enumeration indicating the type of binding, not null


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