Skip navigation links

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


com.octetstring.ldapv3
Class Filter_and

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Filter>
              extended by com.octetstring.ldapv3.Filter_and

All Implemented Interfaces:
Filter, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Filter>, java.util.Collection<Filter>, java.util.List<Filter>, java.util.RandomAccess

public class Filter_and
extends java.util.ArrayList<Filter>
implements Filter

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

See Also:
Serialized Form

Constructor Summary
Filter_and()
          Constructor for creating an empty list.
Filter_and(java.util.Collection<Filter> value)
          Constructor for creating a list from a collection.
Filter_and(Filter[] value)
          Constructor for creating a list from an array.

 

Method Summary
 void addElement(Filter item)
          Appends an element to the end of the list.
 void addElement(int index, Filter item)
          Inserts an element at a specified position into the list.
 boolean containsElement(Filter elem)
          Checks weather an element is in the list.
 Filter copyFilter()
           
 java.lang.String filterToString()
           
 java.lang.Object getContents()
           
 Filter getElement(int index)
          Get an element at a specified position from the list.
 java.lang.String getTarget()
           
 int indexOfElement(Filter element)
          Searches for the first occurence of an element in the list.
 boolean isAnd()
           
 boolean isNot()
           
 boolean isOr()
           
 int lastIndexOfElement(Filter element)
          Searches for the last occurence of an element in the list.
 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 setContents(java.lang.Object filter)
           
 void setContents(java.lang.String name, java.lang.String op, java.lang.String val)
           
 Filter setElement(int index, Filter element)
          Replaces an element at a specified position in the list.
 java.lang.String toString()
          Convert the value into a java.lang.String.

 

Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize

 

Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList

 

Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll

 

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

 

Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList

 

Constructor Detail

Filter_and

public Filter_and()
Constructor for creating an empty list.

Filter_and

public Filter_and(java.util.Collection<Filter> value)
Constructor for creating a list from a collection.
Parameters:
value - The collection which values are copied.

Filter_and

public Filter_and(Filter[] value)
Constructor for creating a list from an array.
Parameters:
value - The array which values are copied.

Method Detail

addElement

public void addElement(Filter item)
Appends an element to the end of the list.
Parameters:
item - The element to add.

addElement

public void addElement(int index,
                       Filter item)
Inserts an element at a specified position into the list.
Parameters:
index - The position where to insert the element.
item - The element to insert.

getElement

public Filter getElement(int index)
Get an element at a specified position from the list.
Parameters:
index - The position of the element to retrieve.
Returns:
The element at the specified position of the list.

containsElement

public boolean containsElement(Filter elem)
Checks weather an element is in the list.
Parameters:
elem - The element to search in the list.
Returns:
true iff the element is in the list.

indexOfElement

public int indexOfElement(Filter element)
Searches for the first occurence of an element in the list.
Parameters:
element - The element to search in the list.
Returns:
The index of the first occurence in the list or -1 if not in the list.

lastIndexOfElement

public int lastIndexOfElement(Filter element)
Searches for the last occurence of an element in the list.
Parameters:
element - The element to search in the list.
Returns:
The index of the first occurence in the list or -1 if not in the list.

setElement

public Filter setElement(int index,
                         Filter element)
Replaces an element at a specified position in the list.
Parameters:
index - The index of the element to be replaced.
element - The element to put in the list.
Returns:
The replaced element of the list.

toString

public java.lang.String toString()
Convert the value into a java.lang.String.
Overrides:
toString in class java.util.AbstractCollection<Filter>
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.
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.

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

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

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


Copyright © 2000-2009 Oracle. All Rights Reserved.