com.thaiopensource.xml.dtd.om.NameSpecDef 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 NameSpecDef extends Def {
private final NameSpec nameSpec;
public NameSpecDef(String name, NameSpec nameSpec) {
super(name);
this.nameSpec = nameSpec;
}
public int getType() {
return NAME_SPEC_DEF;
}
public NameSpec getNameSpec() {
return nameSpec;
}
public void accept(TopLevelVisitor visitor) throws Exception {
visitor.nameSpecDef(getName(), nameSpec);
}
}