Package gov.nasa.gsfc.sscweb.schema
Class FileDescription
java.lang.Object
gov.nasa.gsfc.sscweb.schema.FileDescription
Description of a file.
<p>Java class for FileDescription complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="FileDescription">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Length" type="{http://www.w3.org/2001/XMLSchema}long"/>
<element name="LastModified" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
</sequence>
</restriction>
</complexContent>
</complexType>
}</pre>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XMLGregorianCalendarTime when the file was last modified.protected longLength of file in bytes.protected StringMIME type of file.protected StringName of file (usually a URL). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTime when the file was last modified.longLength of file in bytes.MIME type of file.getName()Name of file (usually a URL).voidSets the value of the lastModified property.voidsetLength(long value) Sets the value of the length property.voidsetMimeType(String value) Sets the value of the mimeType property.voidSets the value of the name property.
-
Field Details
-
name
Name of file (usually a URL). -
mimeType
MIME type of file. -
length
protected long lengthLength of file in bytes. -
lastModified
Time when the file was last modified.
-
-
Constructor Details
-
FileDescription
public FileDescription()
-
-
Method Details
-
getName
Name of file (usually a URL).- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString- See Also:
-
getMimeType
MIME type of file.- Returns:
- possible object is
String
-
setMimeType
Sets the value of the mimeType property.- Parameters:
value- allowed object isString- See Also:
-
getLength
public long getLength()Length of file in bytes. -
setLength
public void setLength(long value) Sets the value of the length property. -
getLastModified
Time when the file was last modified.- Returns:
- possible object is
XMLGregorianCalendar
-
setLastModified
Sets the value of the lastModified property.- Parameters:
value- allowed object isXMLGregorianCalendar- See Also:
-