Class ScriptCodeGenerator
- java.lang.Object
-
- org.beangle.ems.dictionary.service.impl.ScriptCodeGenerator
-
- All Implemented Interfaces:
CodeGenerator
- Direct Known Subclasses:
SeqCodeGenerator
public class ScriptCodeGenerator extends Object implements CodeGenerator
- Version:
- $Id: ScriptCodeGenerator.java May 5, 2011 3:53:15 PM chaostone $
- Author:
- chaostone
-
-
Field Summary
Fields Modifier and Type Field Description protected bsh.Interpreterinterpreter-
Fields inherited from interface org.beangle.ems.dictionary.service.CodeGenerator
MARK, MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ScriptCodeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgen(CodeFixture fixture)根据实体类的信息,生成一个代码booleanisValidCode(String code)判断是否是合法编码voidsetUp()Stringtest(CodeFixture fixture)测试脚本
-
-
-
Method Detail
-
gen
public String gen(CodeFixture fixture)
Description copied from interface:CodeGenerator根据实体类的信息,生成一个代码- Specified by:
genin interfaceCodeGenerator
-
test
public String test(CodeFixture fixture)
Description copied from interface:CodeGenerator测试脚本- Specified by:
testin interfaceCodeGenerator
-
isValidCode
public boolean isValidCode(String code)
Description copied from interface:CodeGenerator判断是否是合法编码- Specified by:
isValidCodein interfaceCodeGenerator
-
-