package convert.relaxng.output.xsd.basic;

import convert.relaxng.edit.SourceLocation;

public class GroupDefinition extends Definition {
  private Particle particle;

  public GroupDefinition(SourceLocation location, Annotation annotation, Schema parentSchema, String name, Particle particle) {
    super(location, annotation, parentSchema, name);
    this.particle = particle;
  }

  public Particle getParticle() {
    return particle;
  }

  public void setParticle(Particle particle) {
    this.particle = particle;
  }

  public void accept(SchemaVisitor visitor) {
    visitor.visitGroup(this);
  }
}
