This content has been marked as final.
Show 1 reply
-
1. Re: CMP field validation
armint Feb 21, 2002 12:33 PM (in response to pazu)One thing you could do is not to expose the CMP field in the remote/local interface. Instead, implement another getter/setter and expose those methods. For example:
public abstract String getEmailAddr();
public abstract void setEmailAddr(String addr);
public String getEmailAddress()
{
return getEmailAddr();
}
public void setEmailAddress(String addr) throws SomeException
{
if(!isValid(addr)) throw new SomeException();
setEmailAddr(addr);
}
Expose the second two methods in the interface.