java.lang.Object
provided.abcMusic.musicFW.Header
- All Implemented Interfaces:
IPhrase
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. ---------------------------------------------- A single Header class represents multiple, distinct header hosts.
Note that this class represents many different *types* of headers, each with its own id value. ---------------------------------------------- A single Header class represents multiple, distinct header hosts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_id
The ID of this header. The case corresponding to this ID is called on the visitors. -
_value
the text value of this header.
-
-
Constructor Details
-
Header
Create a header out of an id and value- Parameters:
id
- - one character corresponding to the abc header namevalue
- - arbitrary string value of the header
-
-
Method Details
-
execute
Calls the header id'th case of the visitor algo. -
getID
Accessor for the id.- Returns:
- the _id
-
getValue
Accessor for the text value of this header.- Returns:
- the _value
-
toString
String representation of this header: "id: text"
-