public class EsxFileImpl extends EObjectImpl implements EsxFile
The following features are implemented:
Original Non Audio Data
Global Parameters
Patterns
Songs
Samples
Empty Pattern
Empty Song
Max Sample Offset
Mem Used In Bytes
Mem Used In Seconds
Mem Free In Bytes
Mem Free In Seconds
Num Patterns Empty
Num Patterns Not Empty
Num Samples Empty
Num Samples Not Empty
Num Samples Mono Empty
Num Samples Mono Not Empty
Num Samples Stereo Empty
Num Samples Stereo Not Empty
Num Songs Empty
Num Songs Not Empty
Sync Patterns On Move Enabled
Sync Samples On Move Enabled
Modifier and Type | Field and Description |
---|---|
protected Pattern |
emptyPattern
The cached value of the '
Empty Pattern ' containment reference. |
protected Song |
emptySong
The cached value of the '
Empty Song ' containment reference. |
protected GlobalParameters |
globalParameters
The cached value of the '
Global Parameters ' containment reference. |
protected static int |
MAX_SAMPLE_OFFSET_EDEFAULT
The default value of the '
Max Sample Offset ' attribute. |
protected int |
maxSampleOffset
The cached value of the '
Max Sample Offset ' attribute. |
protected static int |
MEM_FREE_IN_BYTES_EDEFAULT
The default value of the '
Mem Free In Bytes ' attribute. |
protected static float |
MEM_FREE_IN_SECONDS_EDEFAULT
The default value of the '
Mem Free In Seconds ' attribute. |
protected static int |
MEM_USED_IN_BYTES_EDEFAULT
The default value of the '
Mem Used In Bytes ' attribute. |
protected static float |
MEM_USED_IN_SECONDS_EDEFAULT
The default value of the '
Mem Used In Seconds ' attribute. |
protected static int |
NUM_PATTERNS_EMPTY_EDEFAULT
The default value of the '
Num Patterns Empty ' attribute. |
protected static int |
NUM_PATTERNS_NOT_EMPTY_EDEFAULT
The default value of the '
Num Patterns Not Empty ' attribute. |
protected static int |
NUM_SAMPLES_EMPTY_EDEFAULT
The default value of the '
Num Samples Empty ' attribute. |
protected static int |
NUM_SAMPLES_MONO_EMPTY_EDEFAULT
The default value of the '
Num Samples Mono Empty ' attribute. |
protected static int |
NUM_SAMPLES_MONO_NOT_EMPTY_EDEFAULT
The default value of the '
Num Samples Mono Not Empty ' attribute. |
protected static int |
NUM_SAMPLES_NOT_EMPTY_EDEFAULT
The default value of the '
Num Samples Not Empty ' attribute. |
protected static int |
NUM_SAMPLES_STEREO_EMPTY_EDEFAULT
The default value of the '
Num Samples Stereo Empty ' attribute. |
protected static int |
NUM_SAMPLES_STEREO_NOT_EMPTY_EDEFAULT
The default value of the '
Num Samples Stereo Not Empty ' attribute. |
protected static int |
NUM_SONGS_EMPTY_EDEFAULT
The default value of the '
Num Songs Empty ' attribute. |
protected static int |
NUM_SONGS_NOT_EMPTY_EDEFAULT
The default value of the '
Num Songs Not Empty ' attribute. |
protected static byte[] |
ORIGINAL_NON_AUDIO_DATA_EDEFAULT
The default value of the '
Original Non Audio Data ' attribute. |
protected byte[] |
originalNonAudioData
The cached value of the '
Original Non Audio Data ' attribute. |
protected |
patterns
The cached value of the '
Patterns ' containment reference list. |
protected |
samples
The cached value of the '
Samples ' containment reference list. |
protected |
songs
The cached value of the '
Songs ' containment reference list. |
protected static boolean |
SYNC_PATTERNS_ON_MOVE_ENABLED_EDEFAULT
The default value of the '
Sync Patterns On Move Enabled ' attribute. |
protected static boolean |
SYNC_SAMPLES_ON_MOVE_ENABLED_EDEFAULT
The default value of the '
Sync Samples On Move Enabled ' attribute. |
protected boolean |
syncPatternsOnMoveEnabled
The cached value of the '
Sync Patterns On Move Enabled ' attribute. |
protected boolean |
syncSamplesOnMoveEnabled
The cached value of the '
Sync Samples On Move Enabled ' attribute. |
Modifier | Constructor and Description |
---|---|
protected |
EsxFileImpl() |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
basicSetEmptyPattern(Pattern newEmptyPattern,
NotificationChain msgs) |
NotificationChain |
basicSetEmptySong(Song newEmptySong,
NotificationChain msgs) |
NotificationChain |
basicSetGlobalParameters(GlobalParameters newGlobalParameters,
NotificationChain msgs) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
Pattern |
getEmptyPattern() |
Song |
getEmptySong() |
GlobalParameters |
getGlobalParameters() |
int |
getMaxSampleOffset() |
int |
getMemFreeInBytes() |
float |
getMemFreeInSeconds() |
int |
getMemUsedInBytes() |
float |
getMemUsedInSeconds() |
int |
getNumPatternsEmpty() |
int |
getNumPatternsNotEmpty() |
int |
getNumSamplesEmpty() |
int |
getNumSamplesMonoEmpty() |
int |
getNumSamplesMonoNotEmpty() |
int |
getNumSamplesNotEmpty() |
int |
getNumSamplesStereoEmpty() |
int |
getNumSamplesStereoNotEmpty() |
int |
getNumSongsEmpty() |
int |
getNumSongsNotEmpty() |
byte[] |
getOriginalNonAudioData() |
Pattern |
getPatternFromPointer(int patternPointer)
Will return null if patternPointer is invalid or out of bounds
|
|
getPatterns() |
Sample |
getSampleFromPointer(int samplePointer)
Will return null if samplePointer is invalid or out of bounds
|
|
getSamples() |
|
getSongs() |
void |
init(byte[] b) |
void |
init(byte[] b,
IProgressMonitor monitor) |
boolean |
isSyncPatternsOnMoveEnabled() |
boolean |
isSyncSamplesOnMoveEnabled() |
void |
setAllOffsets() |
void |
setEmptyPattern(Pattern newEmptyPattern) |
void |
setEmptySong(Song newEmptySong) |
void |
setGlobalParameters(GlobalParameters newGlobalParameters) |
void |
setMaxSampleOffset(int newMaxSampleOffset) |
void |
setOriginalNonAudioData(byte[] newOriginalNonAudioData) |
void |
setSyncPatternsOnMoveEnabled(boolean newSyncPatternsOnMoveEnabled) |
void |
setSyncSamplesOnMoveEnabled(boolean newSyncSamplesOnMoveEnabled) |
byte[] |
toByteArray() |
byte[] |
toByteArray(IProgressMonitor monitor) |
java.lang.String |
toString() |
boolean |
validMemFreeInBytes(DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected static final byte[] ORIGINAL_NON_AUDIO_DATA_EDEFAULT
Original Non Audio Data
' attribute.
getOriginalNonAudioData()
protected byte[] originalNonAudioData
Original Non Audio Data
' attribute.
getOriginalNonAudioData()
protected GlobalParameters globalParameters
Global Parameters
' containment reference.
getGlobalParameters()
protectedpatterns
Patterns
' containment reference list.
getPatterns()
protectedsongs
Songs
' containment reference list.
getSongs()
protectedsamples
Samples
' containment reference list.
getSamples()
protected Pattern emptyPattern
Empty Pattern
' containment reference.
getEmptyPattern()
protected Song emptySong
Empty Song
' containment reference.
getEmptySong()
protected static final int MAX_SAMPLE_OFFSET_EDEFAULT
Max Sample Offset
' attribute.
getMaxSampleOffset()
,
Constant Field Valuesprotected int maxSampleOffset
Max Sample Offset
' attribute.
getMaxSampleOffset()
protected static final int MEM_USED_IN_BYTES_EDEFAULT
Mem Used In Bytes
' attribute.
getMemUsedInBytes()
,
Constant Field Valuesprotected static final float MEM_USED_IN_SECONDS_EDEFAULT
Mem Used In Seconds
' attribute.
getMemUsedInSeconds()
,
Constant Field Valuesprotected static final int MEM_FREE_IN_BYTES_EDEFAULT
Mem Free In Bytes
' attribute.
getMemFreeInBytes()
,
Constant Field Valuesprotected static final float MEM_FREE_IN_SECONDS_EDEFAULT
Mem Free In Seconds
' attribute.
getMemFreeInSeconds()
,
Constant Field Valuesprotected static final int NUM_PATTERNS_EMPTY_EDEFAULT
Num Patterns Empty
' attribute.
getNumPatternsEmpty()
,
Constant Field Valuesprotected static final int NUM_PATTERNS_NOT_EMPTY_EDEFAULT
Num Patterns Not Empty
' attribute.
protected static final int NUM_SAMPLES_EMPTY_EDEFAULT
Num Samples Empty
' attribute.
getNumSamplesEmpty()
,
Constant Field Valuesprotected static final int NUM_SAMPLES_NOT_EMPTY_EDEFAULT
Num Samples Not Empty
' attribute.
getNumSamplesNotEmpty()
,
Constant Field Valuesprotected static final int NUM_SAMPLES_MONO_EMPTY_EDEFAULT
Num Samples Mono Empty
' attribute.
protected static final int NUM_SAMPLES_MONO_NOT_EMPTY_EDEFAULT
Num Samples Mono Not Empty
' attribute.
protected static final int NUM_SAMPLES_STEREO_EMPTY_EDEFAULT
Num Samples Stereo Empty
' attribute.
protected static final int NUM_SAMPLES_STEREO_NOT_EMPTY_EDEFAULT
Num Samples Stereo Not Empty
' attribute.
protected static final int NUM_SONGS_EMPTY_EDEFAULT
Num Songs Empty
' attribute.
getNumSongsEmpty()
,
Constant Field Valuesprotected static final int NUM_SONGS_NOT_EMPTY_EDEFAULT
Num Songs Not Empty
' attribute.
getNumSongsNotEmpty()
,
Constant Field Valuesprotected static final boolean SYNC_PATTERNS_ON_MOVE_ENABLED_EDEFAULT
Sync Patterns On Move Enabled
' attribute.
protected boolean syncPatternsOnMoveEnabled
Sync Patterns On Move Enabled
' attribute.
isSyncPatternsOnMoveEnabled()
protected static final boolean SYNC_SAMPLES_ON_MOVE_ENABLED_EDEFAULT
Sync Samples On Move Enabled
' attribute.
protected boolean syncSamplesOnMoveEnabled
Sync Samples On Move Enabled
' attribute.
isSyncSamplesOnMoveEnabled()
protected EClass eStaticClass()
public byte[] getOriginalNonAudioData()
getOriginalNonAudioData
in interface EsxFile
EsxFile.setOriginalNonAudioData(byte[])
,
EsxPackage.getEsxFile_OriginalNonAudioData()
public void setOriginalNonAudioData(byte[] newOriginalNonAudioData)
setOriginalNonAudioData
in interface EsxFile
newOriginalNonAudioData
- the new value of the 'Original Non Audio Data' attribute.EsxFile.getOriginalNonAudioData()
public GlobalParameters getGlobalParameters()
getGlobalParameters
in interface EsxFile
EsxFile.setGlobalParameters(GlobalParameters)
,
EsxPackage.getEsxFile_GlobalParameters()
public NotificationChain basicSetGlobalParameters(GlobalParameters newGlobalParameters, NotificationChain msgs)
public void setGlobalParameters(GlobalParameters newGlobalParameters)
setGlobalParameters
in interface EsxFile
newGlobalParameters
- the new value of the 'Global Parameters' containment reference.EsxFile.getGlobalParameters()
publicgetPatterns()
getPatterns
in interface EsxFile
EsxPackage.getEsxFile_Patterns()
publicgetSongs()
getSongs
in interface EsxFile
EsxPackage.getEsxFile_Songs()
publicgetSamples()
getSamples
in interface EsxFile
EsxPackage.getEsxFile_Samples()
public Pattern getEmptyPattern()
getEmptyPattern
in interface EsxFile
EsxFile.setEmptyPattern(Pattern)
,
EsxPackage.getEsxFile_EmptyPattern()
public NotificationChain basicSetEmptyPattern(Pattern newEmptyPattern, NotificationChain msgs)
public void setEmptyPattern(Pattern newEmptyPattern)
setEmptyPattern
in interface EsxFile
newEmptyPattern
- the new value of the 'Empty Pattern' containment reference.EsxFile.getEmptyPattern()
public Song getEmptySong()
getEmptySong
in interface EsxFile
EsxFile.setEmptySong(Song)
,
EsxPackage.getEsxFile_EmptySong()
public NotificationChain basicSetEmptySong(Song newEmptySong, NotificationChain msgs)
public void setEmptySong(Song newEmptySong)
setEmptySong
in interface EsxFile
newEmptySong
- the new value of the 'Empty Song' containment reference.EsxFile.getEmptySong()
public int getMaxSampleOffset()
getMaxSampleOffset
in interface EsxFile
EsxFile.setMaxSampleOffset(int)
,
EsxPackage.getEsxFile_MaxSampleOffset()
public void setMaxSampleOffset(int newMaxSampleOffset)
setMaxSampleOffset
in interface EsxFile
newMaxSampleOffset
- the new value of the 'Max Sample Offset' attribute.EsxFile.getMaxSampleOffset()
public int getMemUsedInBytes()
getMemUsedInBytes
in interface EsxFile
EsxPackage.getEsxFile_MemUsedInBytes()
public float getMemUsedInSeconds()
getMemUsedInSeconds
in interface EsxFile
EsxPackage.getEsxFile_MemUsedInSeconds()
public int getMemFreeInBytes()
getMemFreeInBytes
in interface EsxFile
EsxPackage.getEsxFile_MemFreeInBytes()
public float getMemFreeInSeconds()
getMemFreeInSeconds
in interface EsxFile
EsxPackage.getEsxFile_MemFreeInSeconds()
public int getNumPatternsEmpty()
getNumPatternsEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumPatternsEmpty()
public int getNumPatternsNotEmpty()
getNumPatternsNotEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumPatternsNotEmpty()
public int getNumSamplesEmpty()
getNumSamplesEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesEmpty()
public int getNumSamplesNotEmpty()
getNumSamplesNotEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesNotEmpty()
public int getNumSamplesMonoEmpty()
getNumSamplesMonoEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesMonoEmpty()
public int getNumSamplesMonoNotEmpty()
getNumSamplesMonoNotEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesMonoNotEmpty()
public int getNumSamplesStereoEmpty()
getNumSamplesStereoEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesStereoEmpty()
public int getNumSamplesStereoNotEmpty()
getNumSamplesStereoNotEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSamplesStereoNotEmpty()
public int getNumSongsEmpty()
getNumSongsEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSongsEmpty()
public int getNumSongsNotEmpty()
getNumSongsNotEmpty
in interface EsxFile
EsxPackage.getEsxFile_NumSongsNotEmpty()
public boolean isSyncPatternsOnMoveEnabled()
isSyncPatternsOnMoveEnabled
in interface EsxFile
EsxFile.setSyncPatternsOnMoveEnabled(boolean)
,
EsxPackage.getEsxFile_SyncPatternsOnMoveEnabled()
public void setSyncPatternsOnMoveEnabled(boolean newSyncPatternsOnMoveEnabled)
setSyncPatternsOnMoveEnabled
in interface EsxFile
newSyncPatternsOnMoveEnabled
- the new value of the 'Sync Patterns On Move Enabled' attribute.EsxFile.isSyncPatternsOnMoveEnabled()
public boolean isSyncSamplesOnMoveEnabled()
isSyncSamplesOnMoveEnabled
in interface EsxFile
EsxFile.setSyncSamplesOnMoveEnabled(boolean)
,
EsxPackage.getEsxFile_SyncSamplesOnMoveEnabled()
public void setSyncSamplesOnMoveEnabled(boolean newSyncSamplesOnMoveEnabled)
setSyncSamplesOnMoveEnabled
in interface EsxFile
newSyncSamplesOnMoveEnabled
- the new value of the 'Sync Samples On Move Enabled' attribute.EsxFile.isSyncSamplesOnMoveEnabled()
public Pattern getPatternFromPointer(int patternPointer)
getPatternFromPointer
in interface EsxFile
public Sample getSampleFromPointer(int samplePointer)
getSampleFromPointer
in interface EsxFile
public void setAllOffsets()
setAllOffsets
in interface EsxFile
public byte[] toByteArray()
toByteArray
in interface EsxFile
public byte[] toByteArray(IProgressMonitor monitor)
toByteArray
in interface EsxFile
public boolean validMemFreeInBytes(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validMemFreeInBytes
in interface EsxFile
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
public void eSet(int featureID, java.lang.Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public java.lang.String toString()