The AttDef class contains the following constructors:
AttDef(Name name, int type)
AttDef(Name name, int type, Vector values)
AttDef(Name name, int type, Object def, int presence)
AttDef(Name name, int type, Object def, int presence, Vector values)
Constructs a new object for the given attribute type.
AttDef(Name name, int type);
name | The name of the attribute. |
type | The attribute type. |
Constructs a new object for the given attribute type and array of possible values.
AttDef(Name name, int type, Vector values);
name | The name of the attribute. |
type | The attribute type. |
values | The possible values. |
Constructs a new object for the given attribute type, default value, and presence flag.
AttDef(Name name, int type, Object def, int presence);
name | The name of the attribute. |
type | The attribute type. |
def | The default value of the attribute. |
presence | Specifies the presence value of the attribute. Values are as follows:
DEFAULT = 0 REQUIRED = 1 IMPLIED = 2 FIXED = 3 |
Constructs a new object for the given attribute type, default value, presence flag, and range of possible values.
AttDef(Name name, int type, Object def, int presence, Vector values);
name | The name of the attribute. |
type | The attribute type. |
def | The default value of the attribute. |
presence | Specifies the presence type of the attribute. Values are as follows:
DEFAULT = 0 REQUIRED = 1 IMPLIED = 2 FIXED = 3 |
values | The possible attribute values. |