📄 mappingrulesconstants.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -