Class Transform

    • Constructor Detail

      • Transform

        public Transform()
    • Method Detail

      • transform

        public Object transform​(Object value,
                                Class<?> targetType)
                         throws TransformationException
        This method transforms a value of the source type into a value of the target type.
        Parameters:
        value - Incoming value of source type
        Returns:
        Outgoing value of target type
        Throws:
        TransformationException - if value is an incorrect input type or the transformation fails
      • getSourceType

        public abstract Class<?> getSourceType()
        Type of the incoming value.
        Returns:
        Source type
      • getSourceTypeName

        public String getSourceTypeName()
        Name of the source type.
        Returns:
        Name of source type
      • getTargetType

        public abstract Class<?> getTargetType()
        Type of the outgoing value.
        Returns:
        Target type
      • getTargetTypeName

        public String getTargetTypeName()
        Name of the target type.
        Returns:
        Name of target type
      • getDisplayName

        public String getDisplayName()
        Get nice display name for GUIs.
        Returns:
        Display name
      • getDescription

        public String getDescription()
        Get description.
        Returns:
        Description of transform
      • isExplicit

        public boolean isExplicit()
      • toString

        public String toString()
        Override Object.toString() to do getDisplayName() version.
        Overrides:
        toString in class Object
        Returns:
        String representation of object