
net.sf.xmlform.config.PatternDefinition Maven / Gradle / Ivy
package net.sf.xmlform.config;
import net.sf.xmlform.util.I18NTexts;
/**
* @author Liu Zhikun
*/
public class PatternDefinition implements Cloneable {
String regex;
private I18NTexts descriptions=new I18NTexts();
public String getRegex() {
return regex;
}
public void setRegex(String regex) {
this.regex = regex;
}
public I18NTexts getDescriptions() {
return descriptions;
}
public void setDescriptions(I18NTexts descriptions) {
this.descriptions = descriptions;
}
public Object clone() {
try {
PatternDefinition cloneObj=(PatternDefinition)super.clone();
cloneObj.regex=regex;
cloneObj.descriptions=(I18NTexts)descriptions.clone();
return cloneObj;
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy