Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_id
The id of this header.
|
private java.lang.String |
_value
the text value of this header.
|
Constructor and Description |
---|
Header(java.lang.String id,
java.lang.String value)
Create a header out of an id and value
|
Modifier and Type | Method and Description |
---|---|
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"
|
private java.lang.String _id
private java.lang.String _value
public Header(java.lang.String id, java.lang.String value)
id
- - one character corresponding to the abc header namevalue
- - arbitrary string value of the headerpublic java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
public java.lang.String getID()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object