JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   13.  'Java' Reference
 


13.2 Field Object

Used on
jwclass
SuperclassinterfaceField
DescriptionA field on a class.
Inherited
properties
name from namedValue.name

description from interfaceField.description

template (base property)

text from interfaceField.text

jwpattern (base property)

type from namedValue.type

annotation from interfaceField.annotation

default from interfaceField.default

 13.2.1  Property 'access'
 13.2.2  Property 'static'
 13.2.3  Property 'final'
 13.2.4  Property 'volatile'
 13.2.5  Property 'readonly'

13.2.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

13.2.2  Property 'static'
DescriptionThis is the 'static' modifier.
Typeboolean
Defaultfalse

13.2.3  Property 'final'
DescriptionThis is the Java 'final' attribute. There are two methods for reading this out, for use on a field or on a class, because these have different names in CSharp.

The generic 'getFinalText()' is used on parameters in Java.
Typeboolean
Defaultfalse

13.2.4  Property 'volatile'
DescriptionThis is the 'volatile' modifier for fields.
Typeboolean
Defaultfalse

13.2.5  Property 'readonly'
DescriptionThis is the 'readonly' modifier (which is used for fields that will be initialised once at run-time, but cannot then be set).

Read-only is a C# concept. If you are only interested in creating Java programs, you do not need to bother with read-only - use 'final' instead. (But if you are creating a definition to target C# as well as Java, you should use the "readonly" property.)
Typeboolean
Defaultfalse
 


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