org.objectweb.dsrg.sofa.repository.model.impl
Class CodeBundleImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.objectweb.dsrg.sofa.repository.model.impl.NamedEntityImpl
                      extended by org.objectweb.dsrg.sofa.repository.model.impl.VersionedEntityImpl
                          extended by org.objectweb.dsrg.sofa.repository.model.impl.CodeBundleImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject, CodeBundle, NamedEntity, VersionedEntity

public class CodeBundleImpl
extends VersionedEntityImpl
implements CodeBundle

An implementation of the model object 'Code Bundle'.

The following features are implemented:

Generated from the meta-model

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList<CodeBundle> dependencies
          The cached value of the 'Dependencies' reference list
protected  boolean standalone
          The cached value of the 'Standalone' attribute
protected static boolean STANDALONE_EDEFAULT
          The default value of the 'Standalone' attribute
protected static boolean THIRD_PARTY_EDEFAULT
          The default value of the 'Third Party' attribute
protected  boolean thirdParty
          The cached value of the 'Third Party' attribute
 
Fields inherited from class org.objectweb.dsrg.sofa.repository.model.impl.VersionedEntityImpl
info, locked, LOCKED_EDEFAULT, version
 
Fields inherited from class org.objectweb.dsrg.sofa.repository.model.impl.NamedEntityImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected CodeBundleImpl()
           
 
Method Summary
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.io.InputStream getDataInputStream(DataStreamType dataStreamType)
          Opens data input stream into specified stream of CodeBundle.
 java.io.InputStream getDataInputStream(DataStreamType dataStreamType, java.lang.String jarEntryName)
          Opens data output stream into specified stream of CodeBundle and specified JAR entry only.
 java.io.InputStream getDataInputStream(DataStreamType dataStreamType, java.lang.String jarEntryName, boolean recursiveSearch)
          Opens data output stream into specified stream of CodeBundle and specified JAR entry only.
 java.io.OutputStream getDataOutputStream(DataStreamType dataStream)
          Opens data output stream into specified stream of CodeBundle.
 org.eclipse.emf.common.util.EList<CodeBundle> getDependencies()
           
 java.util.jar.Manifest getJarManifest(DataStreamType dataStream)
          Get Manifest object for JAR file stored in this Codebundle.
 boolean isStandalone()
           
 boolean isThirdParty()
           
 void setStandalone(boolean newStandalone)
           
 void setThirdParty(boolean newThirdParty)
           
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.dsrg.sofa.repository.model.impl.VersionedEntityImpl
addInfo, addTag, basicGetVersion, basicSetVersion, eInverseAdd, eInverseRemove, getInfo, getVersion, isLocked, removeTag, setLocked, setVersion
 
Methods inherited from class org.objectweb.dsrg.sofa.repository.model.impl.NamedEntityImpl
getName, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eBasicHasAdapters, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

STANDALONE_EDEFAULT

protected static final boolean STANDALONE_EDEFAULT
The default value of the 'Standalone' attribute.

See Also:
isStandalone(), Constant Field Values
Generated from the meta-model
Ordered (meta-model)

standalone

protected boolean standalone
The cached value of the 'Standalone' attribute.

See Also:
isStandalone()
Generated from the meta-model
Ordered (meta-model)

THIRD_PARTY_EDEFAULT

protected static final boolean THIRD_PARTY_EDEFAULT
The default value of the 'Third Party' attribute.

See Also:
isThirdParty(), Constant Field Values
Generated from the meta-model
Ordered (meta-model)

thirdParty

protected boolean thirdParty
The cached value of the 'Third Party' attribute.

See Also:
isThirdParty()
Generated from the meta-model
Ordered (meta-model)

dependencies

protected org.eclipse.emf.common.util.EList<CodeBundle> dependencies
The cached value of the 'Dependencies' reference list.

See Also:
getDependencies()
Generated from the meta-model
Ordered (meta-model)
Constructor Detail

