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 ClassesModifier and TypeClassDescriptionstatic classThis is a model constructor object. -
Constructor Summary
ConstructorsConstructorDescriptionYComposedType(YNamespace container, String code, String superTypeCode, String jaloClassName) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd (to an existing list) another list which contains the defined constructor signatures.protected booleanallowMetaTypeInheritanceFrom(YComposedType superType) booleanReturns all subtypes.Returns all super type starting with the root type.getAttribute(String qualifier) Returns for the givenqualifierthe YAttributeDescriptor which is defined at this current YComposedType.getAttributeIncludingSuperType(String qualifier) Returns for the givenqualifierthe YAttributeDescriptor.Overwritten to merge all super type properties.protected Stringprotected Classgets global meta information for a typeinthashCode()booleanbooleanisAssignableFrom(YType type) booleanReturnstrueif the model generation (items.xml - tag <model>) is enabled.protected booleanbooleanbooleanbooleanbooleanvoidsetAbstract(boolean isAbstract) voidsetDeploymentName(String deploymentName) voidsetDeprecatedSince(String deprecatedSince) voidsetGenerateModel(boolean generateModel) Setter for generate model.voidsetJaloClassName(String jaloClassName) voidsetJaloOnly(boolean isJaloOnly) voidsetLegacyPersistence(boolean legacyPersistence) voidsetSingleton(boolean isSingleton) voidsetTypeDescription(String typeDescription) sets global meta information for a typevoidvalidate()Validates the element.Methods inherited from class de.hybris.bootstrap.typesystem.YType
getCode, getDefaultValueDefinition, setDefaultValueDefinition, toStringMethods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCodeMethods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
Constructor Details
-
YComposedType
-
-
Method Details
-
getDefaultMetaTypeCode
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
getMetaType
- Overrides:
getMetaTypein classYTypeSystemElement
-
allowMetaTypeInheritanceFrom
-
getCustomProps
Overwritten to merge all super type properties. UsegetOwnCustomProps()to get just the ones declared at this type.- Overrides:
getCustomPropsin classYTypeSystemElement
-
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
- 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
-
getOwnJaloClassName
-
isJaloClassAbstract
protected boolean isJaloClassAbstract() -
setTypeDescription
sets global meta information for a type -
getTypeDescription
gets global meta information for a type -
isViewType
public boolean isViewType() -
getJaloClass
-
getOwnJaloClass
-
setJaloClassName
-
getSuperTypeCode
-
getSuperType
-
getJaloOnlyClass
-
isJaloOnly
public boolean isJaloOnly() -
setJaloOnly
public void setJaloOnly(boolean isJaloOnly) -
getDeploymentName
-
setDeploymentName
-
getDeployment
-
getOwnDeployment
-
getAttribute
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
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
-
getAllSuperTypes
Returns all super type starting with the root type. -
getAllSubtypes
Returns all subtypes. That includes this type's own subtypes, their subtypes, etc. -
getAttributes
-
getDeclaredAttributes
-
getRedeclaredAttributes
-
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
Add (to an existing list) another list which contains the defined constructor signatures. -
isLegacyPersistence
public boolean isLegacyPersistence() -
setLegacyPersistence
public void setLegacyPersistence(boolean legacyPersistence) -
getDeprecatedSince
-
setDeprecatedSince
-
isAssignableFrom
- Specified by:
isAssignableFromin classYType
-
equals
-
hashCode
public int hashCode()
-