Class DefaultMappingLine

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(MappingLineModel line)
      Adds a new sub mappingLineModel (child) to the mapping mappingLineModel.
      void addObserver​(MappingLineObserver observer)  
      java.lang.String getAttributeCode()
      Returns the code of the attribute represented by the mapping mappingLineModel.
      AttributeDescriptorModel getAttributeDescriptor()
      Returns the attribute descriptor of this mapping mappingLineModel.
      java.util.List<MappingLineModel> getChildren()
      Returns the list of child/sub lines.
      TypeModel getCollectionElementType()
      Returns the type of this collection element.
      java.lang.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.
      java.lang.String getPropDescriptorQualifier()
      Returns the property descriptor qualifier of the mapping lin
      SourceColumnModel getSource()
      Returns the assigned source column.
      java.lang.String getTranslator()
      Returns the translator that should be used for importing the mapped attribute values of this mapping mappingLineModel.
      java.lang.String getType()
      Returns the type of this attribute.
      java.lang.String getTypeCode()
      Returns the code of the attribute type of the mapping mappingLineModel.
      java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String value)
      Sets the content to the value field of the mapping mappingLineModel.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultMappingLine

        public DefaultMappingLine()
    • Method Detail

      • addChild

        public void addChild​(MappingLineModel line)
        Description copied from interface: MappingLineModel
        Adds a new sub mappingLineModel (child) to the mapping mappingLineModel.
        Specified by:
        addChild in interface MappingLineModel
        Parameters:
        line - additional mappingLineModel
      • getLevel

        public int getLevel()
        Description copied from interface: MappingLineModel
        Returns the level of this mappingLineModel in the mapping. If this is a direct child of the mapping then the level is 0. If it is a child of another mappingLineModel then it is the level of the parent plus one.
        Specified by:
        getLevel in interface MappingLineModel
        Returns:
        level int
      • getAttributeCode

        public java.lang.String getAttributeCode()
        Description copied from interface: MappingLineModel
        Returns the code of the attribute represented by the mapping mappingLineModel.
        Specified by:
        getAttributeCode in interface MappingLineModel
        Returns:
        attribute code
      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: MappingLineModel
        Returns the attribute name of the mapping mappingLineModel for display in the mapping area.
        Specified by:
        getDisplayName in interface MappingLineModel
        Returns:
        display name of the attribute represented by the mapping mappingLineModel
      • hasSource

        public boolean hasSource()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel has a source
        Specified by:
        hasSource in interface MappingLineModel
        Returns:
        true if has source
      • getType

        public java.lang.String getType()
        Description copied from interface: MappingLineModel
        Returns the type of this attribute.
        Specified by:
        getType in interface MappingLineModel
        Returns:
        type
      • getTypeCode

        public java.lang.String getTypeCode()
        Description copied from interface: MappingLineModel
        Returns the code of the attribute type of the mapping mappingLineModel.
        Specified by:
        getTypeCode in interface MappingLineModel
        Returns:
        type code
      • getValue

        public java.lang.String getValue()
        Description copied from interface: MappingLineModel
        Returns the content of the value field of the mapping mappingLineModel.
        Specified by:
        getValue in interface MappingLineModel
        Returns:
        value string
      • hasChildren

        public boolean hasChildren()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel has children/sub lines.
        Specified by:
        hasChildren in interface MappingLineModel
        Returns:
        true if the mapping mappingLineModel children
      • isAtomic

        public boolean isAtomic()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel represents an atomic type with (no sub lines possible).
        Specified by:
        isAtomic in interface MappingLineModel
        Returns:
        true if basic
      • isComposed

        public boolean isComposed()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel is a composed mappingLineModel. (Sub lines possible, true for collection or composed mapping lines)
        Specified by:
        isComposed in interface MappingLineModel
        Returns:
        true if composed
      • isSourceLocked

        public boolean isSourceLocked()
        Description copied from interface: MappingLineModel
        Returns true if the source cell field is locked for changes.
        Specified by:
        isSourceLocked in interface MappingLineModel
        Returns:
        true if source cell is locked, otherwise false
      • isValueLocked

        public boolean isValueLocked()
        Description copied from interface: MappingLineModel
        Returns true if the value field is locked for changes.
        Specified by:
        isValueLocked in interface MappingLineModel
        Returns:
        true if value field is locked for changes, otherwise false
      • isSelectorLocked

        public boolean isSelectorLocked()
        Description copied from interface: MappingLineModel
        Returns true if the unique selector is locked for changes.
        Specified by:
        isSelectorLocked in interface MappingLineModel
        Returns:
        true if unique is locked for changes
      • setSource

        public void setSource​(SourceColumnModel source)
        Description copied from interface: MappingLineModel
        Sets the mapped source column (SourceColumnListitemModel object) to the mapping mappingLineModel.
        Specified by:
        setSource in interface MappingLineModel
        Parameters:
        source - SourceColumnListitemModel object
      • setValue

        public void setValue​(java.lang.String value)
        Description copied from interface: MappingLineModel
        Sets the content to the value field of the mapping mappingLineModel.
        Specified by:
        setValue in interface MappingLineModel
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isUnique

        public boolean isUnique()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel is marked as unique.
        Specified by:
        isUnique in interface MappingLineModel
        Returns:
        true if unique
      • isCollectionElement

        public boolean isCollectionElement()
        Description copied from interface: MappingLineModel
        Returns true if the mapping mappingLineModel is a collection element.
        Specified by:
        isCollectionElement in interface MappingLineModel
        Returns:
        true if the mapping mappingLineModel is an element of a collection
      • getPropDescriptorQualifier

        public java.lang.String getPropDescriptorQualifier()
        Description copied from interface: MappingLineModel
        Returns the property descriptor qualifier of the mapping lin
        Specified by:
        getPropDescriptorQualifier in interface MappingLineModel
        Returns:
        property descriptor qualifier
      • setPropDescriptorQualifier

        public void setPropDescriptorQualifier​(java.lang.String propDescriptorQualifier)
        Description copied from interface: MappingLineModel
        Sets the property descriptor qualifier to the mapping mappingLineModel.
        Specified by:
        setPropDescriptorQualifier in interface MappingLineModel
      • isValid

        public boolean isValid()
        Description copied from interface: MappingLineModel
        Returns whether the mapping mappingLineModel is valid according to result of the mapping validation.
        Specified by:
        isValid in interface MappingLineModel
        Returns:
        true if the mapping mappingLineModel is valid
      • setValid

        public void setValid​(boolean valid)
        Description copied from interface: MappingLineModel
        Sets whether the mapping mappingLineModel is valid according to the mapping validation logic.
        Specified by:
        setValid in interface MappingLineModel
      • getTranslator

        public java.lang.String getTranslator()
        Description copied from interface: MappingLineModel
        Returns the translator that should be used for importing the mapped attribute values of this mapping mappingLineModel.
        Specified by:
        getTranslator in interface MappingLineModel
        Returns:
        translator
      • setTranslator

        public void setTranslator​(java.lang.String translator)
        Description copied from interface: MappingLineModel
        Sets the translator that should be used for importing the mapped attribute values of this mapping mappingLineModel.
        Specified by:
        setTranslator in interface MappingLineModel
      • isAllowNull

        public boolean isAllowNull()
        Description copied from interface: MappingLineModel
        Returns true if this mappingLineModel is marked to allow null values. In this case a [allowNull=true] modifier will be added to impex header entry.
        Specified by:
        isAllowNull in interface MappingLineModel
        Returns:
        true if allowNull set to "true"
      • setAllowNull

        public void setAllowNull​(boolean isAllowNull)
        Description copied from interface: MappingLineModel
        Sets true if the mapping mappingLineModel should allow null values during import. If true a [allowNull=true] modifier will be added to impex header entry.
        Specified by:
        setAllowNull in interface MappingLineModel
      • isCollapsed

        public boolean isCollapsed()
        Description copied from interface: MappingLineModel
        Returns true if the mapping mappingLineModel is opened (in the mapping view) after next update
        Specified by:
        isCollapsed in interface MappingLineModel
      • setCollapsed

        public void setCollapsed​(boolean collapsed)
        Description copied from interface: MappingLineModel
        Sets the variable that defines if the mapping mappingLineModel is opened or closed (in the mapping view) after next update
        Specified by:
        setCollapsed in interface MappingLineModel
      • isFocused

        public boolean isFocused()
        Description copied from interface: MappingLineModel
        Returns true if the mapping mappingLineModel is focused after next update
        Specified by:
        isFocused in interface MappingLineModel
      • setFocused

        public void setFocused​(boolean focused)
        Description copied from interface: MappingLineModel
        Sets the variable that defines if the mapping mappingLineModel is focused after next update
        Specified by:
        setFocused in interface MappingLineModel