use of ch.interlis.ili2c.metamodel.Viewable in project ili2db by claeis.
the class ModelElementSelector method visitModel.
private void visitModel(HashSet<Element> accu, HashSet<Model> accuScope, Model model) {
if (model.equals(td.INTERLIS)) {
visitDomain(accu, accuScope, td.INTERLIS.BOOLEAN);
visitDomain(accu, accuScope, td.INTERLIS.HALIGNMENT);
visitDomain(accu, accuScope, td.INTERLIS.VALIGNMENT);
return;
}
Iterator topici = model.iterator();
while (topici.hasNext()) {
Object tObj = topici.next();
if (tObj instanceof Topic) {
Topic topic = (Topic) tObj;
visitTopic(accu, accuScope, topic);
} else if (tObj instanceof Viewable) {
visitViewable(accu, accuScope, (Viewable) tObj);
} else if (tObj instanceof Domain) {
visitDomain(accu, accuScope, (Domain) tObj);
}
}
}
Aggregations