|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprovided.music.Header
public class Header
An abc Header. Headers are identified by a one character "id" and
can have an arbitrary string value.
Note that this class represents many different *types* of headers,
each with its own id value.
| Field Summary | |
|---|---|
private java.lang.String |
_id
The id of this header. |
private java.lang.String |
_value
the text value of this header. |
| Constructor Summary | |
|---|---|
Header(java.lang.String id,
java.lang.String value)
Create a header out of an id and value |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Calls the header id'th case of the visitor algo. |
java.lang.String |
getID()
Accessor for the id. |
java.lang.String |
getValue()
Accessor for the text value of this header. |
java.lang.String |
toString()
String representation of this header: "id: text" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String _id
private java.lang.String _value
| Constructor Detail |
|---|
public Header(java.lang.String id,
java.lang.String value)
id - - one character corresponding to the abc header namevalue - - arbitrary string value of the header| Method Detail |
|---|
public java.lang.Object execute(IPhraseVisitor algo,
java.lang.Object... params)
execute in interface IPhrasealgo - The visitor that is being used.params - vararg list of input parameters that the algo might use.
public java.lang.String getID()
public java.lang.String getValue()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||