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

com.aeontronix.enhancedmule.tools.runtime.Target Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2020
 */

package com.aeontronix.enhancedmule.tools.runtime;

import java.util.List;

public class Target {
    private String id;
    private String name;
    private String type;
    private List runtimes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Runtime findRuntimeByType(String type) {
        if( runtimes != null ) {
            for (Runtime runtime : runtimes) {
                if( type.equals(runtime.type) ) {
                    return runtime;
                }
            }
        }
        return null;
    }

    public List getRuntimes() {
        return runtimes;
    }

    public void setRuntimes(List runtimes) {
        this.runtimes = runtimes;
    }

    public static class Runtime {
        private String type;
        private List versions;

        public Runtime() {
        }

        public Runtime(String type, List versions) {
            this.type = type;
            this.versions = versions;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List getVersions() {
            return versions;
        }

        public void setVersions(List versions) {
            this.versions = versions;
        }
    }

    public static class RuntimeVersion {
        private String baseVersion;
        private String tag;

        public RuntimeVersion() {
        }

        public RuntimeVersion(String baseVersion) {
            this.baseVersion = baseVersion;
        }

        public String getBaseVersion() {
            return baseVersion;
        }

        public void setBaseVersion(String baseVersion) {
            this.baseVersion = baseVersion;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy