Class SupportingMappingMethod

    • Field Detail

      • templateName

        private final java.lang.String templateName
      • importTypes

        private final java.util.Set<Type> importTypes
      • supportingField

        private final Field supportingField
      • templateParameter

        private final java.util.Map<java.lang.String,​java.lang.Object> templateParameter
    • Constructor Detail

      • SupportingMappingMethod

        public SupportingMappingMethod​(BuiltInMethod method,
                                       java.util.Set<Field> existingFields)
      • SupportingMappingMethod

        public SupportingMappingMethod​(HelperMethod method)
    • Method Detail

      • getImportTypes

        public java.util.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.
      • findType

        public Type findType​(java.lang.String name)
        Finds a Type by a given name. The name will be compared to the fully-qualified and also simple names of the importTypes.
        Parameters:
        name - Fully-qualified or simple name of the type.
        Returns:
        Found type, never null.
        Throws:
        java.lang.IllegalArgumentException - In case no Type was found for given name.
      • getSupportingField

        public Field getSupportingField()
      • getTemplateParameter

        public java.util.Map<java.lang.String,​java.lang.Object> getTemplateParameter()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class MappingMethod