|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.gcubemodellibrary.elements.BaseElement
org.gcube.contentmanagement.gcubemodellibrary.elements.BaseInnerElement
org.gcube.contentmanagement.gcubemodellibrary.elements.GCubeAnnotation
public class GCubeAnnotation
An annotation for a GCubeDocument
.
Constructor Summary | |
---|---|
GCubeAnnotation()
Creates an instance. |
|
GCubeAnnotation(java.lang.String id)
Creates an instance that act as a proxy for a given annotation. |
Method Summary | |
---|---|
void |
_setPrevious(GCubeAnnotation a)
|
boolean |
equals(java.lang.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. |
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class org.gcube.contentmanagement.gcubemodellibrary.elements.BaseInnerElement |
---|
document, uri |
Methods inherited from class org.gcube.contentmanagement.gcubemodellibrary.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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.gcube.contentmanagement.gcubemodellibrary.elements.GCubeElement |
---|
bytestream, bytestreamURI, creationTime, id, language, lastUpdate, length, mimeType, name, properties, property, resolveBytestream, schemaName, schemaURI, type |
Constructor Detail |
---|
public GCubeAnnotation()
public GCubeAnnotation(java.lang.String id)
id
- the annotation identifier.Method Detail |
---|
public void postBinding(GCubeDocument d) throws java.lang.IllegalStateException, java.lang.Exception
postBinding
in class BaseInnerElement
java.lang.IllegalStateException
java.lang.Exception
public void setPrevious(GCubeAnnotation a) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
a
- the previous annotation, or null
to unlink this annotation from any other.
java.lang.IllegalStateException
- if this annotation is not associated with a document or is a proxy of an existing annotation.
java.lang.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 java.lang.String previousID()
null
if this annotation does not follow another in an annotation thread.public java.lang.String toString()
toString
in class BaseElement
public int hashCode()
hashCode
in class BaseElement
public boolean equals(java.lang.Object obj)
equals
in class BaseElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |