Class IntegrationObjectClassModelBuilder
java.lang.Object
de.hybris.platform.integrationservices.IntegrationObjectClassModelBuilder
Integration object item builder to build an
IntegrationObjectClassModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the IntegrationObjectClassModel for this builder's IntegrationObjectClass.Builds the Impex body for attributes in this builder's IntegrationObjectClass.Builds the Impex header for this builder's IntegrationObjectClass.buildClassImpexHeader(Collection<String> excludedValidators) Builds the Impex header for this builder's IntegrationObjectClass.Builds the Impex body for this builder's IntegrationObjectClass.Instantiates this IntegrationObjectClassModelBuilder.integrationObjectClass(String code) Delegates towithCode(String)to instantiate an IntegrationObjectClassModelBuilder with a specified class code.root()Sets isRoot for this class to true.Adds an IntegrationObjectClassAttribute to this class model.Sets the class code for this IntegrationObjectClassModelBuilder.withExcludedValidators(Collection<String> excludedValidators) Sets the list of excluded validators for the impex executionDelegates towithIntegrationObjectCode(String)to find the IntegrationObject code from the provided model.withIntegrationObjectCode(String ioCode) Sets the IntegrationObject code for this class.withRoot(boolean value) Sets isRoot for this class to a desired boolean value.Sets the class type for this IntegrationObjectClassModelBuilder.
-
Constructor Details
-
IntegrationObjectClassModelBuilder
public IntegrationObjectClassModelBuilder()
-
-
Method Details
-
integrationObjectClass
Instantiates this IntegrationObjectClassModelBuilder.- Returns:
- an instance of IntegrationObjectClassModelBuilder.
-
integrationObjectClass
Delegates towithCode(String)to instantiate an IntegrationObjectClassModelBuilder with a specified class code.- Parameters:
code- the class code.- Returns:
- an instance of IntegrationObjectClassModelBuilder with a class code defined.
-
withCode
Sets the class code for this IntegrationObjectClassModelBuilder.- Parameters:
code- the class code.- Returns:
- an instance of IntegrationObjectClassModelBuilder with a class code defined.
-
withType
Sets the class type for this IntegrationObjectClassModelBuilder.- Parameters:
type- the class type to be included into an integration object.- Returns:
- an instance of IntegrationObjectClassModelBuilder with a class type defined.
-
root
Sets isRoot for this class to true.- Returns:
- an instance of IntegrationObjectClassModelBuilder with isRoot defined as true.
-
withRoot
Sets isRoot for this class to a desired boolean value.- Parameters:
value- a boolean value for the class' getRoot property.- Returns:
- an instance of IntegrationObjectClassModelBuilder with getRoot set to provided boolean.
- See Also:
-
withAttribute
public IntegrationObjectClassModelBuilder withAttribute(IntegrationObjectClassAttributeModelBuilder attribute) Adds an IntegrationObjectClassAttribute to this class model.- Returns:
- an instance of IntegrationObjectClassModelBuilder containing the provided attribute.
-
withIntegrationObject
Delegates towithIntegrationObjectCode(String)to find the IntegrationObject code from the provided model.- Parameters:
model- an IntegrationObjectModel to obtain the IntegrationObject code from.- Returns:
- an instance of IntegrationObjectClassModelBuilder with the IntegrationObject code defined using the provided model.
-
withIntegrationObjectCode
Sets the IntegrationObject code for this class.- Parameters:
ioCode- an IntegrationObject code.- Returns:
- an instance of IntegrationObjectClassModelBuilder with the IntegrationObject code defined.
-
withExcludedValidators
public IntegrationObjectClassModelBuilder withExcludedValidators(Collection<String> excludedValidators) Sets the list of excluded validators for the impex execution- Parameters:
excludedValidators- a collection of strings with the bean names of the validators that we want to exclude from the impex execution- Returns:
- an instance of IntegrationObjectClassModelBuilder with the excluded validators list defined
-
build
Builds the IntegrationObjectClassModel for this builder's IntegrationObjectClass.- Returns:
- an IntegrationObjectClassModel produced by this builder.
-
buildClassImpexHeader
Builds the Impex header for this builder's IntegrationObjectClass.- Returns:
- the Impex header for this builder's IntegrationObjectClass.
-
buildClassImpexHeader
Builds the Impex header for this builder's IntegrationObjectClass.- Parameters:
excludedValidators- containing a collection of validator bean names that we want to exclude in the impex execution- Returns:
- the Impex header for this builder's IntegrationObjectClass.
-
buildImpexLine
Builds the Impex body for this builder's IntegrationObjectClass.- Returns:
- the Impex body for this builder's IntegrationObjectClass.
-
buildAttributeLines
Builds the Impex body for attributes in this builder's IntegrationObjectClass.- Returns:
- the Impex body for attributes in this builder's IntegrationObjectClass.
-