Class SourceTargetAttributeTransformer

    • Constructor Detail

      • SourceTargetAttributeTransformer

        public SourceTargetAttributeTransformer()
        Standard constructor.
      • SourceTargetAttributeTransformer

        public SourceTargetAttributeTransformer​(String sourceAttributeName,
                                                String targetAttributeName)
        Constructor used to set default attribute names.
        Parameters:
        sourceAttributeName - the default sourceAttributeName.
        targetAttributeName - the default targetAttributeName.
    • Method Detail

      • getSourceAttributeName

        public String getSourceAttributeName()
        Returns the name of the attribute which is read as Input.
        Returns:
        the name of the attribute which is read as Input.
      • setSourceAttributeName

        public void setSourceAttributeName​(String sourceAttributeName)
        Sets the name of the attribute which is read as Input.
        Parameters:
        sourceAttributeName - the name of the attribute which is read as Input, not null.
        Throws:
        NullPointerException - if sourceAttributeName is null.
      • getTargetAttributeName

        public String getTargetAttributeName()
        Returns the name of the attribute into which the result is stored.
        Returns:
        the name of the attribute into which the result is stored.
      • setTargetAttributeName

        public void setTargetAttributeName​(String targetAttributeName)
        Sets the name of the attribute into which the result is stored.
        Parameters:
        targetAttributeName - the name of the attribute into which the result is stored, not null.
        Throws:
        NullPointerException - if targetAttributeName is null.
      • isOverwrite

        public boolean isOverwrite()
        Returns whether the content of the target attribute is overwritten if it exists.
        Returns:
        true if the target is overwritten, false if it is only filled when not set.
      • setOverwrite

        public void setOverwrite​(boolean overwrite)
        Sets whether the content of the target attribute should be overwritten if it exists.
        Parameters:
        overwrite - true if the target is overwritten, false if it is only filled when not set.