|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.NoteListInstrumentLink
public class NoteListInstrumentLink
The NoteListInstrumentLink class defines an external reference from a ContainerOfInstrumentLinks
to a NoteListInstrument.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Constructor Summary | |
|---|---|
NoteListInstrumentLink(ContainerOfInstrumentLinks container,
int id)
Constructor for NoteListInstrumentLink instances. |
|
| Method Summary | |
|---|---|
NoteListParameterLink |
addParameterLink(NoteListParameter parameter)
Add a link to the indicated note-list parameter |
boolean |
check(HtmlBuilder builder)
Check this component for errors and inconsistencies |
static XmlSpec |
createXmlSpec()
Create an XML specification for the NoteListInstrumentLink class. |
static NoteListInstrumentLink |
fromXmlNode(org.w3c.dom.Element element,
ContainerOfInstrumentLinks container)
Create a new NoteListInstrumentLink instance and fill it with loaded data. |
static NoteListInstrument |
fromXmlNode(org.w3c.dom.Element element,
Ensemble ensemble)
Create a new NoteListInstrument instance and fill it with loaded data. |
ContainerOfInstrumentLinks |
getContainer()
Getter for the Container property. |
EnsembleInstrument |
getEnsembleInstrument()
Get the EnsembleInstrument which contains this NoteListInstrumentLink. |
NoteListInstrument |
getNoteListInstrument()
Get the NoteListInstrument referenced by this link. |
NoteListParameterLink |
getParameterLink(int id)
Get the NoteListParameterLink instance linking this NoteListInstrumentLink to the NoteListParameter with the indicated id. |
NoteListParameterLink |
getParameterLink(java.lang.String name)
Get the NoteListParameterLink instance linking this NoteListInstrumentLink to the NoteListParameter with the indicated name. |
java.util.SortedMap<java.lang.Integer,NoteListParameterLink> |
getParameterLinks()
Get the collection of NoteListParameterLink instances which detail
how to obtain parameter values when this ContainerOfInstrumentLinks generates
a note statement using the associated NoteListInstrument. |
java.lang.String |
getText()
Return a unique description of this entity. |
void |
removeParameter(NoteListParameter parameter)
Remove a link to the indicated note-list parameter |
void |
setNoteListInstrument(NoteListInstrument noteListInstrument)
Set the target of this NoteListInstrumentLink to the indicated NoteListInstrument. |
| 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 |
|---|
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, 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 |
|---|
public NoteListInstrumentLink(ContainerOfInstrumentLinks container,
int id)
NoteListInstrumentLink instances.
container - The container.id - The sequence number.| Method Detail |
|---|
public void setNoteListInstrument(NoteListInstrument noteListInstrument)
NoteListInstrumentLink to the indicated NoteListInstrument.
noteListInstrument - The indicated NoteListInstrument.public ContainerOfInstrumentLinks getContainer()
EntityContainer property.
getContainer in class EnsembleEntityContainer value.public EnsembleInstrument getEnsembleInstrument()
EnsembleInstrument which contains this NoteListInstrumentLink.
EnsembleInstrument which contains this NoteListInstrumentLink.public NoteListInstrument getNoteListInstrument()
NoteListInstrument referenced by this link.
NoteListInstrument referenced by this link.public java.util.SortedMap<java.lang.Integer,NoteListParameterLink> getParameterLinks()
NoteListParameterLink instances which detail
how to obtain parameter values when this ContainerOfInstrumentLinks generates
a note statement using the associated NoteListInstrument.
NoteListParameterLink instances.public NoteListParameterLink addParameterLink(NoteListParameter parameter)
parameter - The indicated parameter.
NoteListParameterLink instance.
java.lang.IllegalArgumentException - when the parameter belongs to the wrong note-list instrument.
ObjectAlreadyExistsException - when a link to the indicated parameter is already present.public NoteListParameterLink getParameterLink(int id)
NoteListParameterLink instance linking this NoteListInstrumentLink to the NoteListParameter with the indicated id.
id - The indicated id.
NoteListParameter instance.public NoteListParameterLink getParameterLink(java.lang.String name)
NoteListParameterLink instance linking this NoteListInstrumentLink to the NoteListParameter with the indicated name.
name - The indicated name.
NoteListParameter instance.public void removeParameter(NoteListParameter parameter)
parameter - The indicated parameter.
java.lang.IllegalArgumentException - when the parameter belongs to the wrong note-list instrument.
NoSuchObjectException - when no link to the indicated parameter is present.public boolean check(HtmlBuilder builder)
WriteableEntity
check in class WriteableEntitybuilder - Accumulates an HTML formatted record of each error or inconsistency found.
public java.lang.String getText()
Entity
getText in class Entity
public static NoteListInstrumentLink fromXmlNode(org.w3c.dom.Element element,
ContainerOfInstrumentLinks container)
NoteListInstrumentLink instance and fill it with loaded data.
element - The XML element that provides the NoteListInstrumentLink datacontainer - The ContainerOfInstrumentLinks which will contain the new NoteListInstrumentLink.
NoteListInstrumentLink instance.
public static NoteListInstrument fromXmlNode(org.w3c.dom.Element element,
Ensemble ensemble)
NoteListInstrument instance and fill it with loaded data.
element - The XML element that provides the NoteListInstrument dataensemble - The Ensemble which will contain the new NoteListInstrument.
NoteListInstrument instance.public static XmlSpec createXmlSpec()
NoteListInstrumentLink class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the NoteListInstrumentLink class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||