|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oodt.cas.filemgr.structs.Reference
public class Reference
A reference stores the original item reference, and also the item's data store reference, which describes its location within the data store.
Constructor Summary | |
---|---|
Reference()
Default constructor |
|
Reference(Reference r)
Copy Constructor |
|
Reference(String origRef,
String dataRef,
long size)
Constructs a new Reference with the specified parameters. |
|
Reference(String origRef,
String dataRef,
long size,
org.apache.tika.mime.MimeType mime)
Constructs a new Reference with the specified parameters. |
Method Summary | |
---|---|
String |
getDataStoreReference()
|
long |
getFileSize()
|
org.apache.tika.mime.MimeType |
getMimeType()
|
String |
getOrigReference()
|
void |
setDataStoreReference(String dataStoreReference)
|
void |
setFileSize(long fileSize)
|
void |
setMimeType(org.apache.tika.mime.MimeType mime)
|
void |
setMimeType(String name)
|
void |
setOrigReference(String origReference)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reference(Reference r)
Copy Constructor
r
- The Reference object to copypublic Reference()
Default constructor
public Reference(String origRef, String dataRef, long size)
Constructs a new Reference with the specified parameters.
origRef
- The item's original location.dataRef
- The item's location within the data store.size
- The size of the file that this reference refers to.public Reference(String origRef, String dataRef, long size, org.apache.tika.mime.MimeType mime)
Constructs a new Reference with the specified parameters. In particular, a MimeType object is explicitly supplied. This object represents the mime-type of the item this reference refers to
origRef
- The item's original location.dataRef
- The item's location within the data store.size
- The size of the file that this reference refers to.mime
- A MimeType object representing the mime-type of the itemMethod Detail |
---|
public String getDataStoreReference()
public void setDataStoreReference(String dataStoreReference)
dataStoreReference
- The dataStoreReference to set.public String getOrigReference()
public void setOrigReference(String origReference)
origReference
- The origReference to set.public long getFileSize()
public void setFileSize(long fileSize)
fileSize
- The fileSize to set.public org.apache.tika.mime.MimeType getMimeType()
public void setMimeType(org.apache.tika.mime.MimeType mime)
mime
- the MimeType object to set for this referencepublic void setMimeType(String name)
name
- the String name of the mimetype of this referencepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |