All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.constant.description.ConstantClassDescription Maven / Gradle / Ivy

The newest version!

package cn.featherfly.constant.description;

import java.util.ArrayList;
import java.util.List;

/**
 * 

* 常量类的描述信息 *

* * @author 钟冀 */ public class ConstantClassDescription { /** * 构造函数 * @param name 名称 * @param descp 描述 * @param constantClass 常量类类型 */ public ConstantClassDescription(String name, String descp, Class constantClass) { this.name = name; this.descp = descp; this.constantClass = constantClass; } /** *

* 添加constantDescription *

* @param constantDescription constantDescription */ public void addConstantDescription(ConstantDescription constantDescription) { constantDescriptions.add(constantDescription); } private String name; private String descp; private Class constantClass; private List constantDescriptions = new ArrayList(); /** * 返回name * @return name */ public String getName() { return name; } /** * 返回descp * @return descp */ public String getDescp() { return descp; } /** * 返回constantClass * @return constantClass */ public Class getConstantClass() { return constantClass; } /** * 返回constantDescriptions * @return constantDescriptions */ public List getConstantDescriptions() { return new ArrayList(constantDescriptions); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy