Class IFlattener.FlattenedFormChecker
java.lang.Object
uk.ac.diamond.scisoft.analysis.rpc.flattening.IFlattener.FlattenedFormChecker
- Enclosing interface:
IFlattener<T>
Specification of legal form for flattened objects. flatten must return an object which will return true when
passed to
legal(Object).
When a flattened form object is passed to IFlattener.canUnFlatten(Object) or
IFlattener.canUnFlatten(Object) the guarantee is that the Key is of type String. Therefore it is
safe to add @SuppressWarnings("unchecked") in a case like this:
public boolean canUnFlatten(Object obj) {
if (obj instanceof Map) {
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FlattenedFormChecker
public FlattenedFormChecker()
-
-
Method Details
-
legal
Make sure the flattened object contains only legal types for XML RPC transmission.- Parameters:
flat- the flattened object- Returns:
- true if the flat object is legal
-