|
||||||||||
| 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 DAIXResourcepublic void setResourceName(java.lang.String resourceName)
DAIXResource
setResourceName in interface DAIXResourceresourceName - the resourceName to setpublic java.net.URI getResourceURI()
getResourceURI in interface DAIXResourcepublic void setResourceURI(java.net.URI resourceURI)
resourceURI - the resourceURI to set
public java.lang.String getCollectionName()
throws DAIXResource.MalformedResourceException
getCollectionName in interface DAIXResourceMalformedResourceException
DAIXResource.MalformedResourceExceptionpublic void setCollectionName(java.lang.String collectionName)
setCollectionName in interface DAIXResourcecollectionName - the name of the collection including the resource
public org.w3c.dom.Document getContent()
throws DAIXResource.MalformedResourceException
DAIXResourceDocument
getContent in interface DAIXResourceDAIXResource.MalformedResourceException
public void setContent(org.w3c.dom.Document content)
throws DAIXResource.MalformedResourceException
setContent in interface DAIXResourceDAIXResource.MalformedResourceException
public void setContent(java.lang.String content)
throws DAIXResource.MalformedResourceException
setContent in interface DAIXResourceDAIXResource.MalformedResourceExceptionpublic java.lang.String toString()
toString in interface DAIXResourcetoString in class java.lang.Object
public java.lang.String toStringFromElement(java.lang.String elementName)
throws DAIXResource.MalformedResourceException
toStringFromElement in interface DAIXResourcexml - the source XML serializationelementName - the name of the element
java.lang.Exception - if the serialization fails
DAIXResource.MalformedResourceExceptionpublic int hashCode()
hashCode in interface DAIXResourcehashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface DAIXResourceequals in class java.lang.Objectobj - the other resource to compare
public void deserializeFromIndexing(java.lang.String content)
throws DAIXResource.MalformedResourceException
deserializeFromIndexing in interface DAIXResourcecontent - the content
DAIXResource.MalformedResourceExceptionpublic java.lang.String serializeForIndexing()
serializeForIndexing in interface DAIXResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||