com.github.skjolber.log.domain.model.Domain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of log-domain-codegen Show documentation
Show all versions of log-domain-codegen Show documentation
Source-code generator for log-domain yaml format.
package com.github.skjolber.log.domain.model;
import java.util.ArrayList;
import java.util.List;
public class Domain {
private String version;
private String targetPackage;
private String qualifier;
private String name;
private String description;
private List keys = new ArrayList();
private List tags = new ArrayList();
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getTargetPackage() {
return targetPackage;
}
public void setTargetPackage(String targetPackage) {
this.targetPackage = targetPackage;
}
public String getQualifier() {
return qualifier;
}
public void setQualifier(String qualifier) {
this.qualifier = qualifier;
}
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public List getKeys() {
return keys;
}
public void setKeys(List keys) {
this.keys = keys;
}
public void add(Key key) {
this.keys.add(key);
}
public void add(Tag tag) {
this.tags.add(tag);
}
public String getTargetPackageDirectory() {
return qualifier.replace('.', '/');
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean hasTags() {
return !tags.isEmpty();
}
public boolean hasQualifier() {
return qualifier != null && !qualifier.trim().isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy