Package com.hybris.cockpitng.util.type
Class BackofficeTypeUtils
- java.lang.Object
-
- com.hybris.cockpitng.util.type.BackofficeTypeUtils
-
- All Implemented Interfaces:
CockpitTypeUtils
public class BackofficeTypeUtils extends java.lang.Object implements CockpitTypeUtils
-
-
Constructor Summary
Constructors Constructor Description BackofficeTypeUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindClosestSuperType(java.util.List<java.lang.Object> entities)protected java.util.List<java.lang.String>findSupertypes(java.lang.Object entity)TypeFacadegetTypeFacade()booleanisAssignableFrom(java.lang.String superType, java.lang.String subType)Checks type compatibility.voidsetTypeFacade(TypeFacade typeFacade)
-
-
-
Method Detail
-
isAssignableFrom
public boolean isAssignableFrom(java.lang.String superType, java.lang.String subType)Description copied from interface:CockpitTypeUtilsChecks type compatibility. Customize it to support additional types other than java classes.- Specified by:
isAssignableFromin interfaceCockpitTypeUtils- Returns:
- true, if superType is assignable from subType, i.e. if superType really is a supertype of subtype.
-
findClosestSuperType
public java.lang.String findClosestSuperType(java.util.List<java.lang.Object> entities)
- Specified by:
findClosestSuperTypein interfaceCockpitTypeUtils
-
findSupertypes
protected java.util.List<java.lang.String> findSupertypes(java.lang.Object entity)
-
getTypeFacade
public TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
-