org.apache.directory.shared.ldap.schema.syntax
Interface SyntaxChecker

All Known Implementing Classes:
AbstractSyntaxChecker, AcceptAllSyntaxChecker, AccessPointSyntaxChecker, ACIItemSyntaxChecker, AttributeTypeDescriptionSyntaxChecker, AttributeTypeUsageSyntaxChecker, AudioSyntaxChecker, BinarySyntaxChecker, BitStringSyntaxChecker, BooleanSyntaxChecker, CertificateListSyntaxChecker, CertificatePairSyntaxChecker, CertificateSyntaxChecker, CountrySyntaxChecker, DataQualitySyntaxSyntaxChecker, DeliveryMethodSyntaxChecker, DirectoryStringSyntaxChecker, DITContentRuleDescriptionSyntaxChecker, DITStructureRuleDescriptionSyntaxChecker, DLSubmitPermissionSyntaxChecker, DNSyntaxChecker, DSAQualitySyntaxSyntaxChecker, DSETypeSyntaxChecker, EnhancedGuideSyntaxChecker, FacsimileTelephoneNumberSyntaxChecker, FaxSyntaxChecker, GeneralizedTimeSyntaxChecker, GuideSyntaxChecker, Ia5StringSyntaxChecker, IntegerSyntaxChecker, JavaByteSyntaxChecker, JavaIntegerSyntaxChecker, JavaLongSyntaxChecker, JavaShortSyntaxChecker, JpegSyntaxChecker, LdapSyntaxDescriptionSyntaxChecker, MailPreferenceSyntaxChecker, MasterAndShadowAccessPointSyntaxChecker, MatchingRuleDescriptionSyntaxChecker, MatchingRuleUseDescriptionSyntaxChecker, MHSORAddressSyntaxChecker, NameAndOptionalUIDSyntaxChecker, NameFormDescriptionSyntaxChecker, NumberSyntaxChecker, NumericOidSyntaxChecker, NumericStringSyntaxChecker, ObjectClassDescriptionSyntaxChecker, ObjectClassTypeSyntaxChecker, ObjectNameSyntaxChecker, OctetStringSyntaxChecker, OidLenSyntaxChecker, OidSyntaxChecker, OtherMailboxSyntaxChecker, PostalAddressSyntaxChecker, PresentationAddressSyntaxChecker, PrintableStringSyntaxChecker, ProtocolInformationSyntaxChecker, RegexSyntaxChecker, SubstringAssertionSyntaxChecker, SubtreeSpecificationSyntaxChecker, SupplierAndConsumerSyntaxChecker, SupplierInformationSyntaxChecker, SupplierOrConsumerSyntaxChecker, SupportedAlgorithmSyntaxChecker, TelephoneNumberSyntaxChecker, TeletexTerminalIdentifierSyntaxChecker, TelexNumberSyntaxChecker, UtcTimeSyntaxChecker

public interface SyntaxChecker

Used to validate values of a particular syntax. This interface does not correlate to any LDAP or X.500 construct. It has been created as a means to enforce a syntax within the Eve server.

Version:
$Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sa, 07 Jun 2008) $
Author:
Apache Directory Project

Method Summary
 void assertSyntax(java.lang.Object value)
          Asserts whether or not the attribute's value conforms to the attribute syntax.
 java.lang.String getSyntaxOid()
          Gets the OID of the attribute syntax.
 boolean isValidSyntax(java.lang.Object value)
          Determines if the attribute's value conforms to the attribute syntax.
 

Method Detail

getSyntaxOid

java.lang.String getSyntaxOid()
Gets the OID of the attribute syntax.

Returns:
the object identifier of the Syntax this SyntaxChecker validates

isValidSyntax

boolean isValidSyntax(java.lang.Object value)
Determines if the attribute's value conforms to the attribute syntax.

Parameters:
value - the value of some attribute with the syntax
Returns:
true if the value is in the valid syntax, false otherwise

assertSyntax

void assertSyntax(java.lang.Object value)
                  throws javax.naming.NamingException
Asserts whether or not the attribute's value conforms to the attribute syntax.

Parameters:
value - the value of some attribute with the syntax
Throws:
javax.naming.NamingException - if the value does not conform to the attribute syntax.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.