Class BitStringSyntaxChecker
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
-
- org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
-
- org.apache.directory.api.ldap.model.schema.SyntaxChecker
-
- org.apache.directory.api.ldap.model.schema.syntaxCheckers.BitStringSyntaxChecker
-
- All Implemented Interfaces:
Serializable
,SchemaObject
public final class BitStringSyntaxChecker extends SyntaxChecker
A SyntaxChecker which verifies that a value is a Boolean according to RFC 4517.
From RFC 4512 & RFC 4517 :BitString = SQUOTE *binary-digit SQUOTE "B" binary-digit = "0" / "1" SQUOTE = %x27 ; hyphen ("'")
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitStringSyntaxChecker.Builder
A static Builder for this class-
Nested classes/interfaces inherited from class org.apache.directory.api.ldap.model.schema.SyntaxChecker
SyntaxChecker.SCBuilder<SC>
-
-
Field Summary
Fields Modifier and Type Field Description static BitStringSyntaxChecker
INSTANCE
A static instance of BitStringSyntaxChecker-
Fields inherited from class org.apache.directory.api.ldap.model.schema.SyntaxChecker
serialVersionUID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitStringSyntaxChecker.Builder
builder()
static boolean
isValid(String strValue)
A shared and static method used to check that the string is a BitString.boolean
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.-
Methods inherited from class org.apache.directory.api.ldap.model.schema.SyntaxChecker
equals, setSchemaManager, toString
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
-
-
-
Field Detail
-
INSTANCE
public static final BitStringSyntaxChecker INSTANCE
A static instance of BitStringSyntaxChecker
-
-
Method Detail
-
builder
public static BitStringSyntaxChecker.Builder builder()
- Returns:
- An instance of the Builder for this class
-
isValid
public static boolean isValid(String strValue)
A shared and static method used to check that the string is a BitString. A BitString is a string of bits, between quotes and followed by a 'B' : '01010110'B for instance- Parameters:
strValue
- The string to check- Returns:
true
if the string is a BitString
-
isValidSyntax
public boolean isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.- Overrides:
isValidSyntax
in classSyntaxChecker
- Parameters:
value
- the value of some attribute with the syntax- Returns:
- true if the value is in the valid syntax, false otherwise
-
-