ma.glasnost.orika.inheritance
Class DefaultSuperTypeResolverStrategy
java.lang.Object
ma.glasnost.orika.inheritance.DefaultSuperTypeResolverStrategy
- All Implemented Interfaces:
- SuperTypeResolverStrategy
public abstract class DefaultSuperTypeResolverStrategy
- extends Object
- implements SuperTypeResolverStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSuperTypeResolverStrategy
public DefaultSuperTypeResolverStrategy()
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.