|
||||||||||
| 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.BaseInnerElement
org.gcube.data.gml.elements.GCubeAnnotation
public class GCubeAnnotation
An annotation for a GCubeDocument.
| Constructor Summary | |
|---|---|
GCubeAnnotation()
Creates an instance. |
|
GCubeAnnotation(String id)
Creates an instance that act as a proxy for a given annotation. |
|
| Method Summary | |
|---|---|
void |
_setPrevious(GCubeAnnotation a)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
postBinding(GCubeDocument d)
|
GCubeAnnotation |
previous()
Returns the annotation that precedes this annotation in an annotation thread, if available in the containing document. |
String |
previousID()
Returns the identifier of the annotation that precedes this element in an annotation thread. |
void |
setPrevious(GCubeAnnotation a)
Sets the annotation that precedes this annotation in an annotation thread. |
String |
toString()
|
protected static String |
toString(List<GCubeAnnotation> annotations,
boolean asThread)
|
| Methods inherited from class org.gcube.data.gml.elements.BaseInnerElement |
|---|
document, uri |
| 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 |
| Methods inherited from interface org.gcube.data.gml.elements.GCubeElement |
|---|
bytestream, bytestreamURI, creationTime, id, language, lastUpdate, length, mimeType, name, properties, property, resolveBytestream, schemaName, schemaURI, type |
| Constructor Detail |
|---|
public GCubeAnnotation()
public GCubeAnnotation(String id)
id - the annotation identifier.| Method Detail |
|---|
public void postBinding(GCubeDocument d)
throws IllegalStateException,
Exception
postBinding in class BaseInnerElementIllegalStateException
Exception
public void setPrevious(GCubeAnnotation a)
throws IllegalStateException,
IllegalArgumentException
a - the previous annotation, or null to unlink this annotation from any other.
IllegalStateException - if this annotation is not associated with a document or is a proxy of an existing annotation.
IllegalArgumentException - if the input annotation is new or is bound to a different document than this annotation's.public void _setPrevious(GCubeAnnotation a)
public GCubeAnnotation previous()
null if this annotation does not follow another in an annotation thread or
if it does but is not available in the containing document.public String previousID()
null if this annotation does not follow another in an annotation thread.public String toString()
toString in class BaseElementpublic int hashCode()
hashCode in class BaseElementpublic boolean equals(Object obj)
equals in class BaseElement
protected static String toString(List<GCubeAnnotation> annotations,
boolean asThread)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||