CodeBundleImpl

protected CodeBundleImpl()

Generated from the meta-model
Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class VersionedEntityImpl
Generated from the meta-model

isStandalone

public boolean isStandalone()

Specified by:
isStandalone in interface CodeBundle
Returns:
the value of the 'Standalone' attribute.
See Also:
CodeBundle.setStandalone(boolean), ModelPackage.getCodeBundle_Standalone()
Generated from the meta-model

setStandalone

public void setStandalone(boolean newStandalone)

Specified by:
setStandalone in interface CodeBundle
Parameters:
newStandalone - the new value of the 'Standalone' attribute.
See Also:
CodeBundle.isStandalone()
Generated from the meta-model

isThirdParty

public boolean isThirdParty()

Specified by:
isThirdParty in interface CodeBundle
Returns:
the value of the 'Third Party' attribute.
See Also:
CodeBundle.setThirdParty(boolean), ModelPackage.getCodeBundle_ThirdParty()
Generated from the meta-model

setThirdParty

public void setThirdParty(boolean newThirdParty)

Specified by:
setThirdParty in interface CodeBundle
Parameters:
newThirdParty - the new value of the 'Third Party' attribute.
See Also:
CodeBundle.isThirdParty()
Generated from the meta-model

getDependencies

public org.eclipse.emf.common.util.EList<CodeBundle> getDependencies()

Specified by:
getDependencies in interface CodeBundle
Returns:
the value of the 'Dependencies' reference list.
See Also:
ModelPackage.getCodeBundle_Dependencies()
Generated from the meta-model

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class VersionedEntityImpl
Generated from the meta-model

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class VersionedEntityImpl
Generated from the meta-model

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class VersionedEntityImpl
Generated from the meta-model

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class VersionedEntityImpl
Generated from the meta-model

toString

public java.lang.String toString()

Overrides:
toString in class VersionedEntityImpl
Generated from the meta-model

getDataOutputStream

public java.io.OutputStream getDataOutputStream(DataStreamType dataStream)
                                         throws java.io.IOException
Description copied from interface: CodeBundle
Opens data output stream into specified stream of CodeBundle.

Specified by:
getDataOutputStream in interface CodeBundle
Parameters:
dataStream -
Returns:
OutputStream into the CodeBundle
Throws:
java.io.IOException
Modified by hand

getJarManifest

public java.util.jar.Manifest getJarManifest(DataStreamType dataStream)
                                      throws java.io.IOException
Description copied from interface: CodeBundle
Get Manifest object for JAR file stored in this Codebundle.

Specified by:
getJarManifest in interface CodeBundle
Parameters:
dataStream -
Returns:
The Manifest object
Throws:
java.io.IOException
Modified by hand

getDataInputStream

public java.io.InputStream getDataInputStream(DataStreamType dataStreamType)
                                       throws java.io.IOException
Description copied from interface: CodeBundle
Opens data input stream into specified stream of CodeBundle.

Specified by:
getDataInputStream in interface CodeBundle
Parameters:
dataStreamType -
Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand

getDataInputStream

public java.io.InputStream getDataInputStream(DataStreamType dataStreamType,
                                              java.lang.String jarEntryName)
                                       throws java.io.IOException
Description copied from interface: CodeBundle
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.

Specified by:
getDataInputStream in interface CodeBundle
Parameters:
dataStreamType -
jarEntryName -
Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand

getDataInputStream

public java.io.InputStream getDataInputStream(DataStreamType dataStreamType,
                                              java.lang.String jarEntryName,
                                              boolean recursiveSearch)
                                       throws java.io.IOException
Description copied from interface: CodeBundle
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.

Specified by:
getDataInputStream in interface CodeBundle
Parameters:
dataStreamType -
jarEntryName -
recursiveSearch -
Returns:
InputStream from the CodeBundle
Throws:
java.io.IOException
Modified by hand