|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface which specifies the methods all OpenEAI EnterpriseScubber objects must implement. These scrubbers are associated to a particular field in the EnterpriseObjects document. When a setter method is called for a particular field, the EnterpriseFields object associated to that field, uses it's EnterpriseFormatter which may contain one or more EnterpriseScrubber implementations that are then used to "scrub" the data being passed to the setter method according to the rules of that scrubber implementation.
EnterpriseFields,
EnterpriseFormatter| Method Summary | |
int |
getSequence()
Method is used by the EnterpriseFields object to determine in what order scrubbers should be executed if a field has more than one scrubber associated to it. |
java.lang.String |
scrub(java.lang.String value)
Method used to "scrub" in input value and return some other version of that value. |
void |
setSequence(int sequence)
Method is used to establish an order inwhich scrubbers should be executed if a field has more than one scrubber associated to it. |
| Method Detail |
public java.lang.String scrub(java.lang.String value)
throws EnterpriseScrubberException
If a field has a scrubber implementation associated to it, this method will be called on that scrubber implementation when data is set on the field in an object's setter method for that field. This is automatically done when the 'getEnterpriseValue(...)' method is called in the setter method. The value being set on the field, is first run through the EnterpriseFields object that all XmlEnterpriseObjects inherit. At that point, the data will be scrubbed using the scrubber implementation associated to the field in the EnterpriseObjects document.
As mentioned below, depending on how many scrubbers a field has associated to it and in what order they're specified, there may be more than one scrubber implementation executed on a field.
EnterpriseScrubberException - if any errors occur scrubbing the input.EnterpriseFields,
EnterpriseFormatterpublic void setSequence(int sequence)
public int getSequence()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||