public interface IPerson
{
/**
* 接口初始化
*/
IPerson eINSTANCE = Person.init();
/**
* 创建Dept
* @return Dept
*/
public Dept createDept();
}
public class Person implements IPerson
{
/**
* 初始化
* @return IPerson
*/
public static IPerson init()
{
return new Person();
}
/**
* 创建Dept
*/
@Override
public Dept createDept()
{
return new Dept();
}
}
Dept cDept = IPerson.eINSTANCE.createDept();
cDept.setD_Id(3);
cDept.setD_Name("开发"); //$NON-NLS-1$
{
/**
* 接口初始化
*/
IPerson eINSTANCE = Person.init();
/**
* 创建Dept
* @return Dept
*/
public Dept createDept();
}
public class Person implements IPerson
{
/**
* 初始化
* @return IPerson
*/
public static IPerson init()
{
return new Person();
}
/**
* 创建Dept
*/
@Override
public Dept createDept()
{
return new Dept();
}
}
Dept cDept = IPerson.eINSTANCE.createDept();
cDept.setD_Id(3);
cDept.setD_Name("开发"); //$NON-NLS-1$