Top Description Fields Constructors Methods
com.ongres.scram.common.util

public Class AbstractCharAttributeValue

extends AbstractStringWritable
implements CharAttributeValue
Class Inheritance
All Implemented Interfaces
com.ongres.scram.common.util.CharAttributeValue, com.ongres.scram.common.util.StringWritable, com.ongres.scram.common.util.CharAttribute
Known Direct Subclasses
com.ongres.scram.common.ScramAttributeValue, com.ongres.scram.common.gssapi.Gs2AttributeValue
Static Imports
com.ongres.scram.common.util.Preconditions.checkNotNull

Construct and write generic CharAttribute-Value pairs. Concrete sub-classes should also provide a static parse(String) creation method.

Field Summary

Modifier and TypeField and Description
private final CharAttribute
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public char
getChar()

Implements com.ongres.scram.common.util.CharAttribute.getChar.

Return the char used to represent this attribute
public String
getValue()

Implements com.ongres.scram.common.util.CharAttributeValue.getValue.

Returns the value associated with the CharAttribute
public StringBuffer
writeTo(StringBuffer
Where to write the data.
sb
)

Implements com.ongres.scram.common.util.StringWritable.writeTo.

Write the class information to the given StringBuffer.
Inherited from com.ongres.scram.common.util.AbstractStringWritable:
toString

Field Detail

charAttributeback to summary
private final CharAttribute charAttribute
valueback to summary
private final String value

Constructor Detail

AbstractCharAttributeValueback to summary
public AbstractCharAttributeValue(CharAttribute charAttribute, String value) throws IllegalArgumentException

Method Detail

getCharback to summary
public char getChar()

Implements com.ongres.scram.common.util.CharAttribute.getChar.

Doc from com.ongres.scram.common.util.CharAttribute.getChar.

Return the char used to represent this attribute

Returns:char

The character of the attribute

Annotations
@Override
getValueback to summary
public String getValue()

Implements com.ongres.scram.common.util.CharAttributeValue.getValue.

Doc from com.ongres.scram.common.util.CharAttributeValue.getValue.

Returns the value associated with the CharAttribute

Returns:String

The String value or null if no value is associated

Annotations
@Override
writeToback to summary
public StringBuffer writeTo(StringBuffer sb)

Implements com.ongres.scram.common.util.StringWritable.writeTo.

Doc from com.ongres.scram.common.util.StringWritable.writeTo.

Write the class information to the given StringBuffer.

Parameters
sb:StringBuffer

Where to write the data.

Returns:StringBuffer

The same StringBuffer.

Annotations
@Override