Package de.hybris.bootstrap.typesystem
Class YComposedType
- java.lang.Object
-
- de.hybris.bootstrap.typesystem.YNameSpaceElement
-
- de.hybris.bootstrap.typesystem.YTypeSystemElement
-
- de.hybris.bootstrap.typesystem.YType
-
- de.hybris.bootstrap.typesystem.YComposedType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYComposedType.YModelConstructorThis is a model constructor object.
-
Constructor Summary
Constructors Constructor Description YComposedType(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstructorSignatures(java.util.List<ModelTagListener.ModelDataConstructor> signatures)Add (to an existing list) another list which contains the defined constructor signatures.protected booleanallowMetaTypeInheritanceFrom(YComposedType superType)booleanequals(java.lang.Object type)java.util.Set<YComposedType>getAllSubtypes()Returns all subtypes.java.util.List<YComposedType>getAllSuperTypes()Returns all super type starting with the root type.YAttributeDescriptorgetAttribute(java.lang.String qualifier)Returns for the givenqualifierthe YAttributeDescriptor which is defined at this current YComposedType.YAttributeDescriptorgetAttributeIncludingSuperType(java.lang.String qualifier)Returns for the givenqualifierthe YAttributeDescriptor.java.util.Set<YAttributeDescriptor>getAttributes()java.util.Map<java.lang.String,java.lang.String>getCustomProps()Overwritten to merge all super type properties.java.util.Set<YAttributeDescriptor>getDeclaredAttributes()protected java.lang.StringgetDefaultMetaTypeCode()YDeploymentgetDeployment()java.lang.StringgetDeploymentName()java.lang.StringgetDeprecatedSince()java.lang.ClassgetJaloClass()java.lang.StringgetJaloClassName()protected java.lang.ClassgetJaloOnlyClass()java.lang.StringgetJavaClassName()YComposedTypegetMetaType()java.util.Map<java.lang.String,java.lang.String>getOwnCustomProps()YDeploymentgetOwnDeployment()java.lang.ClassgetOwnJaloClass()java.lang.StringgetOwnJaloClassName()java.util.Set<YAttributeDescriptor>getRedeclaredAttributes()java.util.Set<YComposedType>getSubtypes()YComposedTypegetSuperType()java.lang.StringgetSuperTypeCode()java.lang.StringgetTypeDescription()gets global meta information for a typejava.util.List<YComposedType.YModelConstructor>getYModelConstructors()inthashCode()booleanisAbstract()booleanisAssignableFrom(YType type)booleanisGenerateModel()Returnstrueif the model generation (items.xml - tag <model>) is enabled.protected booleanisJaloClassAbstract()booleanisJaloOnly()booleanisLegacyPersistence()booleanisSingleton()booleanisViewType()voidsetAbstract(boolean isAbstract)voidsetDeploymentName(java.lang.String deploymentName)voidsetDeprecatedSince(java.lang.String deprecatedSince)voidsetGenerateModel(boolean generateModel)Setter for generate model.voidsetJaloClassName(java.lang.String jaloClassName)voidsetJaloOnly(boolean isJaloOnly)voidsetLegacyPersistence(boolean legacyPersistence)voidsetSingleton(boolean isSingleton)voidsetTypeDescription(java.lang.String typeDescription)sets global meta information for a typevoidvalidate()Validates the element.-
Methods inherited from class de.hybris.bootstrap.typesystem.YType
getCode, getDefaultValueDefinition, setDefaultValueDefinition, toString
-
Methods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
-
-
-
Constructor Detail
-
YComposedType
public YComposedType(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
-
Method Detail
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
getMetaType
public YComposedType getMetaType()
- Overrides:
getMetaTypein classYTypeSystemElement
-
allowMetaTypeInheritanceFrom
protected boolean allowMetaTypeInheritanceFrom(YComposedType superType)
-
getCustomProps
public java.util.Map<java.lang.String,java.lang.String> getCustomProps()
Overwritten to merge all super type properties. UsegetOwnCustomProps()to get just the ones declared at this type.- Overrides:
getCustomPropsin classYTypeSystemElement
-
getOwnCustomProps
public java.util.Map<java.lang.String,java.lang.String> getOwnCustomProps()
-
validate
public void validate()
Description copied from class:YNameSpaceElementValidates the element. This should check whether or not lazy references can be resolved or any data is missing.
-
getYModelConstructors
public java.util.List<YComposedType.YModelConstructor> getYModelConstructors()
- Returns:
- the list with the YModelConstructor for this type
-
isAbstract
public boolean isAbstract()
-
setAbstract
public void setAbstract(boolean isAbstract)
-
isSingleton
public boolean isSingleton()
-
setSingleton
public void setSingleton(boolean isSingleton)
-
getJaloClassName
public java.lang.String getJaloClassName()
-
getOwnJaloClassName
public java.lang.String getOwnJaloClassName()
-
isJaloClassAbstract
protected boolean isJaloClassAbstract()
-
setTypeDescription
public void setTypeDescription(java.lang.String typeDescription)
sets global meta information for a type
-
getTypeDescription
public java.lang.String getTypeDescription()
gets global meta information for a type
-
isViewType
public boolean isViewType()
-
getJaloClass
public java.lang.Class getJaloClass()
-
getOwnJaloClass
public java.lang.Class getOwnJaloClass()
-
setJaloClassName
public void setJaloClassName(java.lang.String jaloClassName)
-
getSuperTypeCode
public java.lang.String getSuperTypeCode()
-
getSuperType
public YComposedType getSuperType()
-
getJaloOnlyClass
protected java.lang.Class getJaloOnlyClass()
-
isJaloOnly
public boolean isJaloOnly()
-
setJaloOnly
public void setJaloOnly(boolean isJaloOnly)
-
getDeploymentName
public java.lang.String getDeploymentName()
-
setDeploymentName
public void setDeploymentName(java.lang.String deploymentName)
-
getDeployment
public YDeployment getDeployment()
-
getOwnDeployment
public YDeployment getOwnDeployment()
-
getAttribute
public YAttributeDescriptor getAttribute(java.lang.String qualifier)
Returns for the givenqualifierthe YAttributeDescriptor which is defined at this current YComposedType.- Parameters:
qualifier- the attribute qualifier- Returns:
nullif such YAttributeDescriptor does not exists (or was defined at a supertype. Use thengetAttributeIncludingSuperType(String)
-
getAttributeIncludingSuperType
public YAttributeDescriptor getAttributeIncludingSuperType(java.lang.String qualifier)
Returns for the givenqualifierthe YAttributeDescriptor. It doesn't matter if the attribute was defined at the current YComposedType or any supertype.- Parameters:
qualifier- the attribute qualifier- Returns:
nullif the given qualifier does not exists at the current type or any supertype
-
getSubtypes
public java.util.Set<YComposedType> getSubtypes()
-
getAllSuperTypes
public java.util.List<YComposedType> getAllSuperTypes()
Returns all super type starting with the root type.
-
getAllSubtypes
public java.util.Set<YComposedType> getAllSubtypes()
Returns all subtypes. That includes this type's own subtypes, their subtypes, etc.
-
getAttributes
public java.util.Set<YAttributeDescriptor> getAttributes()
-
getDeclaredAttributes
public java.util.Set<YAttributeDescriptor> getDeclaredAttributes()
-
getRedeclaredAttributes
public java.util.Set<YAttributeDescriptor> getRedeclaredAttributes()
-
getJavaClassName
public java.lang.String getJavaClassName()
- Specified by:
getJavaClassNamein classYType
-
isGenerateModel
public boolean isGenerateModel()
Returnstrueif the model generation (items.xml - tag <model>) is enabled.- Returns:
falseotherwise.
-
setGenerateModel
public void setGenerateModel(boolean generateModel)
Setter for generate model.- Parameters:
generateModel- the value
-
addConstructorSignatures
public void addConstructorSignatures(java.util.List<ModelTagListener.ModelDataConstructor> signatures)
Add (to an existing list) another list which contains the defined constructor signatures.
-
isLegacyPersistence
public boolean isLegacyPersistence()
-
setLegacyPersistence
public void setLegacyPersistence(boolean legacyPersistence)
-
getDeprecatedSince
public java.lang.String getDeprecatedSince()
-
setDeprecatedSince
public void setDeprecatedSince(java.lang.String deprecatedSince)
-
isAssignableFrom
public boolean isAssignableFrom(YType type)
- Specified by:
isAssignableFromin classYType
-
equals
public boolean equals(java.lang.Object type)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-