org.apache.james.jspf.parser
Interface TermDefinition

All Known Implementing Classes:
DefaultTermDefinition

public interface TermDefinition

A term definition contains everything needed to match and create new Terms implementations.


Method Summary
 int getMatchSize()
          Return the number of groups to be expected from the pattern of this Term.
 java.util.regex.Pattern getPattern()
          Retrieve the pattern to be used to match a string against this record type.
 java.lang.Class getTermDef()
          The class implementing this Term type.
 

Method Detail

getPattern

java.util.regex.Pattern getPattern()
Retrieve the pattern to be used to match a string against this record type.

Returns:
the pattern for this term

getTermDef

java.lang.Class getTermDef()
The class implementing this Term type.

Returns:
the class object.

getMatchSize

int getMatchSize()
Return the number of groups to be expected from the pattern of this Term.

Returns:
the number of groups


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.