org.apache.directory.api.ldap.codec.api
Class SchemaBinaryAttributeDetector

java.lang.Object
  extended by org.apache.directory.api.ldap.codec.api.SchemaBinaryAttributeDetector
All Implemented Interfaces:
BinaryAttributeDetector
Direct Known Subclasses:
DefaultConfigurableBinaryAttributeDetector

public class SchemaBinaryAttributeDetector
extends Object
implements BinaryAttributeDetector

An implementation of the BinaryAttributeDetector interface. It's not schema aware, so it only uses the list of binary Attributes.

Author:
Apache Directory Project

Constructor Summary
protected SchemaBinaryAttributeDetector()
           
  SchemaBinaryAttributeDetector(SchemaManager schemaManager)
           
 
Method Summary
 boolean isBinary(String attributeId)
          Returns true if the attribute specified is not human readible.
 void setSchemaManager(SchemaManager schemaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaBinaryAttributeDetector

protected SchemaBinaryAttributeDetector()

SchemaBinaryAttributeDetector

public SchemaBinaryAttributeDetector(SchemaManager schemaManager)
Method Detail

setSchemaManager

public void setSchemaManager(SchemaManager schemaManager)
Parameters:
schemaManager - the schemaManager to set

isBinary

public boolean isBinary(String attributeId)
Returns true if the attribute specified is not human readible.

Specified by:
isBinary in interface BinaryAttributeDetector
Parameters:
attributeId - the identifier/descriptor for the attribute to be checked.
Returns:
true if the attribute specified is not human readible, false otherwise


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.