Class ClassPathEntriesListProperty

  • All Implemented Interfaces:
    PropertyVisitorAcceptor, java.lang.Cloneable

    @OpenApiAll
    public class ClassPathEntriesListProperty
    extends ListProperty
    ClassPathEntriesListProperty represents a property for storing and editing entries of the classpath.
    • Constructor Detail

      • ClassPathEntriesListProperty

        public ClassPathEntriesListProperty()
        Creates and initializes a new ClassPathEntriesListProperty object.
      • ClassPathEntriesListProperty

        public ClassPathEntriesListProperty​(java.lang.String id,
                                            @CheckForNull
                                            java.lang.Object[] value,
                                            boolean allowFiles)
        Creates and initializes a new ClassPathEntriesListProperty object from specified parameters.
        Parameters:
        id - - id of the property
        value - - a value of the property
    • Method Detail

      • getFiles

        @CheckForNull
        public java.io.File[] getFiles()
        Returns an array of files.
        Returns:
        an array of files.
      • getFilesPaths

        @CheckForNull
        public java.lang.String[] getFilesPaths()
      • getFileProperties

        public FileProperty[] getFileProperties()
      • isAllowsFiles

        public boolean isAllowsFiles()
      • setAllowsFiles

        public void setAllowsFiles​(boolean allow)
      • getValueStringRepresentation

        public java.lang.String getValueStringRepresentation()
        Description copied from class: Property
        Returns value's string representation.
        Overrides:
        getValueStringRepresentation in class ListProperty
        Returns:
        string "null" if property does not have value; value. toString() if property has value.
      • areValuesEqual

        protected boolean areValuesEqual​(java.lang.Object oldValue,
                                         java.lang.Object newValue)
        Description copied from class: Property
        Check if values are equal before setting new value. If values are equal value is not changed.
        Overrides:
        areValuesEqual in class Property
        Parameters:
        oldValue - current value.
        newValue - new value.
        Returns:
        true if values are equal.
      • clone

        public ClassPathEntriesListProperty clone()
        Description copied from class: Property
        Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.
        Overrides:
        clone in class ListProperty
        Returns:
        the cloned property.