org.objectweb.dsrg.sofa.repository.model
Interface CodeBundle

All Superinterfaces:
org.eclipse.emf.ecore.EObject, NamedEntity, org.eclipse.emf.common.notify.Notifier, VersionedEntity
All Known Implementing Classes:
CodeBundleImpl

public interface CodeBundle
extends VersionedEntity

A representation of the model object 'Code Bundle'.

The following features are supported:

See Also:
ModelPackage.getCodeBundle()
Generated from the meta-model
Part of the meta-model

Method Summary
 java.io.InputStream getDataInputStream(DataStreamType dataStreamType)
          Opens data input stream into specified stream of CodeBundle.
 java.io.InputStream getDataInputStream(DataStreamType dataStream, java.lang.String jarEntryName)
          Opens data output stream into specified stream of CodeBundle and specified JAR entry only.
 java.io.InputStream getDataInputStream(DataStreamType dataStream, java.lang.String jarEntryName, boolean recursiveSearching)
          Opens data output stream into specified stream of CodeBundle and specified JAR entry only.
 java.io.OutputStream getDataOutputStream(DataStreamType dataStreamType)
          Opens data output stream into specified stream of CodeBundle.
 org.eclipse.emf.common.util.EList<CodeBundle> getDependencies()
          Returns the value of the 'Dependencies' reference list.
 java.util.jar.Manifest getJarManifest(DataStreamType dataStream)
          Get Manifest object for JAR file stored in this Codebundle.
 boolean isStandalone()
          Returns the value of the 'Standalone' attribute
 boolean isThirdParty()
          Returns the value of the 'Third Party' attribute
 void setStandalone(boolean value)
          Sets the value of the 'Standalone' attribute
 void setThirdParty(boolean value)
          Sets the value of the 'Third Party' attribute
 
Methods inherited from interface org.objectweb.dsrg.sofa.repository.model.VersionedEntity
addInfo, addTag, getInfo, getVersion, isLocked, removeTag, setLocked, setVersion
 
Methods inherited from interface org.objectweb.dsrg.sofa.repository.model.NamedEntity
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

isStandalone

boolean isStandalone()
Returns the value of the 'Standalone' attribute.

If the meaning of the 'Standalone' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Standalone' attribute.
See Also:
setStandalone(boolean), ModelPackage.getCodeBundle_Standalone()
Generated from the meta-model
Part of the meta-model

setStandalone

void setStandalone(boolean value)
Sets the value of the 'Standalone' attribute.

Parameters:
value - the new value of the 'Standalone' attribute.
See Also:
isStandalone()
Generated from the meta-model

isThirdParty

boolean isThirdParty()
Returns the value of the 'Third Party' attribute.

If the meaning of the 'Third Party' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Third Party' attribute.
See Also:
setThirdParty(boolean), ModelPackage.getCodeBundle_ThirdParty()
Generated from the meta-model
Part of the meta-model

setThirdParty

void setThirdParty(boolean value)
Sets the value of the 'Third Party' attribute.

Parameters:
value - the new value of the 'Third Party' attribute.
See Also:
isThirdParty()
Generated from the meta-model

getDependencies

org.eclipse.emf.common.util.EList<CodeBundle> getDependencies()
Returns the value of the 'Dependencies' reference list. The list contents are of type CodeBundle.

If the meaning of the 'Dependencies' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Dependencies' reference list.
See Also:
ModelPackage.getCodeBundle_Dependencies()
Generated from the meta-model
Part of the meta-model

getJarManifest

java.util.jar.Manifest getJarManifest(DataStreamType dataStream)
                                      throws java.io.IOException
Get Manifest object for JAR file stored in this Codebundle.

Parameters:
dataStream - Chosen stream of CodeBundle, ORIGINAL or RENAMED
Returns:
The Manifest object
Throws:
java.io.IOException
Modified by hand

getDataOutputStream

java.io.OutputStream getDataOutputStream(DataStreamType dataStreamType)
                                         throws java.io.IOException
Opens data output stream into specified stream of CodeBundle.

Returns:
OutputStream into the CodeBundle
Throws:
java.io.IOException
Modified by hand

getDataInputStream

java.io.InputStream getDataInputStream(DataStreamType dataStreamType)
                                       throws java.io.IOException
Opens data input stream into specified stream of CodeBundle.

Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand

getDataInputStream

java.io.InputStream getDataInputStream(DataStreamType dataStream,
                                       java.lang.String jarEntryName)
                                       throws java.io.IOException
Opens data output stream into specified stream of CodeBundle and specified JAR entry only. Intended to be used by ClassLoader to load only specified Class from CodeBundle. Default value of recursive searching is implementation dependent.

Parameters:
dataStream - ORIGINAL or RENAMED
jarEntryName - Entry name to read
Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand

getDataInputStream

java.io.InputStream getDataInputStream(DataStreamType dataStream,
                                       java.lang.String jarEntryName,
                                       boolean recursiveSearching)
                                       throws java.io.IOException
Opens data output stream into specified stream of CodeBundle and specified JAR entry only. Intended to be used by ClassLoader to load only specified Class from CodeBundle.

Parameters:
dataStream - ORIGINAL or RENAMED
jarEntryName - Entry name to read
recursiveSearching - Recursively looks for class in dependent CodeBundles on the server
Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand