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 ofIntegrationObjectDescriptorbased onIntegrationObjectModeldata structure.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IntegrationObjectDescriptorcreate(IntegrationObjectModel model)Deprecated, for removal: This API element is subject to removal in a future version.booleanequals(java.lang.Object o)java.lang.StringgetCode()Reads integration object code.java.util.Optional<TypeDescriptor>getItemTypeDescriptor(ItemModel item)Retrieves item type defined in this integration object, corresponding to the specified data item.java.util.Set<TypeDescriptor>getItemTypeDescriptors()Retrieves descriptors for all integration object items defined in this integration object.java.util.Optional<TypeDescriptor>getRootItemType()Retrieves root item type in this integration object.inthashCode()java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.integrationservices.model.impl.AbstractDescriptor
getFactory
-
-
-
-
Method Detail
-
create
@Deprecated(since="1905.09-CEP", forRemoval=true) public static IntegrationObjectDescriptor create(IntegrationObjectModel model)Deprecated, for removal: This API element is subject to removal in a future version.useDescriptorFactory.createIntegrationObjectDescriptor(IntegrationObjectModel)instead. The factory can be injected into custom code as a Spring bean.
-
getCode
public java.lang.String getCode()
Description copied from interface:IntegrationObjectDescriptorReads integration object code.- Specified by:
getCodein interfaceIntegrationObjectDescriptor- Returns:
- a code identifying the
IntegrationObject.
-
getItemTypeDescriptors
public java.util.Set<TypeDescriptor> 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
public java.util.Optional<TypeDescriptor> getItemTypeDescriptor(ItemModel item)
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
public java.util.Optional<TypeDescriptor> 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-