public class ClassRules extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClassRules.Detail
Represents a detail to retrieve for a given class.
|
Modifier and Type | Field and Description |
---|---|
static String |
REFERENCE_ALWAYS
Value for the reference directive, to always create references.
|
static String |
REFERENCE_NEVER
Value for the reference directive, to never create references.
|
Modifier and Type | Method and Description |
---|---|
static void |
addRule(String className,
String rule,
Object value)
Adds a specific class rule.
|
static boolean |
alwaysReference(ClassObject co)
Returns whether to always add a reference (and add the object to the
reference cache) for objects of the given class type.
|
static String |
getAction(ClassObject co)
Returns the action for a given class.
|
static ClassRules.Detail[] |
getDetails(ClassObject co)
Returns the details to retrieve for the given class.
|
static String |
getReference(ClassObject co)
Returns the reference directive for a given class.
|
static String |
getUniqueAttribute(ClassObject co)
Returns the unique attribute for the given class, if any.
|
static boolean |
neverReference(ClassObject co)
Returns whether to never add a referencefor objects of the given class
type.
|
public static final String REFERENCE_ALWAYS
Value: always
public static final String REFERENCE_NEVER
Value: never
public static String getAction(ClassObject co) throws IfsException
co
- the classnull
if there is no specific action
for the given classIfsException
- if the operation failspublic static String getReference(ClassObject co) throws IfsException
co
- the classnull
if there is no reference
directiveIfsException
public static boolean alwaysReference(ClassObject co) throws IfsException
co
- the classtrue
if a reference should always be added,
false
otherwise.IfsException
- if the operation failspublic static boolean neverReference(ClassObject co) throws IfsException
co
- the classtrue
if a reference should never be added,
false
otherwise.IfsException
- if the operation failspublic static String getUniqueAttribute(ClassObject co) throws IfsException
co
- the classnull
if none was definedIfsException
- if the operation failspublic static ClassRules.Detail[] getDetails(ClassObject co) throws IfsException
co
- the classIfsException
- if the operation failsCopyright © 2023. All rights reserved.