Class NullIntegrationObjectDescriptor
java.lang.Object
de.hybris.platform.integrationservices.model.impl.NullIntegrationObjectDescriptor
- All Implemented Interfaces:
IntegrationObjectDescriptor
This class uses the Null Object Design Pattern, in order to provide an object with details about the
IntegrationObjectDescriptor that could not be created due to a missing
IntegrationObjectModel.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor to create a NullIntegrationObjectDescriptor -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Reads integration object code.Retrieves item type defined in this integration object, corresponding to the specified data item.Retrieves descriptors for all integration object items defined in this integration object.Retrieves root item type in this integration object.
-
Constructor Details
-
NullIntegrationObjectDescriptor
Constructor to create a NullIntegrationObjectDescriptor- Parameters:
code- integration object code
-
-
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
Description copied from interface:IntegrationObjectDescriptorRetrieves 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.
-
getRootItemType
Description copied from interface:IntegrationObjectDescriptorRetrieves 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.
-