org.apache.commons.betwixt.strategy
Class TypeBindingStrategy.Default
java.lang.Object
org.apache.commons.betwixt.strategy.TypeBindingStrategy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeBindingStrategy.Default
public TypeBindingStrategy.Default()
bindingType
public TypeBindingStrategy.BindingType bindingType(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(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-2009 Apache Software Foundation. All Rights Reserved.