Class PathTransformerValue

All Implemented Interfaces:
IEditableModel, IModel, IValue<Path>, IValidable

public class PathTransformerValue extends PojoValue<Path>
Value that transforms String to Path and vice versa.
  • Constructor Details

    • PathTransformerValue

      public PathTransformerValue(IValue<String> originalValue)
      Constructor of PathTransformerValue.
      Parameters:
      originalValue - the original value, cannot be null
  • Method Details

    • discard

      public void discard()
      Description copied from interface: IModel
      Discards the changes stored in the model buffer since last IModel.commit() operation.
      Specified by:
      discard in interface IModel
      Overrides:
      discard in class Value<Path>
    • get

      public Path get()
      Specified by:
      get in interface IValue<Path>
      Overrides:
      get in class Value<Path>
      Returns:
      the stored value.
    • set

      public void set(Path value)
      Specified by:
      set in interface IValue<Path>
      Overrides:
      set in class Value<Path>
      Parameters:
      value - the value to set.
    • commit

      public void commit()
      Description copied from interface: IModel
      Commits the changes to the data model.
      Specified by:
      commit in interface IModel
      Overrides:
      commit in class Model
    • dispose

      public void dispose()
      Description copied from interface: IModel
      Disposes this model.
      Specified by:
      dispose in interface IModel
      Overrides:
      dispose in class Value<Path>