litesoft
@ 947
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
package org.litesoft.aokeyhole.swing.mains.mementobeans; import org.litesoft.core.simpletypes.*; public class FormsDataTextFile extends TextFile { public static final TextFile INSTANCE = new FormsDataTextFile(); private FormsDataTextFile() { super( "FormsData.java", // "// This Source Code is in the Public Domain per: http://unlicense.org", "package com.richasp.samplestarter.mobile.client.views.forms.memo;", "", "import org.litesoft.core.util.externalization.*;", "", "public class FormsData extends AbstractFormsData", "{", " public FormsData()", " {", " }", "", " public FormsData( FormsData pOrig )", " {", " super( pOrig );", " }", "", " public E13nData validate()", " {", " if ( null != getJobTitle() )", " {", " if ( (getFirstName() == null) && (getLastName() == null) )", " {", " return new E13nData( \"NoContactName\" );", " }", " }", " return null;", " }", "}" ); } } |