org.apache.directory.api.ldap.model.schema.syntaxCheckers
Class DnSyntaxChecker
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.SyntaxChecker
org.apache.directory.api.ldap.model.schema.syntaxCheckers.DnSyntaxChecker
- All Implemented Interfaces:
- Serializable, SchemaObject
public class DnSyntaxChecker
- extends SyntaxChecker
A SyntaxChecker which verifies that a value is a valid Dn. We just check
that the Dn is valid, we don't need to verify each of the Rdn syntax.
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
|
Constructor Summary |
DnSyntaxChecker()
Creates a new instance of DNSyntaxChecker. |
|
Method Summary |
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax. |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock |
DnSyntaxChecker
public DnSyntaxChecker()
- Creates a new instance of DNSyntaxChecker.
isValidSyntax
public boolean isValidSyntax(Object value)
- Determines if the attribute's value conforms to the attribute syntax.
- Specified by:
isValidSyntax in class SyntaxChecker
- Parameters:
value - the value of some attribute with the syntax
- Returns:
- true if the value is in the valid syntax, false otherwise
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.