1
package com.thaiopensource.relaxng.output.xsd.basic;
3
import com.thaiopensource.relaxng.edit.SourceLocation;
5
public class ParticleRepeat extends Particle {
6
private final Particle child;
7
private final Occurs occurs;
9
public ParticleRepeat(SourceLocation location, Annotation annotation, Particle child, Occurs occurs) {
10
super(location, annotation);
15
public Particle getChild() {
19
public Occurs getOccurs() {
23
public <T> T accept(ParticleVisitor<T> visitor) {
24
return visitor.visitRepeat(this);
27
public boolean equals(Object obj) {
28
if (!super.equals(obj))
30
ParticleRepeat other = (ParticleRepeat)obj;
31
return this.child.equals(other.child) && this.occurs.equals(other.occurs);
34
public int hashCode() {
35
return super.hashCode() ^ child.hashCode() ^ occurs.hashCode();