Package org.opends.server.api
Interface ProtocolElement
-
- All Known Implementing Classes:
Entry,LDAPMessage,SearchResultEntry
@PublicAPI(stability=VOLATILE, mayExtend=true, mayInvoke=true) public interface ProtocolElement
This interface defines a set of methods that must be implemented by any class that forms the basis for a protocol element (e.g., an ASN.1 element, an LDAP message, etc.).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetProtocolElementName()Retrieves the name of the protocol associated with this protocol element.voidtoString(StringBuilder buffer)Appends a string representation of this protocol element to the provided buffer.voidtoString(StringBuilder buffer, int indent)Appends a string representation of this protocol element to the provided buffer.
-
-
-
Method Detail
-
getProtocolElementName
String getProtocolElementName()
Retrieves the name of the protocol associated with this protocol element.- Returns:
- The name of the protocol associated with this protocol element.
-
toString
void toString(StringBuilder buffer)
Appends a string representation of this protocol element to the provided buffer.- Parameters:
buffer- The buffer into which the string representation should be written.
-
toString
void toString(StringBuilder buffer, int indent)
Appends a string representation of this protocol element to the provided buffer.- Parameters:
buffer- The buffer into which the string representation should be written.indent- The number of spaces that should be used to indent the resulting string representation.
-
-