|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.metadata.Dataset
public class Dataset
This class represents a metadata document being served.
Constructor Summary | |
---|---|
Dataset()
Constructs an instance of a Dataset object. |
Method Summary | |
---|---|
void |
addCustomAttribute(String name,
String value)
Adds a custom attribute to the Dataset. |
boolean |
containsCustomAttributeKey(String name)
Returns true if a key with the name name is included. |
Dataset |
copy()
Copies the current Dataset. |
static String |
encodeThumbnail(File file)
Reads in a file, encodes it, and returns an encoded String. |
String |
getContent()
Returns content associated with this Dataset. |
Enumeration |
getCustomAttributeKeys()
Returns custom attribute keys as an Enumeration. |
String |
getCustomAttributeValue(String name)
Returns a custom attribute value given a key. |
String |
getDocID()
Returns the document ID for this Dataset. |
String |
getDocumentContent()
Returns the document content set in this bean. |
Envelope |
getEnvelope()
Returns the Envelope associated with the Dataset. |
String |
getGnd()
Returns the GND file value for the Dataset. |
String |
getIndexStatus()
Returns index status. |
String |
getName()
Returns the Dataset name string. |
String |
getOnLink()
Returns the onlink value of the dataset. |
String |
getOwner()
Returns the owner value. |
Dataset |
getParent()
Returns parent Dataset if it has been set. |
String |
getParentDocId()
Returns the parent DocID for this Dataset. |
long |
getRefCount()
Returns the reference count. |
String |
getServer()
Returns the server value for the Dataset. |
String |
getService()
Returns the Servicename for the Dataset. |
String |
getServiceType()
Returns the service type of the Dataset. |
String |
getThumbnail()
Returns encoded thumbnail data String. |
String |
getTimeStamp()
Returns the timestamp of the Dataset as a String. |
String |
getUpdated()
Returns time updated as a String. |
String |
getUrl()
Returns the URL value for the Dataset. |
boolean |
isFolder()
True if this Dataset is a folder, false otherwise. |
boolean |
isHasChildren()
Returns true if the Dataset has children, false otherwise. |
boolean |
isHasSiblings()
Returns true if the Dataset has siblings, false otherwise. |
boolean |
isPrivate()
Returns true if the Dataset is private, false otherwise. |
void |
setContent(String newContent)
Sets the content of this Dataset. |
void |
setDocID(String docID)
Sets the document ID for this Dataset. |
void |
setDocumentContent(String content)
Sets the document content value for this bean. |
void |
setEnvelope(Envelope newEnvelope)
Sets the Envelope of the Dataset. |
void |
setGnd(String newGnd)
Sets the GND file value for the Dataset. |
void |
setHasChildren(boolean newHasChildren)
Sets whether or not Dataset has children. |
void |
setHasSiblings(boolean newHasSiblings)
Sets whether or not Dataset has siblings. |
void |
setIndexStatus(String newIndexStatus)
Sets index status with given string. |
void |
setIsFolder(boolean newIsFolder)
True to set this Dataset as a folder, false otherwise. |
void |
setIsPrivate(boolean newIsPrivate)
Sets the Dataset as private or not. |
void |
setName(String newName)
Sets the name of the Dataset. |
void |
setOnLink(String newOnLink)
Sets the onlink value for the Dataset. |
void |
setOwner(String newOwner)
Sets the owner value. |
void |
setParent(Dataset parent)
Sets a Dataset as this one's parent. |
void |
setParentDocId(String value)
Sets the parent DocID for this Dataset. |
void |
setRefCount(long newRefCount)
Sets the Reference count. |
void |
setServer(String newServer)
Sets the server value for the Dataset. |
void |
setService(String newService)
Sets the Servicename for the Dataset. |
void |
setServiceType(String newServiceType)
Sets the service type as a String (Image, Feature, etc.). |
void |
setThumbnail(File thumbnailFile)
Sets the thumbnail from a File. |
void |
setThumbnail(String thumbnailData)
Sets the thumbnail as a data String. |
void |
setThumbnail(String thumbnailData,
boolean encode)
Sets the thumbnail as a data String. |
void |
setTimeStamp(String newTimeStamp)
Sets the given string as timestamp for the Dataset. |
void |
setUpdated(String newUpdated)
Sets time updated as a String. |
void |
setUrl(String newUrl)
Sets the URL value for the Dataset as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dataset()
Method Detail |
---|
public String getDocID()
public void setDocID(String docID)
docID
- the document ID string for the Dataset.public String getName()
public void setName(String newName)
newName
- is the newName for the Dataset.public void setOwner(String newOwner)
public String getOwner()
public void setHasChildren(boolean newHasChildren)
public boolean isHasChildren()
public void setHasSiblings(boolean newHasSiblings)
public boolean isHasSiblings()
public void setUrl(String newUrl)
public String getUrl()
public void setOnLink(String newOnLink)
public String getOnLink()
public void setIsPrivate(boolean newIsPrivate)
public boolean isPrivate()
public void setTimeStamp(String newTimeStamp)
public String getTimeStamp()
public void setEnvelope(Envelope newEnvelope)
public Envelope getEnvelope()
public void setServer(String newServer)
public String getServer()
public void setServiceType(String newServiceType)
public String getServiceType()
public void setGnd(String newGnd)
public String getGnd()
public void setThumbnail(String thumbnailData)
setThumbNail(File)
is recommeded here as an alternative.
thumbnailData
- The data for a thumbnail image.setThumbnail(File)
,
encodeThumbnail(File)
public void setThumbnail(String thumbnailData, boolean encode)
thumbnailData
- The data for a thumbnail image.encode
- True to encode thumbnail datasetThumbnail(File)
,
encodeThumbnail(File)
public void setThumbnail(File thumbnailFile) throws IOException
thumbnailFile
- The File of the thumbnail image.
IOException
setThumbnail(String)
public String getThumbnail()
public void setDocumentContent(String content)
public String getDocumentContent()
public void setService(String newService)
public String getService()
public void setParent(Dataset parent)
public Dataset getParent()
public void setIsFolder(boolean newIsFolder)
public boolean isFolder()
public void setContent(String newContent)
public String getContent()
public String getParentDocId()
public void setParentDocId(String value)
public void setRefCount(long newRefCount)
public long getRefCount()
public void setIndexStatus(String newIndexStatus)
public String getIndexStatus()
public void setUpdated(String newUpdated)
public String getUpdated()
public void addCustomAttribute(String name, String value)
public Enumeration getCustomAttributeKeys()
public String getCustomAttributeValue(String name)
public boolean containsCustomAttributeKey(String name)
public static String encodeThumbnail(File file) throws IOException
file
- is the file to be read in and encoded.
IOException
public Dataset copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |