|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Root interface implemented by all SAND messages.
SandMessage
The methods declared in these message interfaces are implemented
using code generators, which are manually kept synchronized with these
declarations. There is currrently no mechanism for declaring tags
in these interface declarations.
| Method Summary | |
SandCollectionMessage |
getCollectionMessage()
If this message has a SandCollectionMessage verb form associated with it, then return a new instance. |
SandQueryMessage |
getQueryMessage()
If this message has a SandQueryMessage verb form associated with it, then return a new instance. |
java.lang.String |
getShortName()
Return the unqualified name of this message. |
SandStructMessage |
getStructMessage()
If this message has a SandStructMessage base form, then return a new instance. |
SandUpdateMessage |
getUpdateMessage()
If this message has a SandUpdateMessage verb form associated with it, then return a new instance. |
boolean |
isEquivalent(SandMessage other)
Field equivalence check. |
| Method Detail |
public boolean isEquivalent(SandMessage other)
equals method is used. The generated fields are ignored, because their semantics
tend to get in the way and are best handled separately. For
persistent objects, you can test for equivalent uniqueIDs,
equivalent versions etc. already.
The contents of array elements ARE checked (recursively if
necessary) without sorting. This allows for checking equivalent
tree structures and suchlike.
Since the default equals method is not overridden,
you can test for binary equivalence this way.
It is recommended that more advanced equivalence testing
involving subgroups of fields, more relaxed constraints, fuzzy
logic etc. be done outside of the object using a static
equivalence checking utility. Ditto for comparisons.
public java.lang.String getShortName()
public SandQueryMessage getQueryMessage()
public SandCollectionMessage getCollectionMessage()
public SandUpdateMessage getUpdateMessage()
public SandStructMessage getStructMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||