| java.lang.Object com.triactive.jdo.sco.SCOHelper
SCOHelper | class SCOHelper (Code) | | Contains static methods to help mutable SCO classes.
Because SCO classes must inherit from specific base classes they cannot
share this code via inheritance.
author: Mike Martin version: $Revision: 1.1 $ |
assertAllValidElements | public static void assertAllValidElements(SCOCollection c, Collection elements)(Code) | | Asserts that a group of elements are all valid for storage in the
specified SCO collection.
exception: IllegalArgumentsException - If one or more of the elements are not valid. |
assertAllValidEntries | public static void assertAllValidEntries(SCOMap m, Map entries)(Code) | | Asserts that all the entries of a map are valid for storage in the
specified SCO map.
exception: IllegalArgumentsException - If one or more of the entries are not valid. |
assertIsValidElement | public static void assertIsValidElement(SCOCollection c, Object element)(Code) | | Asserts that an element is valid for storage in the specified SCO
collection.
exception: SCOException - If the element is not valid. |
assertIsValidKey | public static void assertIsValidKey(SCOMap m, Object key)(Code) | | Asserts that a key is valid for storage in the specified SCO map.
exception: SCOException - If the key is not valid. |
assertIsValidValue | public static void assertIsValidValue(SCOMap m, Object value)(Code) | | Asserts that a value is valid for storage in the specified SCO map.
exception: SCOException - If the value is not valid. |
isValidElement | public static boolean isValidElement(SCOCollection c, Object element)(Code) | | Tests if an element is valid for storage in the specified SCO collection.
true if the element valid,false otherwise. |
isValidKey | public static boolean isValidKey(SCOMap m, Object key)(Code) | | Tests if a key is valid for storage in the specified SCO map.
true if the key valid,false otherwise. |
isValidValue | public static boolean isValidValue(SCOMap m, Object value)(Code) | | Tests if a value is valid for storage in the specified SCO map.
true if the value valid,false otherwise. |
toLogString | public static String toLogString(SCO sco)(Code) | | Returns a string representation of an SCO object suitable for use in an
exception or a log message.
A string representation of the SCO for logging purposes. |
|
|