|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.tools.Normalizer
public class Normalizer
This class provides wrapper methods to get an access to different normalizer implementations.
This class is to load the corresponding implementation of a normalizer class. Therefor it seams
to be a factory. The factory settings are read from the configuration file calling the
SettingsReader.
Normalizer,
NormalizeV01,
SettingsReader,
Serialized Form| Field Summary | |
|---|---|
protected static String |
DEFAULT_VERSION
The default version string |
protected static String |
SETTINGS_VERSION_KEY
The settings key defined in the settings file |
| Constructor Summary | |
|---|---|
Normalizer()
The empty constructor. |
|
Normalizer(String rawString)
New Normalizer init by the raw string. |
|
Normalizer(String rawString,
String normVersion)
New Normalizer init by the raw string and a normalizer version. |
|
| Method Summary | |
|---|---|
Normalize |
getInstance()
Returns the underlying normalizer instance. |
String |
getNormalizedString()
Return the normalized string. |
String |
getNormCR()
Returns the normalizer line separator string. |
String |
getVersion()
Return the current version string. |
void |
init()
Load the factory implementation. |
String |
normalize()
Wrapper method. |
String |
normalize(String rawString)
Wrapper method. |
void |
setRawString(String rawString)
Set the raw string to normalize |
void |
setVersion(String normVersion)
Set a normalizer version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEFAULT_VERSION
protected static final String SETTINGS_VERSION_KEY
SettingsReader,
Constant Field Values| Constructor Detail |
|---|
public Normalizer(String rawString,
String normVersion)
throws NormalizeException
rawString - the raw string to normalizenormVersion - the nomalizer version that should be used
NormalizeException - ErrorCode:400
public Normalizer(String rawString)
throws NormalizeException
rawString - the raw string to normalize
NormalizeException - ErrorCode:400
public Normalizer()
throws NormalizeException
NormalizeException - ErrorCode:400| Method Detail |
|---|
public void init()
throws NormalizeException
NormalizeExceptionpublic Normalize getInstance()
public void setRawString(String rawString)
public String getNormalizedString()
public void setVersion(String normVersion)
throws NormalizeException
normVersion - the normalizer version to be use
NormalizeException - ErrorCode:400public String getVersion()
public String normalize(String rawString)
rawString - the raw string to normalize
NormalizeV01public String normalize()
NormalizeV01public String getNormCR()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||