JeeWiz Home

 
  
 
Contents  >   7.  GigaSystemBuilder Profile Reference
 


7.10 IntEnum Object

Used on
interface
class
javaBean
DescriptionThis is a simplified int-based enumeration, for use inside a class or interface.

You must specify one or more fields (i.e. the members of the enum) by name in the 'fields' property.

You must specify the name of the intEnum; this can then be used like any other type, by typing in the name of the .

If you do not specify the default for a field whose type is an intEnum, the default of the first of the fields will be set.

In both specifying a default in the model and in using this in an expression, for example in the template values in GigaSystemBuilder receiver, browser and subcriber model elements, then you do not need to qualify it with the name of the intEnum - this will be added if it is not present.
Inherited
properties
template (base property)

text (base property)

jwpattern (base property)

 7.10.1  Property 'access'
 7.10.2  Property 'description'
 7.10.3  Property 'fields'
 7.10.4  Property 'name'

7.10.1  Property 'access'
DescriptionSpecifies the access control for the attribute.

The default access is specifically null, so that there is no access control value placed in the code. This is necessary because the default for the access changes depending on the context.
TypeString
Choices private (default)
protected
public
Default\null

7.10.2  Property 'description'
DescriptionOptional description.

Use this to
  1. document the meaning of a particular item
  2. specify functionality at the design stage for implementation later.
TypeString

7.10.3  Property 'fields'
DescriptionYou can specify the fields as a string, comma-separated. Here are the days of the week:

SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY

You can also specify int values for the fields. You must specify int values for all the fields or none of the fields: it is an error if some fields have values and others don't.

Here are the days with specific values assigned:

SUNDAY(7), MONDAY(1), TUESDAY(2), WEDNESDAY(3), THURSDAY(4), FRIDAY(5), SATURDAY(6)

Only int values are supported in this version. If you want some type other than int's here, you will have to hand-code the enumeration as additional code in the implementation class.
TypeString
Requiredtrue

7.10.4  Property 'name'
TypeString

Copyright (c) 2001-2009 New Technology/enterprise Ltd.