ma.glasnost.orika.inheritance
Class DefaultSuperTypeResolverStrategy

java.lang.Object
  extended by ma.glasnost.orika.inheritance.DefaultSuperTypeResolverStrategy
All Implemented Interfaces:
SuperTypeResolverStrategy

public abstract class DefaultSuperTypeResolverStrategy
extends Object
implements SuperTypeResolverStrategy


Constructor Summary
DefaultSuperTypeResolverStrategy()
           
 
Method Summary
 boolean accept(Type<?> type)
           
abstract  boolean isAcceptable(Type<?> type)
           
 boolean shouldLookupSuperType(Type<?> type)
           
 boolean shouldPreferClassOverInterface()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSuperTypeResolverStrategy

public DefaultSuperTypeResolverStrategy()
Method Detail

isAcceptable

public abstract boolean isAcceptable(Type<?> type)

accept

public boolean accept(Type<?> type)
Specified by:
accept in interface SuperTypeResolverStrategy
Returns:
true if the proposed super-type is acceptable

shouldLookupSuperType

public boolean shouldLookupSuperType(Type<?> type)
Specified by:
shouldLookupSuperType in interface SuperTypeResolverStrategy
Returns:
true if a super-type should be looked up for the proposed type; false signifies that the class should be returned as-is.

shouldPreferClassOverInterface

public boolean shouldPreferClassOverInterface()
Specified by:
shouldPreferClassOverInterface in interface SuperTypeResolverStrategy
Returns:
true if a super class(es) should be looked-up first before trying interfaces


Copyright © 2013 Glasnost. All Rights Reserved.