Class Listing
- java.lang.Object
-
- edu.wisc.library.ocfl.core.validation.storage.Listing
-
public class Listing extends Object
The result of a storage list operation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListing.Type
-
Constructor Summary
Constructors Constructor Description Listing(Listing.Type type, String relativePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Listingdirectory(String relativePath)static Listingfile(String relativePath)StringgetRelativePath()Listing.TypegetType()booleanisDirectory()booleanisFile()StringtoString()
-
-
-
Constructor Detail
-
Listing
public Listing(Listing.Type type, String relativePath)
-
-
Method Detail
-
getRelativePath
public String getRelativePath()
- Returns:
- the path to the file/directory relative the list operation path
-
getType
public Listing.Type getType()
- Returns:
- the type of file
-
isFile
public boolean isFile()
-
isDirectory
public boolean isDirectory()
-
-