use of org.eclipse.wst.dtd.core.internal.emf.util.DTDVisitor in project webtools.sourceediting by eclipse.
the class DTDElementImpl method getReferences.
// returns all references in the same DTDFile that reference this element
public Collection getReferences() {
DTDFile file = getDTDFile();
final Collection result = new ArrayList();
DTDVisitor visitRefs = new DTDVisitor() {
public void visitDTDElementReferenceContent(DTDElementReferenceContent elementReferenceContent) {
if (elementReferenceContent.getReferencedElement() == DTDElementImpl.this) {
result.add(elementReferenceContent);
}
// end of if ()
}
};
visitRefs.visitDTDFile(file);
return result;
}
Aggregations