commonj.connector.metadata.discovery.properties.extensions
Interface FileProperty

All Superinterfaces:
Cloneable, Property, PropertyDescriptor, SingleTypedProperty, SingleValuedProperty

public interface FileProperty
extends SingleValuedProperty

A property interface for browsing or selecting a single file. The representation is java.io.File.

Since:
1.1

Method Summary
 String[] getFileExtensions()
          Represents the file extensions to perform filtering of files.
 boolean mustExist()
          Denotes whether the file must exist or not.
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.SingleValuedProperty
getValue, getValueAsString, setValue, setValueAsString
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.SingleTypedProperty
getPropertyType
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.Property
getValidationMessage, isSet, isValid, unSet
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
addPropertyChangeListener, clone, getDescription, getDisplayName, getID, getName, isEnabled, removePropertyChangeListener
 

Method Detail

getFileExtensions

String[] getFileExtensions()
Represents the file extensions to perform filtering of files.

Returns:
an array of file extensions filter or null if there are no filters.

mustExist

boolean mustExist()
Denotes whether the file must exist or not. If the file must exist on the file system, return true. Otherwise, return false .

Returns:
true if file must exist, false otherwise