Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/PoVoGenerator/Generator/src/org/litesoft/generator/GeneratePONames.java

Diff revisions: vs.
  @@ -1,46 +1,46 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.generator;
3 -
4 - import org.litesoft.aokeyhole.objects.*;
5 - import org.litesoft.codegen.*;
6 -
7 - public class GeneratePONames extends AbstractPOFileGenerator {
8 - public GeneratePONames( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, ObjectRef pObjectRef, ObjectRef pParentObjectRef, boolean pIsParent ) {
9 - super( pErrorSinc, pObjectMetaData, pObjectRef, "Names", pParentObjectRef, pIsParent );
10 - }
11 -
12 - @Override
13 - protected void LLaddImports() {
14 - addImports( //
15 - "org.litesoft.orsup.nonpublic.*", //
16 - null );
17 - }
18 -
19 - @Override
20 - protected void LLaddClassDefinition() {
21 - if ( mIsParent ) {
22 - makeClassAbstract();
23 - }
24 - addClassDefinition( mClassName, mObjectName + "NamesGO" );
25 - }
26 -
27 - @Override
28 - protected void LLaddClassBody() {
29 - if ( mIsParent ) {
30 - constructorParent();
31 - } else {
32 - constructorRegular();
33 - }
34 - addMethodEnd();
35 - }
36 -
37 - private void constructorParent() {
38 - addConstructorProtected( mClassName, "AbstractPONames pBuiltBy", "String pObjectName", "String pDatastoreName", "String pParentPath" );
39 - addLine( "super( pBuiltBy, pObjectName, pDatastoreName, pParentPath );" );
40 - }
41 -
42 - private void constructorRegular() {
43 - addConstructorPublic( mClassName, "AbstractPONames pBuiltBy", "String pParentPath" );
44 - addLine( "super( pBuiltBy, pParentPath );" );
45 - }
46 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.generator;
3 +
4 + import org.litesoft.aokeyhole.objects.*;
5 + import org.litesoft.codegen.*;
6 +
7 + public class GeneratePONames extends AbstractPOFileGenerator {
8 + public GeneratePONames( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, ObjectRef pObjectRef, ObjectRef pParentObjectRef, boolean pIsParent ) {
9 + super( pErrorSinc, pObjectMetaData, pObjectRef, "Names", pParentObjectRef, pIsParent );
10 + }
11 +
12 + @Override
13 + protected void LLaddImports() {
14 + addImports( //
15 + "org.litesoft.orsup.nonpublic.*", //
16 + null );
17 + }
18 +
19 + @Override
20 + protected void LLaddClassDefinition() {
21 + if ( mIsParent ) {
22 + makeClassAbstract();
23 + }
24 + addClassDefinition( mClassName, mObjectName + "NamesGO" );
25 + }
26 +
27 + @Override
28 + protected void LLaddClassBody() {
29 + if ( mIsParent ) {
30 + constructorParent();
31 + } else {
32 + constructorRegular();
33 + }
34 + addMethodEnd();
35 + }
36 +
37 + private void constructorParent() {
38 + addConstructorProtected( mClassName, "AbstractPONames pBuiltBy", "String pObjectName", "String pDatastoreName", "String pParentPath" );
39 + addLine( "super( pBuiltBy, pObjectName, pDatastoreName, pParentPath );" );
40 + }
41 +
42 + private void constructorRegular() {
43 + addConstructorPublic( mClassName, "AbstractPONames pBuiltBy", "String pParentPath" );
44 + addLine( "super( pBuiltBy, pParentPath );" );
45 + }
46 + }