com.thaiopensource.xml.dtd.om.IncludedSection 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 IncludedSection extends TopLevel {
private final Flag flag;
private final TopLevel[] contents;
public IncludedSection(Flag flag, TopLevel[] contents) {
this.flag = flag;
this.contents = contents;
}
public int getType() {
return INCLUDED_SECTION;
}
public Flag getFlag() {
return flag;
}
public TopLevel[] getContents() {
TopLevel[] tem = new TopLevel[contents.length];
System.arraycopy(contents, 0, tem, 0, contents.length);
return tem;
}
public void accept(TopLevelVisitor visitor) throws Exception {
visitor.includedSection(flag, getContents());
}
}