org.gcube.informationsystem.glitebridge.kimpl
Class KStorageElement

java.lang.Object
  extended by org.gcube.informationsystem.glitebridge.resource.StorageElement
      extended by org.gcube.informationsystem.glitebridge.kimpl.KStorageElement

public class KStorageElement
extends StorageElement

Author:
Luca Frosini (ISTI-CNR)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.informationsystem.glitebridge.resource.StorageElement
StorageElement.SATypeEnum, StorageElement.SEArchitectureEnum, StorageElement.SEControlProtocolEnum, StorageElement.ServiceStatusEnum
 
Constructor Summary
KStorageElement()
           
 
Method Summary
 java.io.InputStream getSchemaResource()
           
 void load(java.io.Reader reader, java.lang.String rootTag)
          Deserialises a GCUBEResourceImpl which implements a GCUBEResource from a serialisation.
 void store(java.io.Writer writer, java.lang.String rootTag)
          Serialises a GCUBEResourceImpl which implements a GCUBEResource.
 
Methods inherited from class org.gcube.informationsystem.glitebridge.resource.StorageElement
getStorageElement, setStorageElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KStorageElement

public KStorageElement()
Method Detail

load

public void load(java.io.Reader reader,
                 java.lang.String rootTag)
          throws java.lang.Exception
Deserialises a GCUBEResourceImpl which implements a GCUBEResource from a serialisation.

Parameters:
reader - the Reader.
rootTag - START and END TAG
Throws:
java.lang.Exception - if could not be deserialised.

store

public void store(java.io.Writer writer,
                  java.lang.String rootTag)
           throws java.lang.Exception
Serialises a GCUBEResourceImpl which implements a GCUBEResource.

Parameters:
writer - the Writer which gives access to the serialisation.
rootTag - START and END TAG
Throws:
java.lang.Exception - if the GCUBEResourceImpl could not be serialised.

getSchemaResource

public java.io.InputStream getSchemaResource()
Returns:
InputStream