|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qriterium.dogma.Attribute
public class Attribute
Attribute is a library class that contains global attribute information. When attribute value is set from DogmaResource class methods, its type must be as following:
Nested Class Summary | |
---|---|
static class |
Attribute.Type
Possible types for attributes |
Constructor Summary | |
---|---|
Attribute()
|
Method Summary | |
---|---|
static void |
addType(java.lang.String name,
Attribute.Type type)
Calls method addType(String, Type, boolean) as boolean-parameter = false |
static void |
addType(java.lang.String name,
Attribute.Type type,
boolean isEditable)
Defines a new attribute. |
static boolean |
containsType(java.lang.String name)
|
static java.lang.Object |
getDefaultValue(java.lang.String name)
Returns default values for attribute initialization |
static java.lang.String |
getDefaultValueAsString(java.lang.String name)
|
static java.lang.String[] |
getNames()
|
static Attribute.Type |
getType(java.lang.String name)
|
static boolean |
isEditable(java.lang.String name)
|
static void |
setEditable(java.lang.String name,
boolean isEditable)
Set the editable-value for given named attribute, if that name is already in editableMap. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attribute()
Method Detail |
---|
public static void addType(java.lang.String name, Attribute.Type type, boolean isEditable)
name
- attribute nametype
- attribute typeisEditable
- editable valuepublic static void addType(java.lang.String name, Attribute.Type type)
name
- attribute nametype
- attribute typepublic static void setEditable(java.lang.String name, boolean isEditable)
name
- attribute nameisEditable
- editable valuepublic static boolean isEditable(java.lang.String name)
name
- attribute name
public static boolean containsType(java.lang.String name)
name
- attribute name
true
if name is in the type-mappingpublic static Attribute.Type getType(java.lang.String name)
name
- attribute name
public static java.lang.String[] getNames()
public static java.lang.Object getDefaultValue(java.lang.String name)
name
- attribute name
public static java.lang.String getDefaultValueAsString(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |