All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.xml.dtd.om.IncludedSection Maven / Gradle / Ivy

There is a newer version: 20220510
Show newest version
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());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy