Python Script Engine  7.0
GL Studio Editor Python Script API
UserDefinedAttribute Class Reference

Public Types

enum  AttribAvailableType_e {
  UNUSED_AVAILABILTY,
  OPTIONAL_AVAILABILTY,
  MANDATORY_AVAILABILTY,
  AVAILABLE_AVAILABILTY
}
 

Public Member Functions

 UserDefinedAttribute (String name, AttribAvailableType_e methodAvail=UNUSED_AVAILABILTY, AttribAvailableType_e objAvail=UNUSED_AVAILABILTY, AttribAvailableType_e propAvail=UNUSED_AVAILABILTY)
 
String GetName ()
 
void SetName (String name)
 
AttribAvailableType_e GetMethodAvailability ()
 
void SetMethodAvailability (AttribAvailableType_e avail)
 
AttribAvailableType_e GetObjectAvailability ()
 
void SetObjectAvailability (AttribAvailableType_e avail)
 
AttribAvailableType_e GetPropertyAvailability ()
 
void SetPropertyAvailability (AttribAvailableType_e avail)
 

Detailed Description

common editor interface variable

Member Enumeration Documentation

Enumerator
UNUSED_AVAILABILTY 

Attribute is unavailable.

OPTIONAL_AVAILABILTY 

Attribute is optional.

MANDATORY_AVAILABILTY 

Attribute is mandatory.

AVAILABLE_AVAILABILTY 

Attribute is available.

Constructor & Destructor Documentation

UserDefinedAttribute::UserDefinedAttribute ( String  name,
AttribAvailableType_e  methodAvail = UNUSED_AVAILABILTY,
AttribAvailableType_e  objAvail = UNUSED_AVAILABILTY,
AttribAvailableType_e  propAvail = UNUSED_AVAILABILTY 
)

Creates a User Defined Attribute with the given information set.

Parameters
nameName of new user defined attribute
methodAvailavailablity of the attribute within methods
objAvailavailablity of the attribute within objects
propAvailavailablity of the attribute within properties

Member Function Documentation

AttribAvailableType_e UserDefinedAttribute::GetMethodAvailability ( )

Retrieves the attribute's method availability.

Returns
AttribAvailableType_e containing the availability of the attribute within methods
String UserDefinedAttribute::GetName ( )

Retrieves the attribute's name.

Returns
String containing the name of the attribute
AttribAvailableType_e UserDefinedAttribute::GetObjectAvailability ( )

Retrieves the attribute's object availability.

Returns
AttribAvailableType_e containing the availability of the attribute within objects
AttribAvailableType_e UserDefinedAttribute::GetPropertyAvailability ( )

Retrieves the attribute's method availability.

Returns
AttribAvailableType_e containing the name of the attribute within properties
void UserDefinedAttribute::SetMethodAvailability ( AttribAvailableType_e  avail)

Sets the attribute's method availability.

Parameters
availNew availability of the attribute within methods
void UserDefinedAttribute::SetName ( String  name)

Sets the attribute's name.

Parameters
nameNew name of attribute
void UserDefinedAttribute::SetObjectAvailability ( AttribAvailableType_e  avail)

Sets the attribute's method availability.

Parameters
availNew availability of the attribute within objects
void UserDefinedAttribute::SetPropertyAvailability ( AttribAvailableType_e  avail)

Sets the attribute's method availability.

Parameters
availNew availability of the attribute within properties

The documentation for this class was generated from the following file: