org.mmbase.sms
Class NumberRecognizer

java.lang.Object
  extended by org.mmbase.sms.NumberRecognizer
All Implemented Interfaces:
Serializable, Processor

public class NumberRecognizer
extends Object
implements Processor

Recognizes and canonicalizes phone numbers. Currently only supports dutch mobile phone numbers. This processor can be used as a set-processor on mobile number fields.

Version:
$Id: NumberRecognizer.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
static Pattern DUTCH
           
 
Constructor Summary
NumberRecognizer()
           
 
Method Summary
static void main(String[] argv)
           
 Object process(Node node, Field field, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUTCH

public static final Pattern DUTCH
Constructor Detail

NumberRecognizer

public NumberRecognizer()
Method Detail

process

public Object process(Node node,
                      Field field,
                      Object value)
Specified by:
process in interface Processor
Parameters:
node - The node object for which the field must be transformed.
field - The field which is set.
value - The (new) field value.

main

public static void main(String[] argv)


MMBase 2.0-SNAPSHOT - null