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
|
serialVersionUID
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, toString
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
public static final PrintableStringSyntaxChecker INSTANCE
public static PrintableStringSyntaxChecker.Builder builder()
public boolean isValidSyntax(Object value)
isValidSyntax
in class SyntaxChecker
value
- the value of some attribute with the syntaxCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.