public final class PrintableStringSyntaxChecker extends SyntaxChecker
From RFC 4517 :
PrintableString = 1*PrintableCharacter
PrintableCharacter = ALPHA | DIGIT | SQUOTE | LPAREN | RPAREN |
PLUS | COMMA | HYPHEN | DOT | EQUALS |
SLASH | COLON | QUESTION | SPACE
SLASH = %x2F ; forward slash ("/")
COLON = %x3A ; colon (":")
QUESTION= %x3F ; question mark ("?")
From RFC 4512 :
ALPHA = %x41-5A | %x61-7A ; "A"-"Z" / "a"-"z"
DIGIT = %x30 | LDIGIT ; "0"-"9"
LDIGIT = %x31-39 ; "1"-"9"
SQUOTE = %x27 ; single quote ("'")
LPAREN = %x28 ; left paren ("(")
RPAREN = %x29 ; right paren (")")
PLUS = %x2B ; plus sign ("+")
COMMA = %x2C ; comma (",")
HYPHEN = %x2D ; hyphen ("-")
DOT = %x2E ; period (".")
EQUALS = %x3D ; equals sign ("=")
SPACE = %x20 ; space (" ")
| Modifier and Type | Class and Description |
|---|---|
static class |
PrintableStringSyntaxChecker.Builder
A static Builder for this class
|
SyntaxChecker.SCBuilder<SC>| Modifier and Type | Field and Description |
|---|---|
static PrintableStringSyntaxChecker |
INSTANCE
A static instance of PrintableStringSyntaxChecker
|
LOG, serialVersionUIDdescription, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| Modifier | Constructor and Description |
|---|---|
private |
PrintableStringSyntaxChecker(String oid)
Creates a new instance of PrintableStringSyntaxChecker.
|
| Modifier and Type | Method and Description |
|---|---|
static PrintableStringSyntaxChecker.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, unlockpublic static final PrintableStringSyntaxChecker INSTANCE
private PrintableStringSyntaxChecker(String oid)
oid - The OID to use for this SyntaxCheckerpublic static PrintableStringSyntaxChecker.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.