java.lang.Object
com.unboundid.ldap.sdk.unboundidds.logs.v2.LogField
All Implemented Interfaces:
Serializable

@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LogField extends Object implements Serializable
This class defines a data structure that represents a field that may appear in a Directory Server log message.
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.
See Also:
  • Constructor Details

    • LogField

      public LogField(@NotNull String fieldName, @NotNull LogFieldSyntax<?> expectedSyntax)
      Creates a log field with whe provided information.
      Parameters:
      fieldName - The name for this field. It must not be null.
      expectedSyntax - The expected syntax for this field. It must not be null.
    • LogField

      public LogField(@NotNull String fieldName, @Nullable String constantName, @NotNull LogFieldSyntax<?> expectedSyntax)
      Creates a log field with whe provided information.
      Parameters:
      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.
  • Method Details

    • getFieldName

      Retrieves the name for this field.
      Returns:
      The name for this field.
    • getConstantName

      Retrieves the name of the constant in which this log field is defined.
      Returns:
      The name of the constant in which this log field is defined, or null if it is not defined in any constant.
    • getExpectedSyntax

      Retrieves the expected syntax for this field. Note that this may be a generic instance of the associated syntax, which may or may not reflect the settings used to actually generate the log message.
      Returns:
      The expected syntax for this field.
    • toString

      Retrieves a string representation of this log field.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this log field.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of this log field to the provided buffer.
      Parameters:
      buffer - The buffer to which the string representation should be appended. It must not be null.