Microsoft SDK for Java

AttDef Class Constructors

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)

AttDef(Name name, int type)

Constructs a new object for the given attribute type.

Syntax

AttDef(Name name, int type);

Parameters

name The name of the attribute.
type The attribute type.

AttDef(Name name, int type, Vector values)

Constructs a new object for the given attribute type and array of possible values.

Syntax

AttDef(Name name, int type, Vector values);

Parameters

name The name of the attribute.
type The attribute type.
values The possible values.

AttDef(Name name, int type, Object def, int presence)

Constructs a new object for the given attribute type, default value, and presence flag.

Syntax

AttDef(Name name, int type, Object def, int presence);

Parameters

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


AttDef(Name name, int type, Object def, int presence, Vector values)

Constructs a new object for the given attribute type, default value, presence flag, and range of possible values.

Syntax

AttDef(Name name, int type, Object def, int presence, Vector values);

Parameters

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.