com.zipxap.vfs.dal.utility
Class Construct

java.lang.Object
  extended by com.zipxap.vfs.dal.utility.Construct

public class Construct
extends java.lang.Object

A construct is a set of words, space separated, that are used to match words in a search, regardless of the whitespace characters between those words.

This interface is part of the KavaPL base API.

MilestoneWhoDate, Time
Initial VersionK PenroseJune 23, 2007, 3:37 PM

** Note that this table is not intended as an exhaustive list of subtle changes. It is intended to list changes that break the compatibility of older code, or major enhancements/rewrites


Constructor Summary
Construct(java.lang.String construct)
          Create a construct from a set of words, space separated, that are used to match words in a search, regardless of the whitespace characters between those words.
Construct(java.lang.String construct, boolean acceptAnyWhitespace)
          Create a construct from a set of words, space separated, that are used to match words in a search, regardless of the whitespace characters between those words.
 
Method Summary
static boolean equals(java.lang.String s1, java.lang.String s2, boolean ignoreCase, boolean acceptAnyWhitespace)
          Determine if the two specified strings are equivalent constructs.
 java.util.List<java.lang.String> getWords()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Construct

public Construct(java.lang.String construct)
Create a construct from a set of words, space separated, that are used to match words in a search, regardless of the whitespace characters between those words. In addition, non-alpha-numeric characters, if they are present in the construct, are further split into their own words.

Parameters:
construct - a set of words, space separated

Construct

public Construct(java.lang.String construct,
                 boolean acceptAnyWhitespace)
Create a construct from a set of words, space separated, that are used to match words in a search, regardless of the whitespace characters between those words. In addition, non-alpha-numeric characters, if they are present in the construct, are further split into their own words.

Parameters:
construct - a set of words, space separated
acceptAnyWhitespace - Set this to true if we should treat any whitespace character as a word separator, otherwise only a space character (' ') will be treated as a word separator.
Method Detail

getWords

public java.util.List<java.lang.String> getWords()

toString

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

equals

public static boolean equals(java.lang.String s1,
                             java.lang.String s2,
                             boolean ignoreCase,
                             boolean acceptAnyWhitespace)
Determine if the two specified strings are equivalent constructs.

Parameters:
s1 -
s2 -
ignoreCase -
acceptAnyWhitespace - Set this to true if we should treat any whitespace character as a word separator, otherwise only a space character (' ') will be treated as a word separator. * @return