Search in sources :

Example 1 with UsedLayersDescriptor

use of org.qi4j.api.structure.UsedLayersDescriptor in project qi4j-sdk by Qi4j.

the class LayerModelFormatter method enter.

@Override
public void enter(LayerDescriptor visited) throws JSONException {
    object();
    field("name", visited.name());
    array("uses");
    UsedLayersDescriptor usedLayersDescriptor = visited.usedLayers();
    for (LayerDescriptor used : usedLayersDescriptor.layers()) {
        value(used.name());
    }
    endArray();
    array("modules");
}
Also used : UsedLayersDescriptor(org.qi4j.api.structure.UsedLayersDescriptor) LayerDescriptor(org.qi4j.api.structure.LayerDescriptor)

Aggregations

LayerDescriptor (org.qi4j.api.structure.LayerDescriptor)1 UsedLayersDescriptor (org.qi4j.api.structure.UsedLayersDescriptor)1