public class DefaultMappingModel extends java.lang.Object implements MappingModel
| Modifier and Type | Field and Description |
|---|---|
protected ComposedTypeModel |
baseTypeModel |
protected CatalogVersionModel |
catalogVersion |
protected java.util.List<MappingLineModel> |
entries |
protected ImpexImportMode |
impexImportMode |
protected boolean |
isCVOptionSelected |
protected boolean |
manualUniqueOption |
protected ValidationResult |
validationResult |
| Constructor and Description |
|---|
DefaultMappingModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(MappingLineModel line)
Adds a mapping mappingLineModel entry to the list of mapping lines if not already in the list.
|
MappingModel |
deepCopy()
Makes a deep copy of the mapping.
|
ComposedTypeModel |
getBaseTypeModel()
Returns the base type for this mapping.
|
CatalogVersionModel |
getCatalogVersion()
Returns the catalog version that is used for import.
|
java.util.List<MappingLineModel> |
getEntries()
Returns a list of MappingLineModel entries, which represent single hybris attributes and their assignments to source values.
|
ImpexImportMode |
getImpexImportMode()
Returns the import impexImportMode that is used for this mapping.
|
ValidationResult |
getValidationResult()
Returns the validation result if this mapping was already validated.
|
boolean |
isCatalogVersionOption()
Return if a user want to set the catalog version manually or not for each subtype
|
boolean |
isManualUniqueOption()
Returns the manual unique attribute handling option value.
|
void |
setBaseTypeModel(ComposedTypeModel baseTypeModel)
Sets the base type for this mapping.
|
void |
setCatalogVersion(CatalogVersionModel catalogVersion)
Sets the catalog version that is used for import.
|
void |
setCatalogVersionOption(boolean isCVOptionSelected)
Set the option for the catalog version
|
void |
setEntries(java.util.List<MappingLineModel> entries)
Sets a list of MappingLineModel entries, which represent single hybris attributes and their assignments to source values.
|
void |
setImpexImportMode(ImpexImportMode impexImportMode)
Returns the import impexImportMode that is used for this mapping.
|
void |
setManualUniqueOption(boolean manualUniqueOption)
Sets the manual unique attribute handling option.
|
void |
setValidationResult(ValidationResult validationResult)
Sets the validation result to the mapping.
|
java.lang.String |
toString() |
protected ComposedTypeModel baseTypeModel
protected ImpexImportMode impexImportMode
protected java.util.List<MappingLineModel> entries
protected CatalogVersionModel catalogVersion
protected ValidationResult validationResult
protected boolean isCVOptionSelected
protected boolean manualUniqueOption
public boolean isManualUniqueOption()
MappingModelisManualUniqueOption in interface MappingModelpublic void setManualUniqueOption(boolean manualUniqueOption)
MappingModelsetManualUniqueOption in interface MappingModelmanualUniqueOption - true if unique attribute should be managed manuallypublic ImpexImportMode getImpexImportMode()
MappingModelgetImpexImportMode in interface MappingModelpublic void setImpexImportMode(ImpexImportMode impexImportMode)
MappingModelsetImpexImportMode in interface MappingModelimpexImportMode - ImpexImportModepublic java.util.List<MappingLineModel> getEntries()
MappingModelgetEntries in interface MappingModelpublic void setEntries(java.util.List<MappingLineModel> entries)
MappingModelsetEntries in interface MappingModelentries - list of mapping linespublic boolean addEntry(MappingLineModel line)
MappingModeladdEntry in interface MappingModelline - the new mappingLineModelpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setCatalogVersion(CatalogVersionModel catalogVersion)
MappingModelsetCatalogVersion in interface MappingModelpublic CatalogVersionModel getCatalogVersion()
MappingModelgetCatalogVersion in interface MappingModelpublic ValidationResult getValidationResult()
MappingModelgetValidationResult in interface MappingModelpublic void setValidationResult(ValidationResult validationResult)
MappingModelsetValidationResult in interface MappingModelpublic ComposedTypeModel getBaseTypeModel()
MappingModelgetBaseTypeModel in interface MappingModelpublic void setBaseTypeModel(ComposedTypeModel baseTypeModel)
MappingModelsetBaseTypeModel in interface MappingModelpublic MappingModel deepCopy()
MappingModeldeepCopy in interface MappingModelpublic boolean isCatalogVersionOption()
MappingModelisCatalogVersionOption in interface MappingModelpublic void setCatalogVersionOption(boolean isCVOptionSelected)
MappingModelsetCatalogVersionOption in interface MappingModelCopyright © 2018 SAP SE. All Rights Reserved.