efxtools.sample.ae.helper
Class MonetarySubexpression

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

public class MonetarySubexpression
extends java.lang.Object

Entity class for storing a monetary subexpression.

A monetary subexpression semantically consititutes a text span that consist of a money term, an optional leading preposition, and - if the latter exists - an optional filler word between those two.

Syntactically, a monetary subexpression is given by the string itself as well as its according start and end index, and the type the subexpression refers to as given in SubexpressionType.

Author:
Author of EfXTools

Constructor Summary
MonetarySubexpression(int begin, int end, java.lang.String value)
          Constructor.
 
Method Summary
 int getBegin()
          Getter for the begin index
 int getEnd()
          Getter for the end index
 java.lang.String getValue()
          Getter for the value
 void setBegin(int begin)
          Setter for the begin index
 void setEnd(int end)
          Setter for the end index
 void setValue(java.lang.String value)
          Setter for the value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonetarySubexpression

public MonetarySubexpression(int begin,
                             int end,
                             java.lang.String value)
Constructor.

Parameters:
begin - The begin index of the subexpression
end - The end index of the subexpression
value - The value, i.e. the subexpression itself.
Method Detail

getBegin

public int getBegin()
Getter for the begin index

Returns:
The begin index

setBegin

public void setBegin(int begin)
Setter for the begin index

Parameters:
begin - The begin index

getEnd

public int getEnd()
Getter for the end index

Returns:
The end index

setEnd

public void setEnd(int end)
Setter for the end index

Parameters:
end - The end index

getValue

public java.lang.String getValue()
Getter for the value

Returns:
The value

setValue

public void setValue(java.lang.String value)
Setter for the value

Parameters:
value - The value