public class AbstractCharAttributeValue extends AbstractStringWritable implements CharAttributeValue
Modifier and Type | Field and Description |
---|---|
private CharAttribute |
charAttribute |
private java.lang.String |
value |
Constructor and Description |
---|
AbstractCharAttributeValue(CharAttribute charAttribute,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
char |
getChar()
Return the char used to represent this attribute
|
java.lang.String |
getValue()
Returns the value associated with the
CharAttribute |
java.lang.StringBuffer |
writeTo(java.lang.StringBuffer sb)
Write the class information to the given StringBuffer.
|
toString
private final CharAttribute charAttribute
private final java.lang.String value
public AbstractCharAttributeValue(CharAttribute charAttribute, java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public char getChar()
CharAttribute
getChar
in interface CharAttribute
public java.lang.String getValue()
CharAttributeValue
CharAttribute
getValue
in interface CharAttributeValue
public java.lang.StringBuffer writeTo(java.lang.StringBuffer sb)
StringWritable
writeTo
in interface StringWritable
sb
- Where to write the data.