Package org.irods.irods4j.high_level.vfs
Class CollectionEntry
java.lang.Object
org.irods.irods4j.high_level.vfs.CollectionEntry
- All Implemented Interfaces:
Comparable<CollectionEntry>
Holds information about a single logical path inside a collection.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionchecksum()Returns the checksum of the filesystem object.intCompares this collection entry with another using the logical path.longReturns the epoch seconds representing the time the filesystem object was created.intdataMode()Returns the data mode of the filesystem object.longdataSize()Returns the size of the filesystem object.dataType()Returns the data type describing the filesystem object, if available.booleanexists()Returns true if the path points to a valid filesystem object.id()Returns the ID of the filesystem object.booleanChecks whether the logical path identifies a collection.booleanChecks whether the logical path identifies a data object.booleanisOther()Checks whether the logical path identifies something that is not a data object or collection.longReturns the epoch seconds representing the time the filesystem object was last modified.path()Returns the logical path which identifies the filesystem object.status()Returns the status information of the filesystem object.
-
Method Details
-
path
Returns the logical path which identifies the filesystem object.- Since:
- 0.1.0
-
exists
public boolean exists()Returns true if the path points to a valid filesystem object.- Since:
- 0.1.0
-
isDataObject
public boolean isDataObject()Checks whether the logical path identifies a data object.- Since:
- 0.1.0
-
isCollection
public boolean isCollection()Checks whether the logical path identifies a collection.- Since:
- 0.1.0
-
isOther
public boolean isOther()Checks whether the logical path identifies something that is not a data object or collection.- Since:
- 0.1.0
-
createdAt
public long createdAt()Returns the epoch seconds representing the time the filesystem object was created.- Since:
- 0.1.0
-
modifiedAt
public long modifiedAt()Returns the epoch seconds representing the time the filesystem object was last modified.- Since:
- 0.1.0
-
status
Returns the status information of the filesystem object.- Since:
- 0.1.0
-
dataMode
public int dataMode()Returns the data mode of the filesystem object.- Since:
- 0.1.0
-
id
Returns the ID of the filesystem object.- Since:
- 0.1.0
-
checksum
Returns the checksum of the filesystem object.- Since:
- 0.5.0
-
dataType
Returns the data type describing the filesystem object, if available.- Since:
- 0.1.0
-
dataSize
public long dataSize()Returns the size of the filesystem object.- Since:
- 0.1.0
-
compareTo
Compares this collection entry with another using the logical path.- Specified by:
compareToin interfaceComparable<CollectionEntry>- Since:
- 0.1.0
-