mappingrulesconstants.java
来自「高质量Java程序设计 源代码」· Java 代码 · 共 28 行
JAVA
28 行
package net.betterjava.sample.xml.bind;
/**
* A constant class, the constant is singleton instancd of itself, so you can use
* equation to compare them, no need use equals() method.
* At this point, the constant only map to the simple type, but in the future, you can add more
* constants used to control more complex element creation.
*/
public class MappingRulesConstants {
private final String name;
public static final MappingRulesConstants NO_MAPPING_VALUE =
new MappingRulesConstants("NO_MAPPING_VALUE");
public static final MappingRulesConstants SINGLE_VALUE =
new MappingRulesConstants("SINGLE_VALUE");
public static final MappingRulesConstants MULTIPLE_VALUE =
new MappingRulesConstants("MULTIPLE_VALUE");
public static final MappingRulesConstants CONTROL_VALUE =
new MappingRulesConstants("CONTROL_VALUE");
public static final MappingRulesConstants PAGE_START =
new MappingRulesConstants("PAGE_START");
/**
* @roseuid 3CE9346B0006
*/
private MappingRulesConstants(String name) {
this.name = name;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?