Interface DescriptorFactory
- All Known Implementing Classes:
DefaultDescriptorFactory
public interface DescriptorFactory
This is an <href="https://en.wikipedia.org/wiki/Abstract_factory_pattern">abstract factory responsible for providing
descriptor implementations used for Integration Object metadata representation:
IntegrationObjectDescriptor,
TypeDescriptor, and TypeAttributeDescriptor-
Method Summary
Modifier and TypeMethodDescriptioncreateClassTypeDescriptor(@NotNull IntegrationObjectDescriptor descriptor, @NotNull IntegrationObjectClassModel model) Creates a descriptor for a class in an integration object.createIntegrationObjectDescriptor(@NotNull IntegrationObjectModel model) Creates a descriptor for an integration object.createItemTypeDescriptor(@NotNull IntegrationObjectItemModel model) Creates a descriptor for an item in an integration object.Creates a descriptor for an attribute in an integration object.default TypeAttributeDescriptorcreateTypeAttributeDescriptor(@NotNull TypeDescriptor type, @NotNull AbstractIntegrationObjectItemAttributeModel model) Creates a descriptor for an attribute in an integration object.createTypeAttributeDescriptor(@NotNull TypeDescriptor type, @NotNull IntegrationObjectClassAttributeModel model) Creates a descriptor for an attribute in an integration object.default AttributeSettableCheckerFactoryGets theAttributeSettableCheckerFactory.Gets theAttributeValueAccessorFactorydefault AttributeValueGetterFactoryGets theAttributeValueGetterFactorydefault AttributeValueSetterFactoryGets theAttributeValueSetterFactory
-
Method Details
-
createIntegrationObjectDescriptor
IntegrationObjectDescriptor createIntegrationObjectDescriptor(@NotNull @NotNull IntegrationObjectModel model) Creates a descriptor for an integration object.- Parameters:
model- model of the integration object stored in the persistent storage.- Returns:
- new instance of the
IntegrationObjectDescriptor.
-
createItemTypeDescriptor
Creates a descriptor for an item in an integration object.- Parameters:
model- model of the integration object item stored in the persistent storage.- Returns:
- new instance of the
TypeDescriptor.
-
createClassTypeDescriptor
TypeDescriptor createClassTypeDescriptor(@NotNull @NotNull IntegrationObjectDescriptor descriptor, @NotNull @NotNull IntegrationObjectClassModel model) Creates a descriptor for a class in an integration object.- Parameters:
descriptor- an integration object descriptor for the classmodel- model of the integration object item stored in the persistent storage.- Returns:
- new instance of the
TypeDescriptor.
-
createTypeAttributeDescriptor
TypeAttributeDescriptor createTypeAttributeDescriptor(@NotNull @NotNull AbstractIntegrationObjectItemAttributeModel model) Creates a descriptor for an attribute in an integration object.- Parameters:
model- model of the integration object item attribute stored in the persistent storage- Returns:
- new instance of the
TypeAttributeDescriptor
-
createTypeAttributeDescriptor
default TypeAttributeDescriptor createTypeAttributeDescriptor(@NotNull @NotNull TypeDescriptor type, @NotNull @NotNull AbstractIntegrationObjectItemAttributeModel model) Creates a descriptor for an attribute in an integration object. Default implementation in this interface simply delegates to thecreateTypeAttributeDescriptor(AbstractIntegrationObjectItemAttributeModel)method. Implementations should override this method to leverage the availability of the TypeDescriptor in the context of the attribute creation.- Parameters:
type- descriptor for the item type containing the attribute.model- model of the integration object item attribute stored in the persistent storage- Returns:
- new instance of the
TypeAttributeDescriptor
-
createTypeAttributeDescriptor
TypeAttributeDescriptor createTypeAttributeDescriptor(@NotNull @NotNull TypeDescriptor type, @NotNull @NotNull IntegrationObjectClassAttributeModel model) Creates a descriptor for an attribute in an integration object.- Parameters:
type- descriptor for the class type containing the attribute.model- model of the integration object class attribute- Returns:
- new instance of the
TypeAttributeDescriptor
-
getAttributeValueAccessorFactory
AttributeValueAccessorFactory getAttributeValueAccessorFactory()Gets theAttributeValueAccessorFactory- Returns:
- An instance of a factory
-
getAttributeValueGetterFactory
Gets theAttributeValueGetterFactory- Returns:
- An instance of a factory
-
getAttributeValueSetterFactory
Gets theAttributeValueSetterFactory- Returns:
- An instance of a factory
-
getAttributeSettableCheckerFactory
Gets theAttributeSettableCheckerFactory.- Returns:
- An instance of the factory
-