public class AttributeUtils extends Object
Attribute| Constructor and Description |
|---|
AttributeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CaseComponent |
findBelongingComponent(Attribute at,
CaseComponent cc)
Finds the belonging component of an attribute.
|
static CaseComponent |
findBelongingComponent(Attribute at,
CBRCase c)
Similar to findBelongingComponent(Attribute, CaseComponent) as a CBRCase is a CaseComponent.
|
static CaseComponent |
findBelongingComponent(Attribute at,
CBRQuery q)
Similar to findBelongingComponent(Attribute, CaseComponent) as a CBRQuery is a CaseComponent.
|
static Object |
findValue(Attribute at,
CaseComponent cc)
Returns the value of an Attribute in a CaseComponent object.
|
static Object |
findValue(Attribute at,
CBRCase c)
Finds the value of an Attribute in a CBRCase object.
|
static Object |
findValue(Attribute at,
CBRQuery query)
Finds the value of an Attribute in a CBRQuery object.
|
static List<Attribute> |
getAttributes(CaseComponent cc)
Returns the list of attributes of a CaseComponents and all its sub-caseComponents.
|
static Collection<Attribute> |
getAttributes(CaseComponent cc,
Class<?> _class)
Returns the list of attributes of a CaseComponents and all its sub-caseComponents which values are instance of a given class
|
static Attribute[] |
getAttributes(Class<?> c)
Returns the list of attributes of a class.
|
static void |
setValue(Attribute at,
CaseComponent cc,
Object value)
Returns the value of an Attribute in a CaseComponent object.
|
static void |
setValue(Attribute at,
CBRCase c,
Object value)
Finds the value of an Attribute in a CBRCase object.
|
static void |
setValue(Attribute at,
CBRQuery query,
Object value)
Finds the value of an Attribute in a CBRQuery object.
|
public AttributeUtils()
public static Attribute[] getAttributes(Class<?> c)
public static List<Attribute> getAttributes(CaseComponent cc)
public static Collection<Attribute> getAttributes(CaseComponent cc, Class<?> _class)
public static CaseComponent findBelongingComponent(Attribute at, CaseComponent cc)
public static CaseComponent findBelongingComponent(Attribute at, CBRQuery q)
public static CaseComponent findBelongingComponent(Attribute at, CBRCase c)
public static Object findValue(Attribute at, CaseComponent cc)
public static Object findValue(Attribute at, CBRQuery query)
public static Object findValue(Attribute at, CBRCase c)
public static void setValue(Attribute at, CaseComponent cc, Object value)
public static void setValue(Attribute at, CBRQuery query, Object value)
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.