com.thaiopensource.relaxng.output.xsd.basic.Annotation 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.relaxng.output.xsd.basic;
import com.thaiopensource.util.Equal;
public class Annotation {
private final String documentation;
public Annotation(String documentation) {
this.documentation = documentation;
}
public String getDocumentation() {
return documentation;
}
public boolean equals(Object obj) {
return obj instanceof Annotation && Equal.equal(documentation, ((Annotation)obj).documentation);
}
public int hashCode() {
if (documentation != null)
return documentation.hashCode();
return Annotation.class.hashCode();
}
}