Constructor and Description |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
Artifact |
getArtifact()
Returns the artifact associated with this item.
|
java.lang.String |
getExtension()
Returns the type of file extension.
|
java.lang.String |
getName()
Returns the item name.
|
java.lang.String |
getSha1Hash()
Returns the hash of the item.
|
long |
getSize()
Returns the file size.
|
java.lang.String |
getType()
Sets the type of the item.
|
java.lang.String |
getUri()
Returns the URI of the item.
|
void |
setArtifact(Artifact artifact)
Sets the artifact associated with this item.
|
void |
setExtension(java.lang.String extension)
Sets the file extension.
|
void |
setName(java.lang.String name)
Sets the item name.
|
void |
setSha1Hash(java.lang.String sha1Hash)
Sets the sha1hash of the item.
|
void |
setSize(long size)
Sets the file size.
|
void |
setType(java.lang.String type)
Sets the type of the item.
|
void |
setUri(java.lang.String uri)
Sets the URI of the item.
|
public java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- the new URIpublic java.lang.String getSha1Hash()
This value is from the metadata, but should be checked when the item is downloaded.
public void setSha1Hash(java.lang.String sha1Hash)
sha1Hash
- the new hashpublic java.lang.String getType()
The valid types are:
public void setType(java.lang.String type)
type
- the typegetType()
public long getSize()
public void setSize(long size)
size
- the new size in bytespublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- the new extensionpublic Artifact getArtifact()
public void setArtifact(Artifact artifact)
artifact
- the new artifact