JeeWiz Home  
The Model-Driven System Builder

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


13.7 Jwclass Object

SuperclassreferenceType
DescriptionThis defines a class. It is called 'jwclass' rather than 'class' to avoid conflict with the Java 'Class' class.
ImplementsClassSpec
Contained
Lists
1
Name  typeParameter
Type  typeParameter
Inherited from  referenceType
 
2
Name  import
Type  String
Inherited from  referenceType
 
3
Name  field
Type  field
Description  List of field members
Indexed property  name
 
4
Name  method
Type  method
Description  List of methods, including constructors, on the class.
Indexed property  name
 
5
Name  implements
Type  String
Description  Specifies the interface(s) which this class implements.
Unique  false
Validation The 'extends' property for a jwclass must name another jwclass
Inherited
properties
name from referenceType.name

description from jar.description

template from referenceType.template

jwpattern (base property)

typeDeclaration from referenceType.typeDeclaration

extends from referenceType.extends

headerComment from jar.headerComment

customerHeaderComment from jar.customerHeaderComment

package from jar.package

 13.7.1  Property 'access'
 13.7.2  Property 'annotation'
 13.7.3  Property 'abstract'
 13.7.4  Property 'static'
 13.7.5  Property 'serializable'
 13.7.6  Property 'final'
 13.7.7  Property 'text'
 13.7.8  Property 'generateLogLevel'

13.7.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.7.2  Property 'annotation'
DescriptionAn optional list, comma-separated, of Java annotations.
TypeString

13.7.3  Property 'abstract'
DescriptionThis is the 'abstract' modifier, as used on interfaces, jwclasses and methods.
Typeboolean
Defaultfalse

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

13.7.5  Property 'serializable'
DescriptionThis is the 'serializable' modifier.
Typeboolean
Defaultfalse

13.7.6  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.7.7  Property 'text'
DescriptionThe 'text' is the code insert for the body of the method - the text between the '{' and '}' brackets.

If the method has a return value, you should write the return statement too.
TypeString

13.7.8  Property 'generateLogLevel'
Overridesjwclass.generateLogLevel
DescriptionShould be a number for the trace level priority to generate code. Any lower priority traces will be filtered out at *generate* time. Most tracing mechanisms, such as log4j, can also filter traces at run-time.

The priorities are
  • 1 = Fatal
  • 2 = Error
  • 4 = Warning
  • 6 - Info
  • 8 - Debug (Fine)
  • 9 - DetailedDebug (Finest)
This is a delegated property.

The default can be set for builds by setting generateLogLevel in the build properties.
TypeString
Delegatestrue
 


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