Class attribute manager provides a way how to create new attributes.
More...
|
static final HashMap< String,
Class > | mapping = new HashMap<String,Class>() |
|
Class attribute manager provides a way how to create new attributes.
Class attribute manager provides a way how to create new attributes.
Definition at line 26 of file AttributeManager.java.
cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.[static initializer] |
( |
| ) |
|
|
staticpackage |
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.changeAttributeInstance |
( |
BaseAttribute |
attr | ) |
|
|
static |
Cast the right Attribute class Attention! If simpletype is some bad string, then method returns the same attribute as inserted in parameters!
- Parameters
-
attr | querried nested attribute |
- Returns
- Right class instance
Definition at line 180 of file AttributeManager.java.
static boolean cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.containsType |
( |
String |
type | ) |
|
|
static |
Returns true if String type is correct type of attribute
- Parameters
-
- Returns
- True if it can be created, false if not
Definition at line 153 of file AttributeManager.java.
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.createAttribute |
( |
| ) |
|
|
static |
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.createAttribute |
( |
String |
name, |
|
|
String |
simpleType, |
|
|
Annotation |
refAnnotation |
|
) |
| throws ClassNotFoundException |
|
static |
Creates new empty attribute
- Parameters
-
name | Name of attribute |
simpleType | Name of simple type of attribute |
refAnnotation | Annotation to which this attribute belongs |
- Returns
- Returns new empty attribute
Definition at line 105 of file AttributeManager.java.
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.createAttribute |
( |
String |
name, |
|
|
String |
simpleType, |
|
|
Object |
value, |
|
|
Annotation |
refAnnotation |
|
) |
| throws ClassNotFoundException |
|
static |
Creates new attribute
- Parameters
-
name | Name of attribute |
simpleType | Name of simple type of attribute |
value | Value of attribute according to its type. For example, if type is Date then value is expected to be a date. |
refAnnotation | Annotation to which this attribute belongs |
- Returns
- Returns new attribute
Definition at line 122 of file AttributeManager.java.
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.createAttribute |
( |
String |
name, |
|
|
String |
simpleType, |
|
|
AnnotType |
attributeType, |
|
|
Object |
value, |
|
|
Annotation |
refAnnotation |
|
) |
| throws ClassNotFoundException |
|
static |
Creates a new Attribute with structured type. (For example with nested annotation)
- Parameters
-
name | Name of attribute |
simpleType | Name of simple type of attribute |
attributeType | Structured type of attribute (type of annotation) |
value | Nested value. Usually nested annotation |
refAnnotation | Annotation to which this attribute belongs |
- Returns
- Returns new attribute of structured type
Definition at line 141 of file AttributeManager.java.
static BaseAttribute cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.createObject |
( |
String |
type | ) |
throws ClassNotFoundException |
|
staticprivate |
Creates a new instance according to type
- Parameters
-
- Returns
- Returns a new instance of appropriate class
Definition at line 86 of file AttributeManager.java.
static boolean cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.hasAttributeRightInstance |
( |
BaseAttribute |
attr | ) |
|
|
static |
Returns true if attr has the right class instance of it's simpletype
- Parameters
-
- Returns
- True if simpletype matches the class instance, false otherwise
Definition at line 163 of file AttributeManager.java.
final HashMap<String,Class> cz.vutbr.fit.knot.annotations.entity.attribute.AttributeManager.mapping = new HashMap<String,Class>() |
|
staticprivate |
The documentation for this class was generated from the following file: