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.
|
toStringprivate final CharAttribute charAttribute
private final java.lang.String value
public AbstractCharAttributeValue(CharAttribute charAttribute, java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic char getChar()
CharAttributegetChar in interface CharAttributepublic java.lang.String getValue()
CharAttributeValueCharAttributegetValue in interface CharAttributeValuepublic java.lang.StringBuffer writeTo(java.lang.StringBuffer sb)
StringWritablewriteTo in interface StringWritablesb - Where to write the data.