org.gcube.common.resources.kxml.cs
Class KGCUBECS

java.lang.Object
  extended by org.gcube.common.core.resources.GCUBEResource
      extended by org.gcube.common.core.resources.GCUBECS
          extended by org.gcube.common.resources.kxml.cs.KGCUBECS
All Implemented Interfaces:
GCUBEResourceImpl

public class KGCUBECS
extends GCUBECS
implements GCUBEResourceImpl

Author:
Andrea Manzi (ISTI-CNR)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.resources.GCUBEResource
GCUBEResource.AddScopeEvent, GCUBEResource.InvalidScopeException, GCUBEResource.RemoveScopeEvent, GCUBEResource.ResourceConsumer, GCUBEResource.ResourceEvent<PAYLOAD>, GCUBEResource.ResourceTopic
 
Field Summary
 
Fields inherited from class org.gcube.common.core.resources.GCUBECS
TYPE
 
Fields inherited from class org.gcube.common.core.resources.GCUBEResource
eventProducer, logger, resourceVersion, type
 
Constructor Summary
KGCUBECS()
           
 
Method Summary
 InputStream getSchemaResource()
           
 void load(org.kxml2.io.KXmlParser parser)
           
 void load(Reader reader)
          Deserialise the state of the resource from an existing serialisation.
 void store(org.kxml2.io.KXmlSerializer serializer)
           
 void store(Writer writer)
          Serialise the current state of the resource.
 
Methods inherited from class org.gcube.common.core.resources.GCUBECS
equals, getBPEL, getCreationTime, getCreator, getDescription, getOsiris, getProcessName, getWSDL, isBase64, setBase64, setBPEL, setCreationTime, setCreator, setDescription, setOsiris, setProcessName, setWSDL
 
Methods inherited from class org.gcube.common.core.resources.GCUBEResource
addScope, getID, getLastResourceVersion, getResourceVersion, getScopes, getType, inScope, removeScope, setID, setLogger, setResourceVersion, subscribeResourceEvents, validateAddScopes, validateRemoveScopes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KGCUBECS

public KGCUBECS()
Method Detail

load

public void load(Reader reader)
          throws Exception
Description copied from class: GCUBEResource
Deserialise the state of the resource from an existing serialisation. The operations is destructive with respect to the current state of the resource.

Specified by:
load in class GCUBEResource
Parameters:
reader - the Reader which exposes the serialisation.
Throws:
UnsupportedOperationException - if this operation is not supported by implementation.
Exception - if the operation is supported but could not complete successfully.

store

public void store(Writer writer)
           throws Exception
Description copied from class: GCUBEResource
Serialise the current state of the resource.

Specified by:
store in class GCUBEResource
Parameters:
writer - the Writer which exposes the serialisation.
Throws:
UnsupportedOperationException
Exception - if the operation is supported but could not complete successfully.

getSchemaResource

public InputStream getSchemaResource()
                              throws FileNotFoundException
Specified by:
getSchemaResource in interface GCUBEResourceImpl
Throws:
FileNotFoundException

load

public void load(org.kxml2.io.KXmlParser parser)
          throws Exception
Specified by:
load in interface GCUBEResourceImpl
Throws:
Exception

store

public void store(org.kxml2.io.KXmlSerializer serializer)
           throws Exception
Specified by:
store in interface GCUBEResourceImpl
Throws:
Exception


Copyright © 2013. All Rights Reserved.