Search in sources :

Example 36 with Viewable

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);
        }
    }
}
Also used : Iterator(java.util.Iterator) Viewable(ch.interlis.ili2c.metamodel.Viewable) Topic(ch.interlis.ili2c.metamodel.Topic) Domain(ch.interlis.ili2c.metamodel.Domain)

Aggregations

Viewable (ch.interlis.ili2c.metamodel.Viewable)36 Iterator (java.util.Iterator)16 AttributeDef (ch.interlis.ili2c.metamodel.AttributeDef)14 IomObject (ch.interlis.iom.IomObject)13 ViewableWrapper (ch.ehi.ili2db.mapping.ViewableWrapper)11 SurfaceOrAreaType (ch.interlis.ili2c.metamodel.SurfaceOrAreaType)10 EnumerationType (ch.interlis.ili2c.metamodel.EnumerationType)9 ArrayList (java.util.ArrayList)9 CompositionType (ch.interlis.ili2c.metamodel.CompositionType)8 SurfaceType (ch.interlis.ili2c.metamodel.SurfaceType)8 ViewableTransferElement (ch.interlis.ili2c.metamodel.ViewableTransferElement)8 Topic (ch.interlis.ili2c.metamodel.Topic)7 Type (ch.interlis.ili2c.metamodel.Type)7 HashSet (java.util.HashSet)7 Ili2dbException (ch.ehi.ili2db.base.Ili2dbException)6 Model (ch.interlis.ili2c.metamodel.Model)6 ObjectType (ch.interlis.ili2c.metamodel.ObjectType)6 DbTableName (ch.ehi.sqlgen.repository.DbTableName)5 CoordType (ch.interlis.ili2c.metamodel.CoordType)5 NumericType (ch.interlis.ili2c.metamodel.NumericType)5