Package netscape.ldap

Class LDAPSyntaxSchemaElement

java.lang.Object
netscape.ldap.LDAPSchemaElement
netscape.ldap.LDAPSyntaxSchemaElement
All Implemented Interfaces:
Serializable

class LDAPSyntaxSchemaElement extends LDAPSchemaElement
Helper class supporting schema elements that include syntax definitions - attributes and matching rules
Version:
1.0
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • syntax

      int syntax
    • syntaxString

      String syntaxString
  • Constructor Details

    • LDAPSyntaxSchemaElement

      LDAPSyntaxSchemaElement()
      Construct a blank element.
  • Method Details

    • getSyntax

      int getSyntax()
      Gets the syntax of the schema element
      Returns:
      One of the following values:
      • cis (case-insensitive string)
      • ces (case-exact string)
      • binary (binary data)
      • int (integer)
      • telephone (telephone number -- identical to cis, but blanks and dashes are ignored during comparisons)
      • dn (distinguished name)
      • unknown (not a known syntax)
    • getSyntaxString

      String getSyntaxString()
      Gets the syntax of the attribute type in dotted-decimal format, for example "1.2.3.4.5"
      Returns:
      The attribute syntax in dotted-decimal format.
    • internalSyntaxToString

      static String internalSyntaxToString(int syntax)
      Convert from enumerated syntax types to an OID
      Parameters:
      syntax - One of the enumerated syntax types
      Returns:
      The OID corresponding to the internal type
    • syntaxToString

      String syntaxToString()
      Convert from enumerated syntax type to a user-friendly string
      Parameters:
      syntax - One of the enumerated syntax types
      Returns:
      A user-friendly syntax description
    • syntaxCheck

      int syntaxCheck(String syntax)
      Convert from an OID to one of the enumerated syntax types
      Parameters:
      syntax - A dotted-decimal OID
      Returns:
      The internal enumerated type corresponding to the OID; unknown if it is not one of the known types