Constructor and Description |
---|
ReferenceResource()
Default constructor required by JAXB.
|
ReferenceResource(String productId,
int refIndex,
Reference reference,
File workingDir)
Constructor that sets the reference and working directory for the resource.
|
Modifier and Type | Method and Description |
---|---|
String |
getDataStoreReference()
Gets the data store reference for the reference.
|
long |
getFileSize()
Gets the file size for the reference.
|
org.apache.tika.mime.MimeType |
getMimeType()
Gets the MIME type for the reference.
|
String |
getMimeTypeName()
Gets the name of the MIME type for the reference.
|
String |
getOrigReference()
Gets the original reference for the reference.
|
String |
getProductId()
Gets the ID of the product that the reference belongs to.
|
Reference |
getReference()
Gets the reference.
|
int |
getRefIndex()
Gets the index of the reference within its product.
|
File |
getWorkingDir()
Gets the working directory for the reference.
|
public ReferenceResource()
public ReferenceResource(String productId, int refIndex, Reference reference, File workingDir)
productId
- the ID of the product that the reference belongs torefIndex
- the index of the reference within its productreference
- the reference for the resourceworkingDir
- the working directory for creating temporary files to
attach to responsespublic Reference getReference()
public File getWorkingDir()
public String getProductId()
public int getRefIndex()
public String getDataStoreReference()
public long getFileSize()
public String getMimeTypeName()
public org.apache.tika.mime.MimeType getMimeType()
public String getOrigReference()
Copyright © 1999–2017 Apache OODT. All rights reserved.