|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.gml.elements.BaseElement
org.gcube.data.gml.elements.GCubeDocument
public class GCubeDocument
A gCube Document.
This implementation if thread-unsafe. Where required, thread-safety is responsibility of clients.
| Constructor Summary | |
|---|---|
GCubeDocument()
Creates an instance. |
|
GCubeDocument(String id)
Creates an instance that act as a proxy for a given document. |
|
GCubeDocument(String id,
String collectionID)
Creates an instance that act as a proxy for a given document in given collection. |
|
| Method Summary | |
|---|---|
InnerElements<GCubeAlternative> |
alternatives()
Returns the GCubeAlternative elements of the document for read and write access. |
AnnotationElements |
annotations()
Returns the GCubeAnnotation elements of the document for read and write access. |
String |
collectionID()
Returns the identifier of the document's collection |
org.gcube.data.trees.data.Tree |
delta()
|
Map<String,BaseInnerElement> |
elements()
Returns all the elements of the document, in no particular order. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isTracked()
|
MetadataElements |
metadata()
Returns the GCubeMetadata elements of the document for read and write access. |
InnerElements<GCubePart> |
parts()
Returns the GCubePart elements of the document for read and write access. |
void |
resetChanges()
|
void |
setCollectionID(String id)
Sets the identifier of the document's collection. |
String |
toString()
|
void |
trackChanges()
|
URI |
uri()
Returns the storage URI of the element. |
| Methods inherited from class org.gcube.data.gml.elements.BaseElement |
|---|
addProperty, bytestream, bytestreamURI, creationTime, id, isNew, language, lastUpdate, length, mimeType, name, properties, property, removeProperty, resolveBytestream, schemaName, schemaURI, setBytestream, setBytestream, setBytestream, setBytestreamURI, setLanguage, setLenght, setMimeType, setName, setSchemaName, setSchemaURI, setType, type |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GCubeDocument()
public GCubeDocument(String id)
id - the document identifier.
public GCubeDocument(String id,
String collectionID)
id - the document identifier.collectionID - the collection identifier| Method Detail |
|---|
public String collectionID()
public void setCollectionID(String id)
throws IllegalArgumentException,
IllegalStateException
id - the collection identifier
IllegalArgumentException - if the collection identifier is null.
IllegalStateException - if the document has already a collection identifier.
public URI uri()
throws IllegalStateException,
URISyntaxException
IllegalStateException - if the element has no identifier or is not bound to a document.
URISyntaxException - if the identifier of the element or its document cannot be used in a URI.public MetadataElements metadata()
GCubeMetadata elements of the document for read and write access.
public AnnotationElements annotations()
GCubeAnnotation elements of the document for read and write access.
public InnerElements<GCubePart> parts()
GCubePart elements of the document for read and write access.
public InnerElements<GCubeAlternative> alternatives()
GCubeAlternative elements of the document for read and write access.
public Map<String,BaseInnerElement> elements()
public boolean isTracked()
public void trackChanges()
throws IllegalStateException,
Exception
IllegalStateException
Exception
public void resetChanges()
throws IllegalStateException
IllegalStateException
public org.gcube.data.trees.data.Tree delta()
throws IllegalStateException,
Exception
IllegalStateException
Exceptionpublic String toString()
toString in class BaseElementpublic int hashCode()
hashCode in class BaseElementpublic boolean equals(Object obj)
equals in class BaseElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||