|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.codec.api.SchemaBinaryAttributeDetector
org.apache.directory.api.ldap.codec.api.DefaultConfigurableBinaryAttributeDetector
public class DefaultConfigurableBinaryAttributeDetector
An implementation of the BinaryAttributeDetector interface. It's used
on the client side to detect if an Attribute is HumanRedable.
One can inject some new attributes, replace the existing list,
remove some attributes.
We provide a list of Attributes which are known to be binary :
| Field Summary | |
|---|---|
static String[] |
DEFAULT_BINARY_ATTRIBUTES
A list of all the known binary attributes |
| Constructor Summary | |
|---|---|
DefaultConfigurableBinaryAttributeDetector()
Creates a new instance of a ConfigurableBinaryAttributeDetector. |
|
| Method Summary | |
|---|---|
void |
addBinaryAttribute(String... binaryAttributes)
Add some binary Attributes Id to the list of attributes |
boolean |
isBinary(String attributeId)
Returns true if the attribute specified is not human readible. |
void |
removeBinaryAttribute(String... binaryAttributes)
Remove some binary Attributes Id from the list of attributes |
void |
setBinaryAttributes(String... binaryAttributes)
Inject a new set of binary attributes that will replace the old one. |
| Methods inherited from class org.apache.directory.api.ldap.codec.api.SchemaBinaryAttributeDetector |
|---|
setSchemaManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] DEFAULT_BINARY_ATTRIBUTES
| Constructor Detail |
|---|
public DefaultConfigurableBinaryAttributeDetector()
| Method Detail |
|---|
public boolean isBinary(String attributeId)
isBinary in interface BinaryAttributeDetectorisBinary in class SchemaBinaryAttributeDetectorattributeId - the identifier/descriptor for the attribute to be checked.
public void addBinaryAttribute(String... binaryAttributes)
addBinaryAttribute in interface ConfigurableBinaryAttributeDetectorbinaryAttributes - The added binary attributes Idpublic void removeBinaryAttribute(String... binaryAttributes)
removeBinaryAttribute in interface ConfigurableBinaryAttributeDetectorbinaryAttributes - The binary attributes Id to removepublic void setBinaryAttributes(String... binaryAttributes)
setBinaryAttributes in interface ConfigurableBinaryAttributeDetectorbinaryAttributes - The new set of binary attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||