public final class MetadataRecord
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MetadataRecord.TYPE |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getAsDocument()
Gets a
Document representation of the record |
java.lang.String |
getEntryKey() |
java.util.Calendar |
getGetTerminationTime() |
java.lang.String |
getGroupKey() |
java.lang.String |
getKey() |
java.lang.String |
getPublicationMode() |
java.lang.String |
getSource() |
java.lang.Integer |
getTimeToLive() |
MetadataRecord.TYPE |
getType() |
void |
setEntryKey(java.lang.String entryKey) |
void |
setGroupKey(java.lang.String groupKey) |
void |
setKey(java.lang.String key) |
void |
setNamespace(java.lang.String namespace) |
void |
setPublicationMode(java.lang.String publicationMode) |
void |
setSource(java.lang.String source) |
void |
setTimeToLive(java.lang.Integer time) |
void |
setType(MetadataRecord.TYPE type) |
java.lang.String |
toString() |
public java.util.Calendar getGetTerminationTime()
public void setTimeToLive(java.lang.Integer time)
time
- this amount of time (in seconds) will be added to the current time to determine the
resource's termination timepublic java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the source to setpublic java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the key to setpublic java.lang.String getGroupKey()
public void setGroupKey(java.lang.String groupKey)
groupKey
- the groupKey to setpublic java.lang.String getEntryKey()
public void setEntryKey(java.lang.String entryKey)
entryKey
- the entryKey to setpublic MetadataRecord.TYPE getType()
public void setType(MetadataRecord.TYPE type)
type
- the type to setpublic java.lang.Integer getTimeToLive()
public org.w3c.dom.Document getAsDocument() throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
Document
representation of the recordorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPublicationMode()
public void setPublicationMode(java.lang.String publicationMode)
public void setNamespace(java.lang.String namespace)