org.eclipse.mofscript.fileresourcemodel.frm.impl
Class FileResourceImpl

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.EObjectImpl
              extended by org.eclipse.mofscript.fileresourcemodel.frm.impl.FileResourceImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, FileResource

public class FileResourceImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements FileResource

An implementation of the model object 'File Resource'.

The following features are implemented:


Nested Class Summary
 
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>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  byte[] content
          The cached value of the 'Content' attribute
protected static byte[] CONTENT_EDEFAULT
          The default value of the 'Content' attribute
protected  java.lang.String extension
          The cached value of the 'Extension' attribute
protected static java.lang.String EXTENSION_EDEFAULT
          The default value of the 'Extension' attribute
protected static java.lang.String MIME_TYPE_EDEFAULT
          The default value of the 'Mime Type' attribute
protected  java.lang.String mimeType
          The cached value of the 'Mime Type' attribute
protected  java.lang.String name
          The cached value of the 'Name' attribute
protected static java.lang.String NAME_EDEFAULT
          The default value of the 'Name' attribute
protected static java.lang.String RELATIVE_PATH_EDEFAULT
          The default value of the 'Relative Path' attribute
protected  java.lang.String relativePath
          The cached value of the 'Relative Path' attribute
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
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.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected FileResourceImpl()
           
 
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)
           
 byte[] getContent()
           
 java.lang.String getExtension()
           
 java.lang.String getMimeType()
           
 java.lang.String getName()
           
 java.lang.String getRelativePath()
           
 void setContent(byte[] newContent)
           
 void setExtension(java.lang.String newExtension)
           
 void setMimeType(java.lang.String newMimeType)
           
 void setName(java.lang.String newName)
           
 void setRelativePath(java.lang.String newRelativePath)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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

NAME_EDEFAULT

protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()

name

protected java.lang.String name
The cached value of the 'Name' attribute.

See Also:
getName()

EXTENSION_EDEFAULT

protected static final java.lang.String EXTENSION_EDEFAULT
The default value of the 'Extension' attribute.

See Also:
getExtension()

extension

protected java.lang.String extension
The cached value of the 'Extension' attribute.

See Also:
getExtension()

RELATIVE_PATH_EDEFAULT

protected static final java.lang.String RELATIVE_PATH_EDEFAULT
The default value of the 'Relative Path' attribute.

See Also:
getRelativePath()

relativePath

protected java.lang.String relativePath
The cached value of the 'Relative Path' attribute.

See Also:
getRelativePath()

MIME_TYPE_EDEFAULT

protected static final java.lang.String MIME_TYPE_EDEFAULT
The default value of the 'Mime Type' attribute.

See Also:
getMimeType()

mimeType

protected java.lang.String mimeType
The cached value of the 'Mime Type' attribute.

See Also:
getMimeType()

CONTENT_EDEFAULT

protected static final byte[] CONTENT_EDEFAULT
The default value of the 'Content' attribute.

See Also:
getContent()

content

protected byte[] content
The cached value of the 'Content' attribute.

See Also:
getContent()
Constructor Detail

FileResourceImpl

protected FileResourceImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl

getName

public java.lang.String getName()

Specified by:
getName in interface FileResource
Returns:
the value of the 'Name' attribute.
See Also:
FileResource.setName(String), FrmPackage.getFileResource_Name()

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface FileResource
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
FileResource.getName()

getExtension

public java.lang.String getExtension()

Specified by:
getExtension in interface FileResource
Returns:
the value of the 'Extension' attribute.
See Also:
FileResource.setExtension(String), FrmPackage.getFileResource_Extension()

setExtension

public void setExtension(java.lang.String newExtension)

Specified by:
setExtension in interface FileResource
Parameters:
newExtension - the new value of the 'Extension' attribute.
See Also:
FileResource.getExtension()

getRelativePath

public java.lang.String getRelativePath()

Specified by:
getRelativePath in interface FileResource
Returns:
the value of the 'Relative Path' attribute.
See Also:
FileResource.setRelativePath(String), FrmPackage.getFileResource_RelativePath()

setRelativePath

public void setRelativePath(java.lang.String newRelativePath)

Specified by:
setRelativePath in interface FileResource
Parameters:
newRelativePath - the new value of the 'Relative Path' attribute.
See Also:
FileResource.getRelativePath()

getMimeType

public java.lang.String getMimeType()

Specified by:
getMimeType in interface FileResource
Returns:
the value of the 'Mime Type' attribute.
See Also:
FileResource.setMimeType(String), FrmPackage.getFileResource_MimeType()

setMimeType

public void setMimeType(java.lang.String newMimeType)

Specified by:
setMimeType in interface FileResource
Parameters:
newMimeType - the new value of the 'Mime Type' attribute.
See Also:
FileResource.getMimeType()

getContent

public byte[] getContent()

Specified by:
getContent in interface FileResource
Returns:
the value of the 'Content' attribute.
See Also:
FileResource.setContent(byte[]), FrmPackage.getFileResource_Content()

setContent

public void setContent(byte[] newContent)

Specified by:
setContent in interface FileResource
Parameters:
newContent - the new value of the 'Content' attribute.
See Also:
FileResource.getContent()

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

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

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl