Search in sources :

Example 1 with SimpleType

use of nl.tue.buildingsmart.schema.SimpleType in project BIMserver by opensourceBIM.

the class Express2EMF method addSimpleTypes.

private void addSimpleTypes() {
    Iterator<DefinedType> typeIter = schema.getTypes().iterator();
    while (typeIter.hasNext()) {
        DefinedType type = typeIter.next();
        if (type.getDomain() instanceof SimpleType) {
            EClass testType = getOrCreateEClass(type.getName());
            testType.getEAnnotations().add(createWrappedAnnotation());
            modifySimpleType(type, testType);
        }
    }
}
Also used : SimpleType(nl.tue.buildingsmart.schema.SimpleType) EClass(org.eclipse.emf.ecore.EClass) DefinedType(nl.tue.buildingsmart.schema.DefinedType)

Aggregations

DefinedType (nl.tue.buildingsmart.schema.DefinedType)1 SimpleType (nl.tue.buildingsmart.schema.SimpleType)1 EClass (org.eclipse.emf.ecore.EClass)1