efxtools.sample.ae.helper
Class RegexMoneyDe

java.lang.Object
  extended by efxtools.sample.ae.helper.RegexMoneyDe

public class RegexMoneyDe
extends java.lang.Object

Class that stores several regular expressions in the context of monetary expressions. These refer to the following categories:

The common use is just to match with the pattern for monetary subexpressions since this spans all the different parts defined by the categories given above.

Author:
Author of EfXTools

Field Summary
static java.lang.String ABSOLUTE_MONEY_TERM
          Absolute terms on money.
static java.lang.String MONEY_SUBEXPRESSION
          Regular expression for absolute or relative terms on money possibly preceded by a preposition and a filler word.
static java.lang.String RELATIVE_MONEY_TERM
          Relative terms on money, Such a term consist of a number expression followed by a percentage term or of a fraction expression.
 
Constructor Summary
RegexMoneyDe()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATIVE_MONEY_TERM

public static final java.lang.String RELATIVE_MONEY_TERM
Relative terms on money, Such a term consist of a number expression followed by a percentage term or of a fraction expression.


ABSOLUTE_MONEY_TERM

public static final java.lang.String ABSOLUTE_MONEY_TERM
Absolute terms on money. Such a term consists of a number expression followed by a currency expression or vice versa.


MONEY_SUBEXPRESSION

public static final java.lang.String MONEY_SUBEXPRESSION
Regular expression for absolute or relative terms on money possibly preceded by a preposition and a filler word.

NOTICE: It is assumed that monetary subexpressions start and end with a non-letter character to ensure that there is a word boundary at the beginning and the end of it. That is, only take the substring starting at index 1 and ending at index length-1 if you want to have the actual subexpression.

Constructor Detail

RegexMoneyDe

public RegexMoneyDe()