Skip navigation links

Oracle Virtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-03


com.octetstring.ldapv3
Class Filter

java.lang.Object
  extended by com.octetstring.ldapv3.Filter

All Implemented Interfaces:
com.asn1c.core.ASN1Object, Filter

public class Filter
extends java.lang.Object
implements com.asn1c.core.ASN1Object, Filter

Implementation of the ASN.1 type com.octetstring.ldapv3.Filter.


Field Summary
static byte AND_SELECTED
          Selector for the variant and.
static byte APPROXMATCH_SELECTED
          Selector for the variant approxMatch.
static byte EQUALITYMATCH_SELECTED
          Selector for the variant equalityMatch.
static byte EXTENSIBLEMATCH_SELECTED
          Selector for the variant extensibleMatch.
static byte GREATEROREQUAL_SELECTED
          Selector for the variant greaterOrEqual.
static byte LESSOREQUAL_SELECTED
          Selector for the variant lessOrEqual.
static byte NOT_SELECTED
          Selector for the variant not.
static byte OR_SELECTED
          Selector for the variant or.
static byte PRESENT_SELECTED
          Selector for the variant present.
static byte SUBSTRINGS_SELECTED
          Selector for the variant substrings.

 

Constructor Summary
Filter()
           
Filter(byte selector, com.asn1c.core.ASN1Object value)
          Constructor.
Filter(Filter value)
          Copy constructor.

 

Method Summary
 Filter copy()
           
 Filter copyFilter()
           
 java.lang.String filterToString()
           
 Filter_and getAnd()
          Gets the value of the and variant.
 com.octetstring.ldapv3.AttributeValueAssertion getApproxMatch()
          Gets the value of the approxMatch variant.
 java.lang.Object getContents()
           
 com.octetstring.ldapv3.AttributeValueAssertion getEqualityMatch()
          Gets the value of the equalityMatch variant.
 com.octetstring.ldapv3.MatchingRuleAssertion getExtensibleMatch()
          Gets the value of the extensibleMatch variant.
 com.octetstring.ldapv3.AttributeValueAssertion getGreaterOrEqual()
          Gets the value of the greaterOrEqual variant.
 com.octetstring.ldapv3.AttributeValueAssertion getLessOrEqual()
          Gets the value of the lessOrEqual variant.
 Filter getNot()
          Gets the value of the not variant.
 Filter_or getOr()
          Gets the value of the or variant.
 com.asn1c.core.OctetString getPresent()
          Gets the value of the present variant.
 byte getSelector()
          Gets the variant's selector.
 SubstringFilter getSubstrings()
          Gets the value of the substrings variant.
 java.lang.String getTarget()
           
 com.asn1c.core.ASN1Object getValue()
          Gets the variant's value.
 boolean isAnd()
           
 boolean isNot()
           
 boolean isOr()
           
 void print(java.io.PrintWriter out, java.lang.String indent, java.lang.String prefix, java.lang.String suffix, int flags)
          Print a value in a formatted manner.
 void readFromFilter(Filter f)
          Allows the current filter to absorb a new filter
 void setAnd(Filter_and val)
          Sets the value for the and variant.
 void setApproxMatch(com.octetstring.ldapv3.AttributeValueAssertion val)
          Sets the value for the approxMatch variant.
 void setContents(java.lang.Object filter)
           
 void setContents(java.lang.String name, java.lang.String op, java.lang.String val)
           
 void setEqualityMatch(com.octetstring.ldapv3.AttributeValueAssertion val)
          Sets the value for the equalityMatch variant.
 void setExtensibleMatch(com.octetstring.ldapv3.MatchingRuleAssertion val)
          Sets the value for the extensibleMatch variant.
 void setFilter(Filter filter)
           
 void setGreaterOrEqual(com.octetstring.ldapv3.AttributeValueAssertion val)
          Sets the value for the greaterOrEqual variant.
 void setLessOrEqual(com.octetstring.ldapv3.AttributeValueAssertion val)
          Sets the value for the lessOrEqual variant.
 void setNot(Filter val)
          Sets the value for the not variant.
 void setOr(Filter_or val)
          Sets the value for the or variant.
 void setPresent(com.asn1c.core.OctetString val)
          Sets the value for the present variant.
 void setSubstrings(SubstringFilter val)
          Sets the value for the substrings variant.
 java.lang.String toString()
          Convert the value into a java.lang.String.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

AND_SELECTED

public static final byte AND_SELECTED
Selector for the variant and.
See Also:
Constant Field Values

OR_SELECTED

public static final byte OR_SELECTED
Selector for the variant or.
See Also:
Constant Field Values

NOT_SELECTED

public static final byte NOT_SELECTED
Selector for the variant not.
See Also:
Constant Field Values

EQUALITYMATCH_SELECTED

public static final byte EQUALITYMATCH_SELECTED
Selector for the variant equalityMatch.
See Also:
Constant Field Values

SUBSTRINGS_SELECTED

public static final byte SUBSTRINGS_SELECTED
Selector for the variant substrings.
See Also:
Constant Field Values

GREATEROREQUAL_SELECTED

public static final byte GREATEROREQUAL_SELECTED
Selector for the variant greaterOrEqual.
See Also:
Constant Field Values

LESSOREQUAL_SELECTED

public static final byte LESSOREQUAL_SELECTED
Selector for the variant lessOrEqual.
See Also:
Constant Field Values

PRESENT_SELECTED

public static final byte PRESENT_SELECTED
Selector for the variant present.
See Also:
Constant Field Values

APPROXMATCH_SELECTED

public static final byte APPROXMATCH_SELECTED
Selector for the variant approxMatch.
See Also:
Constant Field Values

