Package de.hybris.bootstrap.typesystem
Class YCollectionType
- java.lang.Object
-
- de.hybris.bootstrap.typesystem.YNameSpaceElement
-
- de.hybris.bootstrap.typesystem.YTypeSystemElement
-
- de.hybris.bootstrap.typesystem.YType
-
- de.hybris.bootstrap.typesystem.YCollectionType
-
public class YCollectionType extends YType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYCollectionType.TypeOfCollection
-
Constructor Summary
Constructors Constructor Description YCollectionType(YNamespace container, java.lang.String code, java.lang.String elementTypeCode, YCollectionType.TypeOfCollection toc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object type)protected java.lang.StringgetDefaultMetaTypeCode()YTypegetElementType()java.lang.StringgetElementTypeCode()java.lang.StringgetJavaClassName()YCollectionType.TypeOfCollectiongetTypeOfCollection()inthashCode()booleanisAssignableFrom(YType type)Tests whether this collection type is assignable from another collection type.voidvalidate()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, getCustomProps, getMetaType, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
-
-
-
Constructor Detail
-
YCollectionType
public YCollectionType(YNamespace container, java.lang.String code, java.lang.String elementTypeCode, YCollectionType.TypeOfCollection toc)
-
-
Method Detail
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
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.
-
getElementTypeCode
public java.lang.String getElementTypeCode()
-
getTypeOfCollection
public YCollectionType.TypeOfCollection getTypeOfCollection()
-
getElementType
public YType getElementType()
-
getJavaClassName
public java.lang.String getJavaClassName()
- Specified by:
getJavaClassNamein classYType
-
isAssignableFrom
public boolean isAssignableFrom(YType type)
Tests whether this collection type is assignable from another collection type. This is only true if this type's element type is assignable from the other collection type's element type and the type of collections are assignable.- 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
-
-