com.thaiopensource.xml.dtd.om.NameSpecRef 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
Trang, a multi-format schema converter based on RELAX NG.
package com.thaiopensource.xml.dtd.om;
public class NameSpecRef extends NameSpec {
private final String name;
private final NameSpec nameSpec;
public NameSpecRef(String name, NameSpec nameSpec) {
this.name = name;
this.nameSpec = nameSpec;
}
public int getType() {
return NAME_SPEC_REF;
}
public String getName() {
return name;
}
public NameSpec getNameSpec() {
return nameSpec;
}
public void accept(NameSpecVisitor visitor) throws Exception {
visitor.nameSpecRef(name, nameSpec);
}
public String getValue() {
return nameSpec.getValue();
}
}