public class GCUBEXMLResource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GCUBEXMLResource.MalformedXMLResourceException
Malformed XML resource exception
|
static class |
GCUBEXMLResource.RESOURCETYPE
the resource type states if the resource contains a profile or generic WS-ResourceProperties
|
Constructor and Description |
---|
GCUBEXMLResource(DAIXResource resource) |
Modifier and Type | Method and Description |
---|---|
void |
deserializeFromIndexing(java.lang.String content,
boolean... enveloped)
Sets the content of the resource
|
java.lang.String |
getCollectionName() |
org.w3c.dom.Document |
getContent()
Gets the wrapped
BaseDAIXResource 's content |
java.lang.String |
getEntryKey()
Accesses the source EntryKey
|
java.lang.String |
getGroupKey()
Accesses the source GroupKey
|
java.util.Calendar |
getLastUpdateTime() |
long |
getLastUpdateTimeinMills() |
java.lang.String |
getNamespace()
Gets the namespace
|
java.lang.String |
getPublicationMode()
The mode in which the resource was published
|
java.lang.String |
getResourceName() |
java.lang.String |
getSource()
Accesses the source address of the service that published the data
|
java.lang.String |
getSourceKey()
Gets the key of the WS-Resource that published the data
|
java.lang.String |
getSourceRunningInstance() |
java.util.Calendar |
getTerminationTime() |
void |
setEntryKey(java.lang.String entryKey)
Sets the source EntryKey
|
void |
setGroupKey(java.lang.String groupKey)
Sets the source GroupKey
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace
|
void |
setPublicationMode(java.lang.String publicationMode) |
void |
setSource(java.lang.String source)
Sets the source address of the RI that publishes resource as reported in the servicegroup
entry
|
void |
setSourceKey(java.lang.String key)
Sets the key of the WS-Resource that published the data
|
void |
setTerminationTime(java.util.Calendar terminationTime) |
java.lang.String |
toString() |
java.lang.String |
toStringFromElement(org.w3c.dom.Document xml,
java.lang.String elementName)
Returns a sub-serialization of the given XML, starting from the element name
|
public GCUBEXMLResource(DAIXResource resource) throws GCUBEXMLResource.MalformedXMLResourceException
public java.lang.String getCollectionName() throws GCUBEXMLResource.MalformedXMLResourceException
DAIXResource.MalformedResourceException
GCUBEXMLResource.MalformedXMLResourceException
public java.lang.String getResourceName() throws GCUBEXMLResource.MalformedXMLResourceException
DAIXResource.MalformedResourceException
GCUBEXMLResource.MalformedXMLResourceException
public java.util.Calendar getTerminationTime()
public java.util.Calendar getLastUpdateTime()
public void setTerminationTime(java.util.Calendar terminationTime)
terminationTime
- the terminationTime to setpublic long getLastUpdateTimeinMills() throws DAIXResource.MalformedResourceException
java.lang.Exception
- if an error occurs when accessing the LastUpdateMs fieldDAIXResource.MalformedResourceException
public java.lang.String getGroupKey()
public void setGroupKey(java.lang.String groupKey)
groupKey
- the new group keypublic java.lang.String getEntryKey()
public void setEntryKey(java.lang.String entryKey)
entryKey
- the new entry keypublic void setSource(java.lang.String source)
source
- the new source addresspublic java.lang.String getSource()
public java.lang.String getPublicationMode()
public void setSourceKey(java.lang.String key)
key
- the new source keypublic java.lang.String getSourceKey()
public void setNamespace(java.lang.String namespace)
namamespace
- the namespacepublic java.lang.String getNamespace()
public void setPublicationMode(java.lang.String publicationMode)
public void deserializeFromIndexing(java.lang.String content, boolean... enveloped)
content
- the contentenveloped
- true if the content is wrapped in the metadata enveloppublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringFromElement(org.w3c.dom.Document xml, java.lang.String elementName) throws GCUBEXMLResource.MalformedXMLResourceException
xml
- the source XML serializationelementName
- the name of the elementjava.lang.Exception
- if the serialization failsGCUBEXMLResource.MalformedXMLResourceException
public org.w3c.dom.Document getContent() throws GCUBEXMLResource.MalformedXMLResourceException
BaseDAIXResource
's contentGCUBEXMLResource.MalformedXMLResourceException
public java.lang.String getSourceRunningInstance() throws java.lang.Exception
java.lang.Exception