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

au.org.consumerdatastandards.support.model.SectionModel Maven / Gradle / Ivy

Go to download

This artefact describes the Consumer Data Standards using Java classes and annotations in a way suitable for automatic generation of Open API Specification, documentation, Server Stub, Client Libraries and Reference Test.

There is a newer version: 1.1.1
Show newest version
package au.org.consumerdatastandards.support.model;

import au.org.consumerdatastandards.support.Section;

import java.util.Set;
import java.util.TreeSet;

public class SectionModel extends ModelBase implements Comparable {

    private final String name;

    private final String[] tags;

    private Set endpointModels = new TreeSet<>();

    public SectionModel(Section section) {

        this.name = section.name();
        this.tags = section.tags();
    }

    public String getName() {

        return name;
    }

    public String[] getTags() {

        return tags;
    }

    public Set getEndpointModels() {

        return endpointModels;
    }

    public void add(EndpointModel endpointModel) {

        endpointModels.add(endpointModel);
    }

    public void setEndpointModels(Set inputModels) {
        endpointModels = inputModels;
    }

    @Override
    public int compareTo(SectionModel sectionModel) {

        return name.compareTo(sectionModel.name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy