org.gcube.contentmanagement.gcubemodellibrary.elements
Class GCubePart
java.lang.Object
org.gcube.contentmanagement.gcubemodellibrary.elements.BaseElement
org.gcube.contentmanagement.gcubemodellibrary.elements.BaseInnerElement
org.gcube.contentmanagement.gcubemodellibrary.elements.GCubePart
- All Implemented Interfaces:
- GCubeElement, GCubeInnerElement
public class GCubePart
- extends BaseInnerElement
A part of a GCubeDocument
.
- Author:
- Federico De Faveri defaveri@isti.cnr.it, Fabio Simeoni (University of Strathclyde)
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 |
GCubePart
public GCubePart()
GCubePart
public GCubePart(java.lang.String id)
order
public int order()
- Returns the order of the part within the document.
- Returns:
- the order.
setOrder
public void setOrder(int o)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
- Sets the order of the part within the document.
- Parameters:
o
- the order.
- Throws:
java.lang.IllegalStateException
- if the part is not associated with a document.
java.lang.IllegalArgumentException
postBinding
public void postBinding(GCubeDocument d)
throws java.lang.IllegalStateException,
java.lang.Exception
-
- Overrides:
postBinding
in class BaseInnerElement
- Throws:
java.lang.IllegalStateException
java.lang.Exception
previous
public GCubePart previous()
- Returns the part that precedes this part.
- Returns:
- the previous part, or
null
if this part has no previous
or if the previous part is not available in the containing document.
toString
public java.lang.String toString()
-
- Overrides:
toString
in class BaseElement
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseElement
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class BaseElement