protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");"); methodDefinition.addLine(""); for (Enumeration tablesEnum = getTableCreator().getTableDefinitions().elements(); tablesEnum.hasMoreElements();) { TableDefinition table = (TableDefinition)tablesEnum.nextElement(); methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());"); } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. Vector descriptors = buildSortedVectorOfDescriptors(getProject().getOrderedDescriptors()); for (Enumeration descriptorsEnum = descriptors.elements(); descriptorsEnum.hasMoreElements();) { ClassDescriptor descriptor = (ClassDescriptor)descriptorsEnum.nextElement(); // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");"); methodDefinition.addLine(""); for (TableDefinition table : getTableCreator().getTableDefinitions()) { methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());"); } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");"); methodDefinition.addLine(""); for (TableDefinition table : getTableCreator().getTableDefinitions()) { methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());"); } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors()); for (ClassDescriptor descriptor : descriptors) { // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors()); for (ClassDescriptor descriptor : descriptors) { // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }