|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GCubeElement
The read-only interface of all elements of the gCube Document Model,
including GCubeDocument
s and their inner elements.
Method Summary | |
---|---|
byte[] |
bytestream()
Returns the element's bytestream. |
java.net.URI |
bytestreamURI()
Returns a URI to the element's bytestream. |
java.util.Calendar |
creationTime()
Returns the creation time of the element. |
java.lang.String |
id()
Returns the identifier of the element. |
java.lang.String |
language()
Returns the language of the element. |
java.util.Calendar |
lastUpdate()
Returns the time of last update of the element. |
java.lang.Long |
length()
Returns the length of the element's bytestream. |
java.lang.String |
mimeType()
Returns the Mime type of the element. |
java.lang.String |
name()
Returns the descriptive name of the element. |
java.util.Map<java.lang.String,GCubeElementProperty> |
properties()
Returns the generic properties of the element. |
GCubeElementProperty |
property(java.lang.String key)
Returns a generic property of the element. |
java.io.InputStream |
resolveBytestream()
Returns an InputStream over the element's bytestream, resolving it if it is referenced by a URI . |
java.lang.String |
schemaName()
Returns the descriptive name of the element's schema. |
java.net.URI |
schemaURI()
Return the URI of the element's schema. |
java.lang.String |
type()
Returns the type of the element. |
java.net.URI |
uri()
Returns the storage URI of the element. |
Method Detail |
---|
java.lang.String id()
java.lang.String name()
java.lang.String type()
java.util.Calendar creationTime()
java.util.Calendar lastUpdate()
java.lang.String mimeType()
java.lang.Long length()
byte[] bytestream()
null
if the element has no content or does not include it.java.net.URI bytestreamURI()
URI
to the element's bytestream.
null
if a URI for the element's bytestream does
not exist or is not included in the element.java.io.InputStream resolveBytestream() throws java.io.IOException
InputStream
over the element's bytestream, resolving it if it is referenced by a URI
.
null
if the element has no bytestream.
java.io.IOException
java.net.URI uri() throws java.lang.IllegalStateException, java.net.URISyntaxException
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.java.lang.String language()
java.net.URI schemaURI()
java.lang.String schemaName()
GCubeElementProperty property(java.lang.String key)
name
- the property key.
null
if the element has no property with the given key.java.util.Map<java.lang.String,GCubeElementProperty> properties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |