net.sf.vcard4j.search
Class SimpleQuery

java.lang.Object
  extended bynet.sf.vcard4j.search.SimpleQuery
All Implemented Interfaces:
Query

public class SimpleQuery
extends java.lang.Object
implements Query


Constructor Summary
SimpleQuery()
           
 
Method Summary
 void addType(java.lang.String type)
           
 boolean getComplementaryTypes()
           
 boolean getMatching()
          If (matching) then the matchingVCards() are the one for which no type belongs to matchingTypes()...
 java.util.Set getMatchingTypes()
          Returns the matching types.
 java.util.Set getMatchingVCards()
          Returns all the matching VCards.
 java.lang.String getPattern()
           
 java.util.Set getTypes()
           
 void removeType(java.lang.String type)
           
 boolean search(org.w3c.dom.Node root)
          Returns true if some VCards were matching the search crteria.
 void setComplementaryTypes(boolean v)
           
 void setMatching(boolean v)
           
 void setPattern(java.lang.String p)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleQuery

public SimpleQuery()
Method Detail

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String p)

addType

public void addType(java.lang.String type)

removeType

public void removeType(java.lang.String type)

getTypes

public java.util.Set getTypes()

getMatching

public boolean getMatching()
If (matching) then the matchingVCards() are the one for which no type belongs to matchingTypes()...


setMatching

public void setMatching(boolean v)

getComplementaryTypes

public boolean getComplementaryTypes()

setComplementaryTypes

public void setComplementaryTypes(boolean v)

search

public boolean search(org.w3c.dom.Node root)
Description copied from interface: Query
Returns true if some VCards were matching the search crteria.

Specified by:
search in interface Query

getMatchingVCards

public java.util.Set getMatchingVCards()
Description copied from interface: Query
Returns all the matching VCards.

Specified by:
getMatchingVCards in interface Query

getMatchingTypes

public java.util.Set getMatchingTypes()
Description copied from interface: Query
Returns the matching types.

Specified by:
getMatchingTypes in interface Query

toString

public java.lang.String toString()