44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package org.gcube.informationsystem.collector.impl.resources;
|
|
|
|
import org.w3c.dom.Document;
|
|
|
|
public class GCUBEInstanceStateResource extends BaseDAIXResource {
|
|
|
|
protected static final String PROPERTIES_COLLECTION_NAME = "Properties";
|
|
|
|
/**
|
|
* @return the name of the collection including the resource
|
|
*/
|
|
public String getCollectionName() {
|
|
return PROPERTIES_COLLECTION_NAME;
|
|
}
|
|
|
|
/**
|
|
* @param collectionName the name of the collection including the resource
|
|
*/
|
|
public void setCollectionName(String collectionName) {
|
|
// cannot change the collection name
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see org.gcube.informationsystem.collector.impl.resources.BaseDAIXResource#setContent(org.w3c.dom.Document)
|
|
*/
|
|
@Override
|
|
public void setContent(Document content) throws MalformedResourceException {
|
|
//Instance state are not well-formed XML, they are a flat list of Elements, cannot set the content as document
|
|
throw new MalformedResourceException("cannot set the content as document");
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see org.gcube.informationsystem.collector.impl.resources.BaseDAIXResource#getContent()
|
|
*/
|
|
@Override
|
|
public Document getContent() throws MalformedResourceException {
|
|
throw new MalformedResourceException("cannot get the content as document");
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|