litesoft
Diff Revisions
947
vs
948
for /trunk/Java/PoVoGenerator/Generator/src/org/litesoft/generator/GenerateVONamesGO.java
|
@@ -4,26 +4,22 @@ |
4 |
4 |
|
import org.litesoft.aokeyhole.objects.*; |
5 |
5 |
|
import org.litesoft.codegen.*; |
6 |
6 |
|
|
7 |
|
- |
public class GenerateVONamesGO extends AbstractVOFileGenerator |
8 |
|
- |
{ |
9 |
|
- |
public GenerateVONamesGO( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, DerivedObjectTuple pDerivedFromObject, ObjectRef pObjectRef, ObjectRef pParentObjectRef ) |
10 |
|
- |
{ |
|
7 |
+ |
public class GenerateVONamesGO extends AbstractVOFileGenerator { |
|
8 |
+ |
public GenerateVONamesGO( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, DerivedObjectTuple pDerivedFromObject, ObjectRef pObjectRef, |
|
9 |
+ |
ObjectRef pParentObjectRef ) { |
11 |
10 |
|
super( pErrorSinc, pObjectMetaData, pDerivedFromObject, pObjectRef, "NamesGO", pParentObjectRef ); |
12 |
11 |
|
} |
13 |
12 |
|
|
14 |
13 |
|
@Override |
15 |
|
- |
protected void LLaddClassDefinition() |
16 |
|
- |
{ |
|
14 |
+ |
protected void LLaddClassDefinition() { |
17 |
15 |
|
addInterfaceDefinition( mClassName, getExtends( "org.litesoft.bo.views.Vo" ) + "Names" ); |
18 |
16 |
|
} |
19 |
17 |
|
|
20 |
18 |
|
@Override |
21 |
|
- |
protected void LLaddClassBody() |
22 |
|
- |
{ |
|
19 |
+ |
protected void LLaddClassBody() { |
23 |
20 |
|
boolean pAddBlank = false; |
24 |
21 |
|
|
25 |
|
- |
if ( !mIsParent ) |
26 |
|
- |
{ |
|
22 |
+ |
if ( !mIsParent ) { |
27 |
23 |
|
addPSFS( "NAME", mObjectName ); |
28 |
24 |
|
pAddBlank = true; |
29 |
25 |
|
} |
|
@@ -32,8 +28,7 @@ |
32 |
28 |
|
} |
33 |
29 |
|
|
34 |
30 |
|
@Override |
35 |
|
- |
protected void LLaddAttribute( AttributeProxy pAttribute ) |
36 |
|
- |
{ |
|
31 |
+ |
protected void LLaddAttribute( AttributeProxy pAttribute ) { |
37 |
32 |
|
String zName = pAttribute.getName(); |
38 |
33 |
|
addPSFS( "a" + zName, zName ); |
39 |
34 |
|
addPSFSattributeValidOptions( pAttribute, "vo" ); |