|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.informationsystem.collector.impl.resources.BaseDAIXResource
public class BaseDAIXResource
Encapsulates a WS-DAIX data resource which represents a collection or document in an XML database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.gcube.informationsystem.collector.impl.resources.DAIXResource |
---|
DAIXResource.MalformedResourceException |
Constructor Summary | |
---|---|
BaseDAIXResource()
|
|
BaseDAIXResource(java.lang.String resourceName)
|
Method Summary | |
---|---|
void |
deserializeFromIndexing(java.lang.String content)
Deserializes the content retrieved from the XML storage |
boolean |
equals(java.lang.Object obj)
Indicates whether some other resource is "equal to" this one |
java.lang.String |
getCollectionName()
|
org.w3c.dom.Document |
getContent()
The resource content as Document |
java.lang.String |
getResourceName()
|
java.net.URI |
getResourceURI()
|
int |
hashCode()
|
java.lang.String |
serializeForIndexing()
Creates a serialization of the resource to be indexed |
void |
setCollectionName(java.lang.String collectionName)
|
void |
setContent(org.w3c.dom.Document content)
|
void |
setContent(java.lang.String content)
|
void |
setResourceName(java.lang.String resourceName)
Sets the resource unique name |
void |
setResourceURI(java.net.URI resourceURI)
|
java.lang.String |
toString()
|
java.lang.String |
toStringFromElement(java.lang.String elementName)
Returns a sub-serialization of the given XML, starting from the element name |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseDAIXResource()
public BaseDAIXResource(java.lang.String resourceName)
Method Detail |
---|
public java.lang.String getResourceName()
getResourceName
in interface DAIXResource
public void setResourceName(java.lang.String resourceName)
DAIXResource
setResourceName
in interface DAIXResource
resourceName
- the resourceName to setpublic java.net.URI getResourceURI()
getResourceURI
in interface DAIXResource
public void setResourceURI(java.net.URI resourceURI)
resourceURI
- the resourceURI to setpublic java.lang.String getCollectionName() throws DAIXResource.MalformedResourceException
getCollectionName
in interface DAIXResource
MalformedResourceException
DAIXResource.MalformedResourceException
public void setCollectionName(java.lang.String collectionName)
setCollectionName
in interface DAIXResource
collectionName
- the name of the collection including the resourcepublic org.w3c.dom.Document getContent() throws DAIXResource.MalformedResourceException
DAIXResource
Document
getContent
in interface DAIXResource
DAIXResource.MalformedResourceException
public void setContent(org.w3c.dom.Document content) throws DAIXResource.MalformedResourceException
setContent
in interface DAIXResource
DAIXResource.MalformedResourceException
public void setContent(java.lang.String content) throws DAIXResource.MalformedResourceException
setContent
in interface DAIXResource
DAIXResource.MalformedResourceException
public java.lang.String toString()
toString
in interface DAIXResource
toString
in class java.lang.Object
public java.lang.String toStringFromElement(java.lang.String elementName) throws DAIXResource.MalformedResourceException
toStringFromElement
in interface DAIXResource
xml
- the source XML serializationelementName
- the name of the element
java.lang.Exception
- if the serialization fails
DAIXResource.MalformedResourceException
public int hashCode()
hashCode
in interface DAIXResource
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface DAIXResource
equals
in class java.lang.Object
obj
- the other resource to compare
public void deserializeFromIndexing(java.lang.String content) throws DAIXResource.MalformedResourceException
deserializeFromIndexing
in interface DAIXResource
content
- the content
DAIXResource.MalformedResourceException
public java.lang.String serializeForIndexing()
serializeForIndexing
in interface DAIXResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |