@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LogField extends java.lang.Object implements java.io.Serializable
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
LogField(java.lang.String fieldName,
LogFieldSyntax<?> expectedSyntax)
Creates a log field with whe provided information.
|
LogField(java.lang.String fieldName,
java.lang.String constantName,
LogFieldSyntax<?> expectedSyntax)
Creates a log field with whe provided information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstantName()
Retrieves the name of the constant in which this log field is defined.
|
LogFieldSyntax<?> |
getExpectedSyntax()
Retrieves the expected syntax for this field.
|
java.lang.String |
getFieldName()
Retrieves the name for this field.
|
java.lang.String |
toString()
Retrieves a string representation of this log field.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this log field to the provided
buffer.
|
public LogField(@NotNull java.lang.String fieldName, @NotNull LogFieldSyntax<?> expectedSyntax)
fieldName
- The name for this field. It must not be
null
.expectedSyntax
- The expected syntax for this field. It must not be
null
.public LogField(@NotNull java.lang.String fieldName, @Nullable java.lang.String constantName, @NotNull LogFieldSyntax<?> expectedSyntax)
fieldName
- The name for this field. It must not be
null
.constantName
- The name of the constant in which this field is
defined. This is primarily intended for internal
use.expectedSyntax
- The expected syntax for this field. It must not be
null
.@NotNull public java.lang.String getFieldName()
@Nullable @InternalUseOnly public java.lang.String getConstantName()
null
if it is not defined in any constant.@NotNull public LogFieldSyntax<?> getExpectedSyntax()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object