Class DefaultIntegrationObjectDescriptor
java.lang.Object
de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
de.hybris.platform.integrationservices.model.impl.DefaultIntegrationObjectDescriptor
- All Implemented Interfaces:
IntegrationObjectDescriptor
public class DefaultIntegrationObjectDescriptor
extends AbstractDescriptor
implements IntegrationObjectDescriptor
Default implementation of
IntegrationObjectDescriptor based on IntegrationObjectModel data structure.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(TypeDescriptor descriptor) Checks whether the specified type descriptor is explicitly defined in the integration objectbooleangetCode()Reads integration object code.Deprecated, for removal: This API element is subject to removal in a future version.Retrieves descriptors for all integration object items defined in this integration object.Deprecated, for removal: This API element is subject to removal in a future version.usegetRootType()instead.Retrieves root item type in this integration object.getTypeDescriptor(Object payloadObject) Retrieves theTypeDescriptorfor the type defined in this integration object, corresponding to the specified data item.inthashCode()toString()Methods inherited from class de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
getFactory
-
Method Details
-
getCode
Description copied from interface:IntegrationObjectDescriptorReads integration object code.- Specified by:
getCodein interfaceIntegrationObjectDescriptor- Returns:
- a code identifying the
IntegrationObject.
-
getItemTypeDescriptors
Description copied from interface:IntegrationObjectDescriptorRetrieves descriptors for all integration object items defined in this integration object.- Specified by:
getItemTypeDescriptorsin interfaceIntegrationObjectDescriptor- Returns:
- a set of all non-primitive item type descriptors defined in this integration object or an empty set, if this integration object does not have a single integration object item defined yet.
-
getItemTypeDescriptor
@Deprecated(since="2211.FP1", forRemoval=true) public Optional<TypeDescriptor> getItemTypeDescriptor(ItemModel item) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves item type defined in this integration object, corresponding to the specified data item.- Specified by:
getItemTypeDescriptorin interfaceIntegrationObjectDescriptor- Parameters:
item- an item to find a type descriptor for.- Returns:
- a descriptor for the item type corresponding to the specified item or an empty value, if the specified item is not related to this integration object.
-
getTypeDescriptor
Description copied from interface:IntegrationObjectDescriptorRetrieves theTypeDescriptorfor the type defined in this integration object, corresponding to the specified data item.- Specified by:
getTypeDescriptorin interfaceIntegrationObjectDescriptor- Parameters:
payloadObject- an item or pojo to find a type descriptor for.- Returns:
- a descriptor for the item type or POJO corresponding to the specified item or an empty value, if the specified item is not related to this integration object.
-
getRootItemType
Deprecated, for removal: This API element is subject to removal in a future version.usegetRootType()instead.Retrieves root item type in this integration object.- Specified by:
getRootItemTypein interfaceIntegrationObjectDescriptor- Returns:
- a descriptor for the root item type in this
IntegrationObjector an empty value, if root item type is not defined in this object.
-
getRootType
Description copied from interface:IntegrationObjectDescriptorRetrieves root item type in this integration object.- Specified by:
getRootTypein interfaceIntegrationObjectDescriptor- Returns:
- a descriptor for the root item type in this
IntegrationObjector an empty value, if root item type is not defined in this object.
-
contains
Description copied from interface:IntegrationObjectDescriptorChecks whether the specified type descriptor is explicitly defined in the integration object- Specified by:
containsin interfaceIntegrationObjectDescriptor- Parameters:
descriptor- a type descriptor to check- Returns:
true, if the type descriptor is explicitly defined in the integration object as an item or class;falseotherwise
-
equals
-
hashCode
public int hashCode() -
toString
-
getTypeDescriptor(Object)