Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer.gui
Class Filter.Entry  view Filter.Entry download Filter.Entry.java

java.lang.Object
  extended byorg.greenstone.gatherer.gui.Filter.Entry
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
Filter

private class Filter.Entry
extends java.lang.Object
implements java.lang.Comparable

An object that holds a filter entry. This is string used for the filter pattern and, if not custom built, its name.


Field Summary
private  java.lang.String name
          The name of this filter entry.
private  java.util.regex.Pattern pattern
          The compiled pattern created from a regular expression.
 
Constructor Summary
Filter.Entry()
          Constructor.
Filter.Entry(java.lang.String name, java.util.regex.Pattern pattern)
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object object)
          Compare two Entrys for ordering.
 java.util.regex.Pattern getPattern()
          Retrieve the pattern associated with this entry.
 java.lang.String toString()
          Translate this entry into a textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pattern

private java.util.regex.Pattern pattern
The compiled pattern created from a regular expression.


name

private java.lang.String name
The name of this filter entry.

Constructor Detail

Filter.Entry

public Filter.Entry()
Constructor.


Filter.Entry

public Filter.Entry(java.lang.String name,
                    java.util.regex.Pattern pattern)
Constructor.

Method Detail

compareTo

public int compareTo(java.lang.Object object)
Compare two Entrys for ordering.

Specified by:
compareTo in interface java.lang.Comparable

getPattern

public java.util.regex.Pattern getPattern()
Retrieve the pattern associated with this entry.


toString

public java.lang.String toString()
Translate this entry into a textual representation.