public final class CountrySyntaxChecker extends SyntaxChecker
A value of the Country String syntax is one of the two-character codes from ISO 3166 [ISO3166] for representing a country.
| Modifier and Type | Class and Description |
|---|---|
static class |
CountrySyntaxChecker.Builder
A static Builder for this class
|
SyntaxChecker.SCBuilder<SC>| Modifier and Type | Field and Description |
|---|---|
private static Set<String> |
COUNTRIES
The Set which contains the countries
|
private static String[] |
COUNTRY_ISO_3166
The ISO 3166 list of countries, as of 2006
|
static CountrySyntaxChecker |
INSTANCE
A static instance of CountrySyntaxChecker
|
LOG, serialVersionUIDdescription, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| Modifier | Constructor and Description |
|---|---|
private |
CountrySyntaxChecker(String oid)
Creates a new instance of CountrySyntaxChecker.
|
| Modifier and Type | Method and Description |
|---|---|
static CountrySyntaxChecker.Builder |
builder() |
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
equals, setSchemaManager, toStringcopy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockprivate static final String[] COUNTRY_ISO_3166
public static final CountrySyntaxChecker INSTANCE
private CountrySyntaxChecker(String oid)
oid - The OID to use for this SyntaxCheckerpublic static CountrySyntaxChecker.Builder builder()
public boolean isValidSyntax(Object value)
isValidSyntax in class SyntaxCheckervalue - the value of some attribute with the syntaxCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.