EncodedType
- the type of object created by encoding the attributepublic interface AttributeEncoder<EncodedType>
BaseAttribute
s into protocol specific representations.
Encoders may have contain a category that can be used to distingush encoder types from
each other. This inteded to be used to look up an encoder that can be used to encode
attributes in accordance with a defined specification or tranmission protcol.
Encoders MUST be thread-safe and stateless.修飾子とタイプ | メソッドと説明 |
---|---|
EncodedType |
encode(BaseAttribute attribute)
Enocdes the attribute into a protocol specific representations.
|
String |
getAttributeName()
Get the name of the attribute.
|
void |
setAttributeName(String attributeName)
Sets the name of the attribute.
|
String getAttributeName()
void setAttributeName(String attributeName)
attributeName
- name of the attributeEncodedType encode(BaseAttribute attribute) throws AttributeEncodingException
attribute
- the attribute to encodeAttributeEncodingException
- if unable to successfully encode attributeCopyright © 2012. All Rights Reserved.