Interface IImportStructureProvider
- All Known Implementing Classes:
FileStoreStructureProvider
,FileSystemStructureProvider
,ZipFileStructureProvider
public interface IImportStructureProvider
Interface which can provide structure and content information
for an element (for example, a file system element).
Used by the import wizards to abstract the commonalities
between importing from the file system and importing from an archive.
-
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Object element) Returns a collection with the children of the specified structured element.getContents
(Object element) Returns the contents of the specified structured element, ornull
if there is a problem determining the element's contents.getFullPath
(Object element) Returns the full path of the specified structured element.Returns the display label of the specified structured element.boolean
Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).
-
Method Details
-
getChildren
Returns a collection with the children of the specified structured element.- Parameters:
element
- the element for which to compute the children- Returns:
- the list of child elements
-
getContents
Returns the contents of the specified structured element, ornull
if there is a problem determining the element's contents.Note:: The client is responsible for closing the stream when finished.
- Parameters:
element
- a structured element- Returns:
- the contents of the structured element, or
null
-
getFullPath
Returns the full path of the specified structured element.- Parameters:
element
- a structured element- Returns:
- the display label of the structured element
-
getLabel
Returns the display label of the specified structured element.- Parameters:
element
- a structured element- Returns:
- the display label of the structured element
-
isFolder
Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).- Parameters:
element
- java.lang.Object- Returns:
- boolean
-