Package org.ldaptive.filter
Class AbstractAttributeValueAssertionFilter
- java.lang.Object
-
- org.ldaptive.filter.AbstractAttributeValueAssertionFilter
-
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
ApproximateFilter
,EqualityFilter
,GreaterOrEqualFilter
,LessOrEqualFilter
public abstract class AbstractAttributeValueAssertionFilter extends java.lang.Object implements Filter
Base class for attribute value assertion filters.- Author:
- Middleware Services
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ldaptive.filter.Filter
Filter.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
assertionValue
Attribute value.protected java.lang.String
attributeDesc
Attribute description.protected Filter.Type
filterType
Type of filter.
-
Constructor Summary
Constructors Constructor Description AbstractAttributeValueAssertionFilter(Filter.Type type, java.lang.String name, byte[] value)
Creates a new abstract attribute value assertion filter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
byte[]
getAssertionValue()
Returns the assertion value.java.lang.String
getAttributeDesc()
Returns the attribute description.DEREncoder
getEncoder()
Returns the encoder for this filter.abstract int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
filterType
protected final Filter.Type filterType
Type of filter.
-
attributeDesc
protected final java.lang.String attributeDesc
Attribute description.
-
assertionValue
protected final byte[] assertionValue
Attribute value.
-
-
Constructor Detail
-
AbstractAttributeValueAssertionFilter
public AbstractAttributeValueAssertionFilter(Filter.Type type, java.lang.String name, byte[] value)
Creates a new abstract attribute value assertion filter.- Parameters:
type
- of filtername
- attribute descriptionvalue
- attribute value
-
-
Method Detail
-
getAttributeDesc
public java.lang.String getAttributeDesc()
Returns the attribute description.- Returns:
- attribute description
-
getAssertionValue
public byte[] getAssertionValue()
Returns the assertion value.- Returns:
- assertion value
-
getEncoder
public DEREncoder getEncoder()
Description copied from interface:Filter
Returns the encoder for this filter.- Specified by:
getEncoder
in interfaceFilter
- Returns:
- DER encoder
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-