4A Server -
2.0
|
Attribute manager provides a way how to create new attributes for prupose of suggestion. More...
Static Public Member Functions | |
static SugBaseAttribute | createAttribute () |
static SugBaseAttribute | createAttribute (String name, String simpleType, Suggestion refSuggestion) throws ClassNotFoundException |
static SugBaseAttribute | createAttribute (String name, String simpleType, Object value, Suggestion refSuggestion) throws ClassNotFoundException |
static SugBaseAttribute | createAttribute (String name, String simpleType, AnnotType attributeType, Object value, Suggestion refSuggestion) throws ClassNotFoundException |
static boolean | containsType (String type) |
static boolean | hasAttributeRightInstance (SugBaseAttribute attr) |
static SugBaseAttribute | changeAttributeInstance (SugBaseAttribute attr) |
Static Package Functions | |
[static initializer] | |
Static Private Member Functions | |
static SugBaseAttribute | createObject (String type) throws ClassNotFoundException |
Static Private Attributes | |
static final HashMap< String, Class > | mapping = new HashMap<String,Class>() |
Attribute manager provides a way how to create new attributes for prupose of suggestion.
Attribute manager provides a way how to create new attributes for prupose of suggestion.
Definition at line 28 of file SugAttributeManager.java.
|
staticpackage |
|
static |
Cast the right Attribute class Attention! If simpletype is some bad string, then method returns the same attribute as inserted in parameters!
attr | querried nested attribute |
Definition at line 177 of file SugAttributeManager.java.
|
static |
Returns true if String type is correct type of attribute
type | Type of attribute |
Definition at line 150 of file SugAttributeManager.java.
|
static |
Constructor
Definition at line 32 of file SugAttributeManager.java.
|
static |
Creates new empty attribute
name | Name of attribute |
simpleType | Name of simple type of attribute |
refSuggestion | Suggestion to which this attribute belongs |
Definition at line 102 of file SugAttributeManager.java.
|
static |
Creates new attribute
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. |
refSuggestion | Suggestion to which this attribute belongs |
Definition at line 119 of file SugAttributeManager.java.
|
static |
Creates a new Attribute with structured type. (For example with nested annotation)
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 |
refSuggestion | Suggestion to which this attribute belongs |
Definition at line 138 of file SugAttributeManager.java.
|
staticprivate |
Creates a new instance according to type
type | Type of new instance |
Definition at line 77 of file SugAttributeManager.java.
|
static |
Returns true if attr has the right class instance of it's simpletype
attr | Attribute for check |
Definition at line 160 of file SugAttributeManager.java.
|
staticprivate |
Mapping of types of attributes to classes
Definition at line 37 of file SugAttributeManager.java.