com.thaiopensource.relaxng.edit.ValuePattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Jing/Trang - tools for validating and translating RelaxNG
The newest version!
package com.thaiopensource.relaxng.edit;
import java.util.Map;
import java.util.HashMap;
public class ValuePattern extends Pattern {
private String datatypeLibrary;
private String type;
private String value;
private final Map prefixMap = new HashMap();
public ValuePattern(String datatypeLibrary, String type, String value) {
this.datatypeLibrary = datatypeLibrary;
this.type = type;
this.value = value;
}
public String getDatatypeLibrary() {
return datatypeLibrary;
}
public void setDatatypeLibrary(String datatypeLibrary) {
this.datatypeLibrary = datatypeLibrary;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public boolean mayContainText() {
return true;
}
public Map getPrefixMap() {
return prefixMap;
}
public T accept(PatternVisitor visitor) {
return visitor.visitValue(this);
}
}