EXTENSIBLEMATCH_SELECTED

public static final byte EXTENSIBLEMATCH_SELECTED
Selector for the variant extensibleMatch.
See Also:
Constant Field Values

Constructor Detail

Filter

public Filter()

Filter

public Filter(byte selector,
              com.asn1c.core.ASN1Object value)
Constructor.
Parameters:
selector - The selected variant.
value - The value of the variant.

Filter

public Filter(Filter value)
Copy constructor.
Parameters:
value - The value for the constructed value.

Method Detail

getSelector

public byte getSelector()
Gets the variant's selector.
Returns:
The selected variant.

getValue

public com.asn1c.core.ASN1Object getValue()
Gets the variant's value.
Returns:
The value of the variant.

getAnd

public Filter_and getAnd()
Gets the value of the and variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The and variant's value.

setAnd

public void setAnd(Filter_and val)
Sets the value for the and variant.
Parameters:
val - The value of the variant.

getOr

public Filter_or getOr()
Gets the value of the or variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The or variant's value.

setOr

public void setOr(Filter_or val)
Sets the value for the or variant.
Parameters:
val - The value of the variant.

getNot

public Filter getNot()
Gets the value of the not variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The not variant's value.

setNot

public void setNot(Filter val)
Sets the value for the not variant.
Parameters:
val - The value of the variant.

getEqualityMatch

public com.octetstring.ldapv3.AttributeValueAssertion getEqualityMatch()
Gets the value of the equalityMatch variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The equalityMatch variant's value.

setEqualityMatch

public void setEqualityMatch(com.octetstring.ldapv3.AttributeValueAssertion val)
Sets the value for the equalityMatch variant.
Parameters:
val - The value of the variant.

getSubstrings

public SubstringFilter getSubstrings()
Gets the value of the substrings variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The substrings variant's value.

setSubstrings

public void setSubstrings(SubstringFilter val)
Sets the value for the substrings variant.
Parameters:
val - The value of the variant.

getGreaterOrEqual

public com.octetstring.ldapv3.AttributeValueAssertion getGreaterOrEqual()
Gets the value of the greaterOrEqual variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The greaterOrEqual variant's value.

setGreaterOrEqual

public void setGreaterOrEqual(com.octetstring.ldapv3.AttributeValueAssertion val)
Sets the value for the greaterOrEqual variant.
Parameters:
val - The value of the variant.

getLessOrEqual

public com.octetstring.ldapv3.AttributeValueAssertion getLessOrEqual()
Gets the value of the lessOrEqual variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The lessOrEqual variant's value.

setLessOrEqual

public void setLessOrEqual(com.octetstring.ldapv3.AttributeValueAssertion val)
Sets the value for the lessOrEqual variant.
Parameters:
val - The value of the variant.

getPresent

public com.asn1c.core.OctetString getPresent()
Gets the value of the present variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The present variant's value.

setPresent

public void setPresent(com.asn1c.core.OctetString val)
Sets the value for the present variant.
Parameters:
val - The value of the variant.

getApproxMatch

public com.octetstring.ldapv3.AttributeValueAssertion getApproxMatch()
Gets the value of the approxMatch variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The approxMatch variant's value.

setApproxMatch

public void setApproxMatch(com.octetstring.ldapv3.AttributeValueAssertion val)
Sets the value for the approxMatch variant.
Parameters:
val - The value of the variant.

getExtensibleMatch

public com.octetstring.ldapv3.MatchingRuleAssertion getExtensibleMatch()
Gets the value of the extensibleMatch variant. Throws an IllegalStateException if the variant is not selected.
Returns:
The extensibleMatch variant's value.

setExtensibleMatch

public void setExtensibleMatch(com.octetstring.ldapv3.MatchingRuleAssertion val)
Sets the value for the extensibleMatch variant.
Parameters:
val - The value of the variant.

setFilter

public void setFilter(Filter filter)

toString

public java.lang.String toString()
Convert the value into a java.lang.String.
Overrides:
toString in class java.lang.Object
Returns:
A string containing the value of the type.

print

public void print(java.io.PrintWriter out,
                  java.lang.String indent,
                  java.lang.String prefix,
                  java.lang.String suffix,
                  int flags)
Print a value in a formatted manner.
Specified by:
print in interface com.asn1c.core.ASN1Object
Parameters:
out - Where to send the output to.
indent - A string which is printed on every output line.
prefix - A string which is printed (behind the indent) on the first output line.
suffix - A string which is printed at the end of the last output line.
flags - Flags for output, reserved for future use.

readFromFilter

public void readFromFilter(Filter f)
Allows the current filter to absorb a new filter
Parameters:
f - the new filter to absorb

isAnd

public boolean isAnd()
Specified by:
isAnd in interface Filter

isOr

public boolean isOr()
Specified by:
isOr in interface Filter

isNot

public boolean isNot()
Specified by:
isNot in interface Filter

getContents

public java.lang.Object getContents()
Specified by:
getContents in interface Filter

setContents

public void setContents(java.lang.String name,
                        java.lang.String op,
                        java.lang.String val)
                 throws DirectoryException
Specified by:
setContents in interface Filter
Throws:
DirectoryException

getTarget

public java.lang.String getTarget()
Specified by:
getTarget in interface Filter

setContents

public void setContents(java.lang.Object filter)
Specified by:
setContents in interface Filter

copy

public Filter copy()

copyFilter

public Filter copyFilter()
Specified by:
copyFilter in interface Filter

filterToString

public java.lang.String filterToString()
Specified by:
filterToString in interface Filter

Skip navigation links

Oracle Virtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-03


Copyright © 2000-2010 Oracle and/or its affiliates. All Rights Reserved.