Class ValueMappingMethod

All Implemented Interfaces:
Writable

public class ValueMappingMethod extends MappingMethod
A ValueMappingMethod which maps one value type to another, optionally configured by one or more ValueMappingOptionss. For now, only enum-to-enum mapping is supported.
Author:
Sjaak Derksen
  • Method Details

    • 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.
      Overrides:
      getImportTypes in class MappingMethod
      Returns:
      A set with type referenced by this model element. Must not be null.
    • hasMappingWithTargetAsException

      protected boolean hasMappingWithTargetAsException()
    • getValueMappings

      public List<ValueMappingMethod.MappingEntry> getValueMappings()
    • getDefaultTarget

      public ValueMappingMethod.MappingEntry getDefaultTarget()
    • getNullTarget

      public ValueMappingMethod.MappingEntry getNullTarget()
    • getUnexpectedValueMappingException

      public Type getUnexpectedValueMappingException()
    • getSourceParameter

      public Parameter getSourceParameter()
    • isOverridden

      public boolean isOverridden()
    • getAnnotations

      public List<Annotation> getAnnotations()