gr.uom.java.xmi.UMLJavadoc Maven / Gradle / Ivy
package gr.uom.java.xmi;
import java.util.ArrayList;
import java.util.List;
import gr.uom.java.xmi.diff.CodeRange;
public class UMLJavadoc implements LocationInfoProvider {
private LocationInfo locationInfo;
private List tags;
public UMLJavadoc(LocationInfo locationInfo) {
this.locationInfo = locationInfo;
this.tags = new ArrayList();
}
public LocationInfo getLocationInfo() {
return locationInfo;
}
public CodeRange codeRange() {
return locationInfo.codeRange();
}
public void addTag(UMLTagElement tag) {
tags.add(tag);
}
public List getTags() {
return tags;
}
public boolean contains(String s) {
for(UMLTagElement tag : tags) {
if(tag.contains(s)) {
return true;
}
}
return false;
}
public boolean equalText(UMLJavadoc other) {
return this.tags.equals(other.tags);
}
}