org.polliwog.resolvers
Class URLMatchType

java.lang.Object
  extended by org.polliwog.resolvers.URLMatchType
All Implemented Interfaces:
MatchType

public class URLMatchType
extends java.lang.Object
implements MatchType

NOTE TO SELF: This class is effectively a clone of org.polliwog.filters.URLRule, whilst this is "ok" the functonality should be merged in a future release to provide for a single code-base.


Field Summary
static int CONTAINS
           
static int ENDS_WITH
           
static int EQUALS
           
static int STARTS_WITH
           
 
Constructor Summary
URLMatchType()
           
 
Method Summary
 void init(org.jdom.Element root)
           
 boolean match(AbstractURIField f)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTS_WITH

public static final int STARTS_WITH
See Also:
Constant Field Values

ENDS_WITH

public static final int ENDS_WITH
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values
Constructor Detail

URLMatchType

public URLMatchType()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

init

public void init(org.jdom.Element root)
          throws org.jdom.JDOMException
Specified by:
init in interface MatchType
Throws:
org.jdom.JDOMException

match

public boolean match(AbstractURIField f)
Specified by:
match in interface MatchType


  Copyright © 2007 Gary Bentley. All Rights Reserved.