|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.shared.ldap.schema.syntax.CountrySyntaxChecker
public class CountrySyntaxChecker
A SyntaxChecker which verifies that a value is a country according to RFC 4517. From RFC 4517 : A value of the Country String syntax is one of the two-character codes from ISO 3166 [ISO3166] for representing a country.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OID
The Syntax OID, according to RFC 4517, par. |
| Constructor Summary | |
|---|---|
CountrySyntaxChecker()
Creates a new instance of CountrySyntaxChecker. |
|
CountrySyntaxChecker(java.lang.String oid)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OID
| Constructor Detail |
|---|
public CountrySyntaxChecker(java.lang.String oid)
public CountrySyntaxChecker()
| Method Detail |
|---|
public void assertSyntax(java.lang.Object value)
throws javax.naming.NamingException
SyntaxChecker
assertSyntax in interface SyntaxCheckervalue - the value of some attribute with the syntax
javax.naming.NamingException - if the value does not conform to the attribute syntax.public java.lang.String getSyntaxOid()
SyntaxChecker
getSyntaxOid in interface SyntaxCheckerpublic boolean isValidSyntax(java.lang.Object value)
SyntaxChecker
isValidSyntax in interface SyntaxCheckervalue - the value of some attribute with the syntax
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||