All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pub.codex.apix.doc.DocDocument Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package pub.codex.apix.doc;

import pub.codex.apix.schema.ApiListing;
import pub.codex.apix.schema.Documentation;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 文档包装类
 */
public class DocDocument {


    private List controller = new ArrayList<>();


    public List getController() {
        return controller;
    }

    public void setController(List controller) {
        this.controller = controller;
    }


    public DocDocument(Documentation documentation) {

        Set apiListings = documentation.getApiListings().keySet();
        for (String apiListingsKey : apiListings) {
            Collection collection = documentation.getApiListings().get(apiListingsKey);
            collection.forEach(apiListing -> {
                controller.add(new ControllerDocument(apiListingsKey, apiListing.getApis()));
            });
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy