Class ClassificationTypeAttributeDescriptor
java.lang.Object
de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
de.hybris.platform.integrationservices.model.impl.ClassificationTypeAttributeDescriptor
- All Implemented Interfaces:
TypeAttributeDescriptor
A base class for all attribute descriptor implementations.
Implementation of TypeAttributeDescriptor based on IntegrationObjectItemClassificationAttributeModel
This implementation is effectively immutable and therefore is thread safe.
Reuse this class through composition, not inheritance.
-
Method Summary
Modifier and TypeMethodDescriptionaccessor()Gets theAttributeValueAccessorfor accessing this attribute's valuebooleanGets name of the attribute described by this descriptor.Retrieves type of this attribute value(s).Gets theCollectionDescriptorGets name of this attribute in the platform type system.@NotNull TypeDescriptorRetrieves descriptor of the type, this attribute is associated with.inthashCode()booleanDetermines whether the item referenced by this attribute should be persisted when the item with this attribute is persisted.booleanDetermines whether this attribute contains a single value or multiple values (a collection of values).booleanDetermines whether the value of this descriptor can be localized.booleanDetermines whether the attribute represented by this descriptor can takenullvalues.booleanDetermines whether the value of this descriptor is a primitive typebooleanDetermines whether this attribute is readablebooleanisSettable(Object item) Indicates whether this attribute's value can be set.toString()Methods inherited from class de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
getFactoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.integrationservices.model.TypeAttributeDescriptor
getMapDescriptor, isKeyAttribute, isMap, isPartOf, reverse
-
Method Details
-
getQualifier
Description copied from interface:TypeAttributeDescriptorGets name of this attribute in the platform type system.- Returns:
- name of this attribute in the type system.
-
isCollection
public boolean isCollection()Description copied from interface:TypeAttributeDescriptorDetermines whether this attribute contains a single value or multiple values (a collection of values).- Returns:
true, if this attribute contains a collection of primitive or complex type values;false, if this attribute contains only a single primitive or complex type value.
-
isNullable
public boolean isNullable()Description copied from interface:TypeAttributeDescriptorDetermines whether the attribute represented by this descriptor can takenullvalues.- Returns:
true, if the attribute can takenullvalues;false, if the attribute value is required.
-
isAutoCreate
public boolean isAutoCreate()Description copied from interface:TypeAttributeDescriptorDetermines whether the item referenced by this attribute should be persisted when the item with this attribute is persisted. UnlikeTypeAttributeDescriptor.isPartOf()this method does not require the referenced item to be an integral part of the owner item. The referenced item may have its independent existence in the domain model and yet it will be persisted together with the item holding an attribute described by this descriptor.- Returns:
true, if the attribute's item should be included within the item holding an attribute described by this descriptor;false, if the referenced item should not be persisted with the item holding an attribute described by this descriptor.- See Also:
-
isLocalized
public boolean isLocalized()Description copied from interface:TypeAttributeDescriptorDetermines whether the value of this descriptor can be localized. This method may need to be used withTypeAttributeDescriptor.isMap()to determine whether the attribute supports multiple locale specific values. Some attributes may be localized but do not support multi-locale values. For example, a simple Numeric or Boolean attribute can be declared as localized.- Returns:
- true if localized, else false
-
isPrimitive
public boolean isPrimitive()Description copied from interface:TypeAttributeDescriptorDetermines whether the value of this descriptor is a primitive type- Returns:
- true if it's a primitive type, else false
-
isSettable
Description copied from interface:TypeAttributeDescriptorIndicates whether this attribute's value can be set.- Returns:
trueif value is settable,falseotherwise
-
isReadable
public boolean isReadable()Description copied from interface:TypeAttributeDescriptorDetermines whether this attribute is readable- Returns:
trueif the attribute is readable, false otherwise. Returnstrueby default for backwards compatibility
-
getCollectionDescriptor
Description copied from interface:TypeAttributeDescriptorGets theCollectionDescriptor- Returns:
- A collection descriptor
-
getAttributeName
Description copied from interface:TypeAttributeDescriptorGets name of the attribute described by this descriptor.- Specified by:
getAttributeNamein interfaceTypeAttributeDescriptor- Returns:
- name of the attribute as it was defined for the integration object.
-
getAttributeType
Description copied from interface:TypeAttributeDescriptorRetrieves type of this attribute value(s).- Specified by:
getAttributeTypein interfaceTypeAttributeDescriptor- Returns:
- type of this attribute value, which may be a primitive type or a complex type referring an item in the type system; or a type of the referenced element(s) in case, if this attribute contains a collection of values or represents a one-to-one, one-to-many or many-to-many relationship.
- See Also:
-
getTypeDescriptor
Description copied from interface:TypeAttributeDescriptorRetrieves descriptor of the type, this attribute is associated with.- Specified by:
getTypeDescriptorin interfaceTypeAttributeDescriptor- Returns:
- descriptor of the item type that contains the attribute described by this attribute descriptor.
-
accessor
Description copied from interface:TypeAttributeDescriptorGets theAttributeValueAccessorfor accessing this attribute's value- Specified by:
accessorin interfaceTypeAttributeDescriptor- Returns:
- The AttributeValueAccessor
-
equals
-
hashCode
public int hashCode() -
toString
-