net.charlesames.music.ensemble
Class EnsembleInstrumentMidiData

java.lang.Object
  extended by net.charlesames.utility.common.Disposable
      extended by net.charlesames.utility.entity.Entity
          extended by net.charlesames.utility.entity.WriteableEntity
              extended by net.charlesames.music.ensemble.EnsembleEntity
                  extended by net.charlesames.music.ensemble.EnsembleInstrumentMidiData
All Implemented Interfaces:
EntityContainer

public class EnsembleInstrumentMidiData
extends EnsembleEntity

XML I/O stuff for EnsembleInstrument data that is pertinent to Music-N note lists.

Author:
Charles Ames

Nested Class Summary
 
Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity
EnsembleEntity.AttributeTable
 
Constructor Summary
EnsembleInstrumentMidiData(EnsembleInstrument container)
          Constructor for EnsembleInstrumentMidiData instances.
 
Method Summary
static XmlSpec createXmlSpec()
          Create an XML specification for the EnsembleInstrumentMidiData class.
 EnsembleInstrument getContainer()
          Getter for the Container property.
 boolean hasData()
          Check if the instrument has MIDI data.
 
Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, equals, getEnsemble, logError, predecessor, toString
 
Methods inherited from class net.charlesames.utility.entity.WriteableEntity
check, clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setID, setName, setPersistent, setStatus, toXmlNode
 
Methods inherited from class net.charlesames.utility.entity.Entity
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getPath, getReferenceCount, getStatus, getText, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor, wipe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnsembleInstrumentMidiData

public EnsembleInstrumentMidiData(EnsembleInstrument container)
Constructor for EnsembleInstrumentMidiData instances.

Parameters:
container - The EnsembleInstrument that holds this instance.
Method Detail

getContainer

public EnsembleInstrument getContainer()
Description copied from class: Entity
Getter for the Container property.

Overrides:
getContainer in class EnsembleEntity
Returns:
The assigned Container value.

hasData

public boolean hasData()
Check if the instrument has MIDI data.

Returns:
True if the instrument has MIDI data; false otherwise.

createXmlSpec

public static XmlSpec createXmlSpec()
Create an XML specification for the EnsembleInstrumentMidiData class.

Returns:
The newly created XmlSpec instance.
Throws:
java.lang.RuntimeException - when an XmlSpec instance already exists for the EnsembleInstrumentMidiData class.