public class VolumeInfo
extends java.lang.Object
| Constructor and Description |
|---|
VolumeInfo()
Default constructor
|
VolumeInfo(java.lang.String label)
Class constructor
|
VolumeInfo(java.lang.String label,
int serno,
java.util.Date created)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreationDateTime()
Return the volume creation date/time
|
int |
getSerialNumber()
Return the serial number
|
java.lang.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(java.util.Date created)
Set the volume creation date/time
|
void |
setSerialNumber(int serno)
Set the serial number
|
void |
setVolumeLabel(java.lang.String label)
Set the volume label
|
java.lang.String |
toString()
Return the volume information as a string
|
public VolumeInfo()
public VolumeInfo(java.lang.String label)
label - Stringpublic VolumeInfo(java.lang.String label,
int serno,
java.util.Date created)
label - Stringserno - intcreated - Datepublic final java.lang.String getVolumeLabel()
public final boolean hasSerialNumber()
public final int getSerialNumber()
public final boolean hasCreationDateTime()
public final java.util.Date getCreationDateTime()
public final void setVolumeLabel(java.lang.String label)
label - public final void setSerialNumber(int serno)
serno - intpublic final void setCreationDateTime(java.util.Date created)
created - Datepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.