public class VolumeInfo extends Object
Constructor and Description |
---|
VolumeInfo()
Default constructor
|
VolumeInfo(String label)
Class constructor
|
VolumeInfo(String label,
int serno,
Date created)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreationDateTime()
Return the volume creation date/time
|
int |
getSerialNumber()
Return the serial number
|
String |
getVolumeLabel()
Return the volume label
|
boolean |
hasCreationDateTime()
Determine if the creation date/time is valid
|
boolean |
hasSerialNumber()
Determine if the serial number is valid
|
void |
setCreationDateTime(Date created)
Set the volume creation date/time
|
void |
setSerialNumber(int serno)
Set the serial number
|
void |
setVolumeLabel(String label)
Set the volume label
|
String |
toString()
Return the volume information as a string
|
public VolumeInfo()
public VolumeInfo(String label)
label
- Stringpublic final String getVolumeLabel()
public final boolean hasSerialNumber()
public final int getSerialNumber()
public final boolean hasCreationDateTime()
public final Date getCreationDateTime()
public final void setVolumeLabel(String label)
label
- Stringpublic final void setSerialNumber(int serno)
serno
- intpublic final void setCreationDateTime(Date created)
created
- DateCopyright © 2005–2017 Alfresco Software. All rights reserved.