au.org.consumerdatastandards.support.model.SectionModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-model Show documentation
Show all versions of api-model Show documentation
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.
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