Class VirtualTypeAttributeDescriptor

java.lang.Object
de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
de.hybris.platform.integrationservices.model.impl.VirtualTypeAttributeDescriptor
All Implemented Interfaces:
TypeAttributeDescriptor

public class VirtualTypeAttributeDescriptor extends AbstractDescriptor
A base class for all attribute descriptor implementations.

Implementation of TypeAttributeDescriptor based on IntegrationObjectItemVirtualAttributeModel

This implementation is effectively immutable and therefore is thread safe.

Reuse this class through composition, not inheritance.

  • Method Details

    • getQualifier

      public String getQualifier()
      Description copied from interface: TypeAttributeDescriptor
      Gets 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: TypeAttributeDescriptor
      Determines 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: TypeAttributeDescriptor
      Determines whether the attribute represented by this descriptor can take null values.
      Returns:
      true, if the attribute can take null values; false, if the attribute value is required.
    • isAutoCreate

      public boolean isAutoCreate()
      Description copied from interface: TypeAttributeDescriptor
      Determines whether the item referenced by this attribute should be persisted when the item with this attribute is persisted. Unlike TypeAttributeDescriptor.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: TypeAttributeDescriptor
      Determines whether the value of this descriptor can be localized. This method may need to be used with TypeAttributeDescriptor.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: TypeAttributeDescriptor
      Determines whether the value of this descriptor is a primitive type
      Returns:
      true if it's a primitive type, else false
    • isSettable

      public boolean isSettable(Object item)
      Description copied from interface: TypeAttributeDescriptor
      Indicates whether this attribute's value can be set.
      Returns:
      true if value is settable, false otherwise
    • getCollectionDescriptor

      public CollectionDescriptor getCollectionDescriptor()
      Description copied from interface: TypeAttributeDescriptor
      Returns:
      A collection descriptor
    • getLogicLocation

      public String getLogicLocation()
    • getAttributeName

      public String getAttributeName()
      Description copied from interface: TypeAttributeDescriptor
      Gets name of the attribute described by this descriptor.
      Specified by:
      getAttributeName in interface TypeAttributeDescriptor
      Returns:
      name of the attribute as it was defined for the integration object.
    • getAttributeType

      public TypeDescriptor getAttributeType()
      Description copied from interface: TypeAttributeDescriptor
      Retrieves type of this attribute value(s).
      Specified by:
      getAttributeType in interface TypeAttributeDescriptor
      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

      @NotNull public @NotNull TypeDescriptor getTypeDescriptor()
      Description copied from interface: TypeAttributeDescriptor
      Retrieves descriptor of the type, this attribute is associated with.
      Specified by:
      getTypeDescriptor in interface TypeAttributeDescriptor
      Returns:
      descriptor of the item type that contains the attribute described by this attribute descriptor.
    • accessor

      public AttributeValueAccessor accessor()
      Description copied from interface: TypeAttributeDescriptor
      Gets the AttributeValueAccessor for accessing this attribute's value
      Specified by:
      accessor in interface TypeAttributeDescriptor
      Returns:
      The AttributeValueAccessor
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object