public class DefaultMappingLine extends Object implements MappingLineModel
| Constructor and Description |
|---|
DefaultMappingLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(MappingLineModel line)
Adds a new sub mappingLineModel (child) to the mapping mappingLineModel.
|
void |
addObserver(MappingLineObserver observer) |
String |
getAttributeCode()
Returns the code of the attribute represented by the mapping mappingLineModel.
|
AttributeDescriptorModel |
getAttributeDescriptor()
Returns the attribute descriptor of this mapping mappingLineModel.
|
List<MappingLineModel> |
getChildren()
Returns the list of child/sub lines.
|
TypeModel |
getCollectionElementType()
Returns the type of this collection element.
|
String |
getDisplayName()
Returns the attribute name of the mapping mappingLineModel for display in the mapping area.
|
AbstractImportFormat |
getFormatPattern()
Gets the format pattern of the mappingLineModel if there is one (for numbers and dates).
|
int |
getLevel()
Returns the level of this mappingLineModel in the mapping.
|
MappingModel |
getMapping()
Returns the mapping to which this mappingLineModel belongs to.
|
MappingLineModel |
getParent()
Returns the parent of this mapping mappingLineModel or null if the mappingLineModel is on the top level.
|
String |
getPropDescriptorQualifier()
Returns the property descriptor qualifier of the mapping lin
|
SourceColumnModel |
getSource()
Returns the assigned source column.
|
String |
getTranslator()
Returns the translator that should be used for importing the mapped attribute values of this mapping mappingLineModel.
|
String |
getType()
Returns the type of this attribute.
|
String |
getTypeCode()
Returns the code of the attribute type of the mapping mappingLineModel.
|
String |
getValue()
Returns the content of the value field of the mapping mappingLineModel.
|
boolean |
hasChildren()
Returns true if this mappingLineModel has children/sub lines.
|
boolean |
hasSource()
Returns true if this mappingLineModel has a source
|
boolean |
isAllowNull()
Returns true if this mappingLineModel is marked to allow null values.
|
boolean |
isAtomic()
Returns true if this mappingLineModel represents an atomic type with (no sub lines possible).
|
boolean |
isCollapsed()
Returns true if the mapping mappingLineModel is opened (in the mapping view) after next update
|
boolean |
isCollectionElement()
Returns true if the mapping mappingLineModel is a collection element.
|
boolean |
isComposed()
Returns true if this mappingLineModel is a composed mappingLineModel.
|
boolean |
isFocused()
Returns true if the mapping mappingLineModel is focused after next update
|
boolean |
isSelectorLocked()
Returns true if the unique selector is locked for changes.
|
boolean |
isSourceLocked()
Returns true if the source cell field is locked for changes.
|
boolean |
isUnique()
Returns true if this mappingLineModel is marked as unique.
|
boolean |
isValid()
Returns whether the mapping mappingLineModel is valid according to result of the mapping validation.
|
boolean |
isValueLocked()
Returns true if the value field is locked for changes.
|
void |
notifyObservers() |
void |
removeChild(MappingLineModel line)
Removes a mappingLineModel from the list of children.
|
void |
removeObserver(MappingLineObserver observer) |
void |
setAllowNull(boolean isAllowNull)
Sets true if the mapping mappingLineModel should allow null values during import.
|
void |
setAttributeDescriptor(AttributeDescriptorModel attributeDescriptor)
Sets the attribute descriptor to the mapping mappingLineModel.
|
void |
setCollapsed(boolean collapsed)
Sets the variable that defines if the mapping mappingLineModel is opened or closed (in the mapping view) after next update
|
void |
setCollectionElementType(TypeModel model)
Sets the type of the collection element.
|
void |
setFocused(boolean focused)
Sets the variable that defines if the mapping mappingLineModel is focused after next update
|
void |
setFormatPattern(AbstractImportFormat formatPattern)
Sets the format patter to the mapping mappingLineModel (for numbers or dates).
|
void |
setMapping(MappingModel mapping)
Sets the mapping of the mapping mappingLineModel.
|
void |
setParent(MappingLineModel line)
Sets the parent of the mapping mappingLineModel
|
void |
setPropDescriptorQualifier(String propDescriptorQualifier)
Sets the property descriptor qualifier to the mapping mappingLineModel.
|
void |
setSource(SourceColumnModel source)
Sets the mapped source column (SourceColumnListitemModel object) to the mapping mappingLineModel.
|
void |
setTranslator(String translator)
Sets the translator that should be used for importing the mapped attribute values of this mapping mappingLineModel.
|
void |
setUnique(boolean unique) |
void |
setValid(boolean valid)
Sets whether the mapping mappingLineModel is valid according to the mapping validation logic.
|
void |
setValue(String value)
Sets the content to the value field of the mapping mappingLineModel.
|
String |
toString() |
public void addChild(MappingLineModel line)
MappingLineModeladdChild in interface MappingLineModelline - additional mappingLineModelpublic void addObserver(MappingLineObserver observer)
addObserver in interface MappingLineObservablepublic List<MappingLineModel> getChildren()
MappingLineModelgetChildren in interface MappingLineModelpublic int getLevel()
MappingLineModelgetLevel in interface MappingLineModelpublic MappingModel getMapping()
MappingLineModelgetMapping in interface MappingLineModelpublic String getAttributeCode()
MappingLineModelgetAttributeCode in interface MappingLineModelpublic String getDisplayName()
MappingLineModelgetDisplayName in interface MappingLineModelpublic boolean hasSource()
MappingLineModelhasSource in interface MappingLineModelpublic MappingLineModel getParent()
MappingLineModelgetParent in interface MappingLineModelpublic SourceColumnModel getSource()
MappingLineModelgetSource in interface MappingLineModelpublic String getType()
MappingLineModelgetType in interface MappingLineModelpublic String getTypeCode()
MappingLineModelgetTypeCode in interface MappingLineModelpublic String getValue()
MappingLineModelgetValue in interface MappingLineModelpublic boolean hasChildren()
MappingLineModelhasChildren in interface MappingLineModelpublic boolean isAtomic()
MappingLineModelisAtomic in interface MappingLineModelpublic boolean isComposed()
MappingLineModelisComposed in interface MappingLineModelpublic boolean isSourceLocked()
MappingLineModelisSourceLocked in interface MappingLineModelpublic boolean isValueLocked()
MappingLineModelisValueLocked in interface MappingLineModelpublic boolean isSelectorLocked()
MappingLineModelisSelectorLocked in interface MappingLineModelpublic void notifyObservers()
notifyObservers in interface MappingLineObservablepublic void removeChild(MappingLineModel line)
MappingLineModelremoveChild in interface MappingLineModelline - mappingLineModel to removepublic void removeObserver(MappingLineObserver observer)
removeObserver in interface MappingLineObservablepublic void setMapping(MappingModel mapping)
MappingLineModelsetMapping in interface MappingLineModelpublic void setParent(MappingLineModel line)
MappingLineModelsetParent in interface MappingLineModelline - parent mapping mappingLineModelpublic void setSource(SourceColumnModel source)
MappingLineModelsetSource in interface MappingLineModelsource - SourceColumnListitemModel objectpublic void setValue(String value)
MappingLineModelsetValue in interface MappingLineModelpublic AbstractImportFormat getFormatPattern()
MappingLineModelgetFormatPattern in interface MappingLineModelpublic void setFormatPattern(AbstractImportFormat formatPattern)
MappingLineModelsetFormatPattern in interface MappingLineModelpublic boolean isUnique()
MappingLineModelisUnique in interface MappingLineModelpublic void setUnique(boolean unique)
setUnique in interface MappingLineModelpublic void setAttributeDescriptor(AttributeDescriptorModel attributeDescriptor)
MappingLineModelsetAttributeDescriptor in interface MappingLineModelpublic AttributeDescriptorModel getAttributeDescriptor()
MappingLineModelgetAttributeDescriptor in interface MappingLineModelpublic boolean isCollectionElement()
MappingLineModelisCollectionElement in interface MappingLineModelpublic TypeModel getCollectionElementType()
MappingLineModelgetCollectionElementType in interface MappingLineModelpublic void setCollectionElementType(TypeModel model)
MappingLineModelsetCollectionElementType in interface MappingLineModelmodel - TypeModelpublic String getPropDescriptorQualifier()
MappingLineModelgetPropDescriptorQualifier in interface MappingLineModelpublic void setPropDescriptorQualifier(String propDescriptorQualifier)
MappingLineModelsetPropDescriptorQualifier in interface MappingLineModelpublic boolean isValid()
MappingLineModelisValid in interface MappingLineModelpublic void setValid(boolean valid)
MappingLineModelsetValid in interface MappingLineModelpublic String getTranslator()
MappingLineModelgetTranslator in interface MappingLineModelpublic void setTranslator(String translator)
MappingLineModelsetTranslator in interface MappingLineModelpublic boolean isAllowNull()
MappingLineModelisAllowNull in interface MappingLineModelpublic void setAllowNull(boolean isAllowNull)
MappingLineModelsetAllowNull in interface MappingLineModelpublic boolean isCollapsed()
MappingLineModelisCollapsed in interface MappingLineModelpublic void setCollapsed(boolean collapsed)
MappingLineModelsetCollapsed in interface MappingLineModelpublic boolean isFocused()
MappingLineModelisFocused in interface MappingLineModelpublic void setFocused(boolean focused)
MappingLineModelsetFocused in interface MappingLineModelCopyright © 2017 SAP SE. All Rights Reserved.