public class ObjectMatcher extends Object
package description| Modifier and Type | Method and Description |
|---|---|
static ObjectMatcher |
and(ObjectMatcher m1,
ObjectMatcher m2)
Creates a matcher that matches all of the given ones.
|
static ObjectMatcher |
cuidIs(String... cuids)
Creates a matcher that matches object(s) of any given cuid.
|
static ObjectMatcher |
idIs(Integer... ids)
Creates a matcher that matches object(s) of any given id.
|
static ObjectMatcher |
isInstance(boolean state)
Creates a matcher that matches or rejects instance (s).
|
static ObjectMatcher |
isInstanceObject(boolean state)
Creates a matcher that matches or rejects instance object(s).
|
static ObjectMatcher |
kindIs(String... kinds)
Creates a matcher that matches object(s) of any given kind.
|
static ObjectMatcher |
nameIs(String... names)
Creates a matcher that matches object(s) of any given name.
|
static ObjectMatcher |
not(ObjectMatcher m)
Creates a matcher that negates given one.
|
static ObjectMatcher |
or(ObjectMatcher m1,
ObjectMatcher m2)
Creates a matcher that matches any of the given ones.
|
static ObjectMatcher |
parentCuidIs(String... cuids)
Creates a matcher that matches object(s) whose parent is of any given cuid.
|
static ObjectMatcher |
parentIdIs(Integer... ids)
Creates a matcher that matches object(s) whose parent is of any given id.
|
public static ObjectMatcher not(ObjectMatcher m)
m - matcher to be negatedpublic static ObjectMatcher or(ObjectMatcher m1, ObjectMatcher m2)
m1 - first matcherm2 - second matcherpublic static ObjectMatcher and(ObjectMatcher m1, ObjectMatcher m2)
m1 - first matcherm2 - second matcherpublic static ObjectMatcher nameIs(String... names) throws com.businessobjects.lcm.utilities.LCMException
names - name candidate listcom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher kindIs(String... kinds) throws com.businessobjects.lcm.utilities.LCMException
kinds - kind candidate listcom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher cuidIs(String... cuids) throws com.businessobjects.lcm.utilities.LCMException
cuids - cuid candidate listcom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher idIs(Integer... ids) throws com.businessobjects.lcm.utilities.LCMException
ids - id candidate listcom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher isInstance(boolean state) throws com.businessobjects.lcm.utilities.LCMException
state - desired instance statecom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher isInstanceObject(boolean state) throws com.businessobjects.lcm.utilities.LCMException
state - desired instance object statecom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher parentCuidIs(String... cuids) throws com.businessobjects.lcm.utilities.LCMException
cuids - parent cuid candidate listcom.businessobjects.lcm.utilities.LCMException - in case of errorpublic static ObjectMatcher parentIdIs(Integer... ids) throws com.businessobjects.lcm.utilities.LCMException
ids - parent id candidate listcom.businessobjects.lcm.utilities.LCMException - in case of error