Package netscape.ldap
Class LDAPSyntaxSchemaElement
java.lang.Object
netscape.ldap.LDAPSchemaElement
netscape.ldap.LDAPSyntaxSchemaElement
- All Implemented Interfaces:
Serializable
Helper class supporting schema elements that include syntax
definitions - attributes and matching rules
- Version:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final long
(package private) int
(package private) String
Fields inherited from class netscape.ldap.LDAPSchemaElement
aliases, attrName, binary, binaryString, ces, cesString, cis, cisString, description, dn, dnString, integer, intString, name, novalsTable, OBSOLETE, oid, properties, rawValue, SUPERIOR, SYNTAX, telephone, telephoneString, unknown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Gets the syntax of the schema element(package private) String
Gets the syntax of the attribute type in dotted-decimal format, for example "1.2.3.4.5"(package private) static String
internalSyntaxToString
(int syntax) Convert from enumerated syntax types to an OID(package private) int
syntaxCheck
(String syntax) Convert from an OID to one of the enumerated syntax types(package private) String
Convert from enumerated syntax type to a user-friendly stringMethods inherited from class netscape.ldap.LDAPSchemaElement
add, add, getAliases, getAliasString, getCustomValues, getDescription, getID, getName, getOID, getOptionalValues, getQualifier, getQualifierNames, getQualifierString, getValue, getValue, getValue, getValue, getValuePrefix, isObsolete, modify, modify, parseValue, remove, remove, setQualifier, setQualifier, update, update, update
-
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
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
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
-