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

org.forkjoin.apikit.Context Maven / Gradle / Ivy

package org.forkjoin.apikit;

import org.forkjoin.apikit.info.ApiInfo;
import org.forkjoin.apikit.info.MessageInfo;
import org.forkjoin.apikit.info.ModuleInfo;
import org.forkjoin.apikit.info.PackageInfo;

/**
 *
 */
public class Context {
    protected PackageInfo messages = new PackageInfo<>();
    protected PackageInfo apis = new PackageInfo<>();


    private String path;
    private String rootPackage;

    public void add(ModuleInfo m) {
        if (m instanceof MessageInfo) {
            messages.add(m.getPackageName(), (MessageInfo) m);
        } else if (m instanceof ApiInfo) {
            apis.add(m.getPackageName(), (ApiInfo) m);
        }
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRootPackage() {
        return rootPackage;
    }

    public void setRootPackage(String rootPackage) {
        this.rootPackage = rootPackage;
    }

    public PackageInfo getApis() {
        return apis;
    }

    public PackageInfo getMessages() {
        return messages;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy