com.thaiopensource.xml.dtd.om.ExternalEntityDecl 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;
import com.thaiopensource.xml.em.ExternalId;
public class ExternalEntityDecl extends TopLevel {
private final String name;
private final ExternalId externalId;
public ExternalEntityDecl(String name, ExternalId externalId) {
this.name = name;
this.externalId = externalId;
}
public int getType() {
return EXTERNAL_ENTITY_DECL;
}
public String getName() {
return name;
}
public ExternalId getExternalId() {
return externalId;
}
public void accept(TopLevelVisitor visitor) throws Exception {
visitor.externalEntityDecl(name, externalId);
}
}