Class PropertyMapping

  • All Implemented Interfaces:
    Writable

    public class PropertyMapping
    extends ModelElement
    Represents the mapping between a source and target property, e.g. from String Source#foo to int Target#bar. Name and type of source and target property can differ. If they have different types, the mapping must either refer to a mapping method or a conversion.
    Author:
    Gunnar Morling
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name of this mapping (property name on the target side)
      • getSourcePropertyName

        public String getSourcePropertyName()
      • getSourceBeanName

        public String getSourceBeanName()
      • getTargetWriteAccessorName

        public String getTargetWriteAccessorName()
      • getTargetReadAccessorName

        public String getTargetReadAccessorName()
      • getTargetType

        public Type getTargetType()
      • getAssignment

        public Assignment getAssignment()
      • getDefaultValueAssignment

        public Assignment getDefaultValueAssignment()
      • isConstructorMapping

        public boolean isConstructorMapping()
      • getImportTypes

        public Set<Type> getImportTypes()
        Description copied from class: ModelElement
        Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
        Specified by:
        getImportTypes in class ModelElement
        Returns:
        A set with type referenced by this model element. Must not be null.
      • getDependsOn

        public Set<String> getDependsOn()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object