Class ItemTemplate
- java.lang.Object
-
- de.hybris.platform.cockpit.model.meta.impl.DefaultObjectType
-
- de.hybris.platform.cockpit.model.meta.impl.ItemTemplate
-
- All Implemented Interfaces:
ObjectTemplate
,ObjectType
,RedeclarableObjectType
public class ItemTemplate extends DefaultObjectType implements ObjectTemplate
-
-
Constructor Summary
Constructors Constructor Description ItemTemplate(CockpitItemTemplateModel cockpitItemTemplate, ItemType baseType, java.util.Collection<? extends ExtendedType> extendedTypes, java.lang.String code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemType
getBaseType()
java.lang.String
getBaseTypeCode()
CockpitItemTemplateModel
getCockpitItemTemplate()
java.util.Set<PropertyDescriptor>
getDeclaredPropertyDescriptors()
Returns all property descriptors which are declared at this type (not inherited).java.lang.String
getDescription()
Returns type description according to current session languagejava.lang.String
getDescription(java.lang.String languageIsoCode)
Returns type description according to given languagejava.util.Collection<? extends ExtendedType>
getExtendedTypes()
java.lang.String
getName()
Returns type name according to current session languagejava.lang.String
getName(java.lang.String languageIsoCode)
Returns type name according to given languagejava.util.Set<PropertyDescriptor>
getPropertyDescriptors()
Returns all property descriptorsjava.util.Set<ObjectType>
getSubtypes()
Direct sub types of this object type.java.util.Set<ObjectType>
getSupertypes()
Direct super types of this object type.java.lang.String
getTemplateCode()
boolean
isAbstract()
Returns true if this type is not suitable for creating instances.boolean
isDefaultTemplate()
-
Methods inherited from class de.hybris.platform.cockpit.model.meta.impl.DefaultObjectType
addToSubtypesInternal, addToSupertypesInternal, equals, getCode, getRedeclaredPropertyDescriptors, hashCode, isAssignableFrom, removeFromSubtypesInternal, removeFromSupertypesInternal, setDeclaredPropertyDescriptors, setRedeclaredPropertyDescriptors, setSubtypes, setSupertypes, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.model.meta.ObjectType
getCode, isAssignableFrom
-
-
-
-
Constructor Detail
-
ItemTemplate
public ItemTemplate(CockpitItemTemplateModel cockpitItemTemplate, ItemType baseType, java.util.Collection<? extends ExtendedType> extendedTypes, java.lang.String code)
-
-
Method Detail
-
getCockpitItemTemplate
public CockpitItemTemplateModel getCockpitItemTemplate()
-
getBaseTypeCode
public java.lang.String getBaseTypeCode()
-
getTemplateCode
public java.lang.String getTemplateCode()
-
getBaseType
public ItemType getBaseType()
- Specified by:
getBaseType
in interfaceObjectTemplate
-
getExtendedTypes
public java.util.Collection<? extends ExtendedType> getExtendedTypes()
- Specified by:
getExtendedTypes
in interfaceObjectTemplate
-
getDeclaredPropertyDescriptors
public java.util.Set<PropertyDescriptor> getDeclaredPropertyDescriptors()
Description copied from interface:ObjectType
Returns all property descriptors which are declared at this type (not inherited).- Specified by:
getDeclaredPropertyDescriptors
in interfaceObjectType
- Overrides:
getDeclaredPropertyDescriptors
in classDefaultObjectType
-
getPropertyDescriptors
public java.util.Set<PropertyDescriptor> getPropertyDescriptors()
Description copied from interface:ObjectType
Returns all property descriptors- Specified by:
getPropertyDescriptors
in interfaceObjectType
- Overrides:
getPropertyDescriptors
in classDefaultObjectType
-
getSubtypes
public java.util.Set<ObjectType> getSubtypes()
Description copied from interface:ObjectType
Direct sub types of this object type.- Specified by:
getSubtypes
in interfaceObjectType
- Overrides:
getSubtypes
in classDefaultObjectType
-
getSupertypes
public java.util.Set<ObjectType> getSupertypes()
Description copied from interface:ObjectType
Direct super types of this object type.- Specified by:
getSupertypes
in interfaceObjectType
- Overrides:
getSupertypes
in classDefaultObjectType
-
isDefaultTemplate
public boolean isDefaultTemplate()
- Specified by:
isDefaultTemplate
in interfaceObjectTemplate
-
isAbstract
public boolean isAbstract()
Description copied from interface:ObjectType
Returns true if this type is not suitable for creating instances.- Specified by:
isAbstract
in interfaceObjectType
-
getName
public java.lang.String getName()
Description copied from interface:ObjectType
Returns type name according to current session language- Specified by:
getName
in interfaceObjectType
-
getName
public java.lang.String getName(java.lang.String languageIsoCode)
Description copied from interface:ObjectType
Returns type name according to given language- Specified by:
getName
in interfaceObjectType
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ObjectType
Returns type description according to current session language- Specified by:
getDescription
in interfaceObjectType
-
getDescription
public java.lang.String getDescription(java.lang.String languageIsoCode)
Description copied from interface:ObjectType
Returns type description according to given language- Specified by:
getDescription
in interfaceObjectType
-
-