org.gcube.contentmanagement.gcubemodellibrary.elements
Class BaseInnerElement

java.lang.Object
  extended by org.gcube.contentmanagement.gcubemodellibrary.elements.BaseElement
      extended by org.gcube.contentmanagement.gcubemodellibrary.elements.BaseInnerElement
All Implemented Interfaces:
GCubeElement, GCubeInnerElement
Direct Known Subclasses:
GCubeAlternative, GCubeAnnotation, GCubeMetadata, GCubePart

public abstract class BaseInnerElement
extends BaseElement
implements GCubeInnerElement

Partial implementation of GCubeElements that occur within GCubeDocuments.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 GCubeDocument document()
          Returns the containing GCubeDocument.
 void postBinding(GCubeDocument d)
           
 java.net.URI uri()
          Returns the storage URI of the element.
 
Methods inherited from class org.gcube.contentmanagement.gcubemodellibrary.elements.BaseElement
addProperty, bytestream, bytestreamURI, creationTime, equals, hashCode, id, isNew, language, lastUpdate, length, mimeType, name, properties, property, removeProperty, resolveBytestream, schemaName, schemaURI, setBytestream, setBytestream, setBytestream, setBytestreamURI, setLanguage, setLenght, setMimeType, setName, setSchemaName, setSchemaURI, setType, toString, 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
 

Method Detail

document

public GCubeDocument document()
Returns the containing GCubeDocument.

Specified by:
document in interface GCubeInnerElement
Returns:
the document, or null if the element is yet to be bound to one.

postBinding

public void postBinding(GCubeDocument d)
                 throws java.lang.IllegalStateException,
                        java.lang.Exception
Throws:
java.lang.IllegalStateException
java.lang.Exception

uri

public java.net.URI uri()
                 throws java.lang.IllegalStateException,
                        java.net.URISyntaxException
Returns the storage URI of the element.

Specified by:
uri in interface GCubeElement
Returns:
the URI.
Throws:
java.lang.IllegalStateException - if the element has no identifier or is not bound to a document.
java.net.URISyntaxException - if the identifier of the element or its document cannot be used in a URI.