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

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.TypeBindingStrategy
      extended by org.apache.commons.betwixt.strategy.TypeBindingStrategy.Default
Enclosing class:
TypeBindingStrategy

public static final class TypeBindingStrategy.Default
extends TypeBindingStrategy

The default TypeBindingStrategy used by Betwixt. This implementation recognizes all the usual Java primitive wrappers (plus a few more that will in most typical use cases be regarded in the same way).

Author:
Apache Commons Team, Apache Software Foundation

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.betwixt.strategy.TypeBindingStrategy
TypeBindingStrategy.BindingType, TypeBindingStrategy.Default
 
Field Summary
 
Fields inherited from class org.apache.commons.betwixt.strategy.TypeBindingStrategy
DEFAULT
 
Constructor Summary
TypeBindingStrategy.Default()
           
 
Method Summary
 TypeBindingStrategy.BindingType bindingType(java.lang.Class type)
          Gets the binding type to be used for the given Java type.
protected  boolean isStandardPrimitive(java.lang.Class type)
          is the given type one of the standard Betwixt primitives?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeBindingStrategy.Default

public TypeBindingStrategy.Default()
Method Detail

bindingType

public TypeBindingStrategy.BindingType bindingType(java.lang.Class type)
Gets the binding type to be used for the given Java type. This implementation recognizes all the usual Java primitive wrappers (plus a few more that will in most typical use cases be regarded in the same way).

Specified by:
bindingType in class TypeBindingStrategy
Parameters:
type - Class for which the binding type is to be determined, not null
Returns:
BindingType enumeration indicating the type of binding, not null

isStandardPrimitive

protected boolean isStandardPrimitive(java.lang.Class type)
is the given type one of the standard Betwixt primitives?

Parameters:
type - Class, not null
Returns:
true if the type is one of the standard Betwixt primitives


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