Class DefaultObjectType
- java.lang.Object
-
- de.hybris.platform.cockpit.model.meta.impl.DefaultObjectType
-
- All Implemented Interfaces:
ObjectType,RedeclarableObjectType
- Direct Known Subclasses:
ClassificationType,DefaultSearchType,ItemTemplate,ItemType,WidgetType
public abstract class DefaultObjectType extends java.lang.Object implements RedeclarableObjectType
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectType(java.lang.String code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddToSubtypesInternal(ObjectType type)protected voidaddToSupertypesInternal(ObjectType type)booleanequals(java.lang.Object obj)java.lang.StringgetCode()The code of the object type.java.util.Set<PropertyDescriptor>getDeclaredPropertyDescriptors()Returns all property descriptors which are declared at this type (not inherited).java.util.Set<PropertyDescriptor>getPropertyDescriptors()Returns all property descriptorsjava.util.Set<PropertyDescriptor>getRedeclaredPropertyDescriptors()Returns all property descriptors which are inherited but re-declared at this type.java.util.Set<ObjectType>getSubtypes()Direct sub types of this object type.java.util.Set<ObjectType>getSupertypes()Direct super types of this object type.inthashCode()booleanisAssignableFrom(ObjectType type)protected voidremoveFromSubtypesInternal(ObjectType type)protected voidremoveFromSupertypesInternal(ObjectType type)voidsetDeclaredPropertyDescriptors(java.util.Set<PropertyDescriptor> propertyDescriptors)voidsetRedeclaredPropertyDescriptors(java.util.Set<PropertyDescriptor> propertyDescriptors)voidsetSubtypes(java.util.Set<? extends ObjectType> types)voidsetSupertypes(java.util.Set<? extends ObjectType> types)java.lang.StringtoString()-
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
getDescription, getDescription, getName, getName, isAbstract
-
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Description copied from interface:ObjectTypeThe code of the object type.- Specified by:
getCodein interfaceObjectType
-
getSubtypes
public java.util.Set<ObjectType> getSubtypes()
Description copied from interface:ObjectTypeDirect sub types of this object type.- Specified by:
getSubtypesin interfaceObjectType
-
setSubtypes
public void setSubtypes(java.util.Set<? extends ObjectType> types)
-
addToSupertypesInternal
protected void addToSupertypesInternal(ObjectType type)
-
addToSubtypesInternal
protected void addToSubtypesInternal(ObjectType type)
-
removeFromSubtypesInternal
protected void removeFromSubtypesInternal(ObjectType type)
-
getSupertypes
public java.util.Set<ObjectType> getSupertypes()
Description copied from interface:ObjectTypeDirect super types of this object type.- Specified by:
getSupertypesin interfaceObjectType
-
setSupertypes
public void setSupertypes(java.util.Set<? extends ObjectType> types)
-
removeFromSupertypesInternal
protected void removeFromSupertypesInternal(ObjectType type)
-
getPropertyDescriptors
public java.util.Set<PropertyDescriptor> getPropertyDescriptors()
Description copied from interface:ObjectTypeReturns all property descriptors- Specified by:
getPropertyDescriptorsin interfaceObjectType
-
setDeclaredPropertyDescriptors
public void setDeclaredPropertyDescriptors(java.util.Set<PropertyDescriptor> propertyDescriptors)
-
getDeclaredPropertyDescriptors
public java.util.Set<PropertyDescriptor> getDeclaredPropertyDescriptors()
Description copied from interface:ObjectTypeReturns all property descriptors which are declared at this type (not inherited).- Specified by:
getDeclaredPropertyDescriptorsin interfaceObjectType
-
setRedeclaredPropertyDescriptors
public void setRedeclaredPropertyDescriptors(java.util.Set<PropertyDescriptor> propertyDescriptors)
-
getRedeclaredPropertyDescriptors
public java.util.Set<PropertyDescriptor> getRedeclaredPropertyDescriptors()
Description copied from interface:RedeclarableObjectTypeReturns all property descriptors which are inherited but re-declared at this type.- Specified by:
getRedeclaredPropertyDescriptorsin interfaceRedeclarableObjectType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isAssignableFrom
public boolean isAssignableFrom(ObjectType type)
- Specified by:
isAssignableFromin interfaceObjectType
-
-