63 lines
1.2 KiB
Java
63 lines
1.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.uriresolvermanager.entity;
|
|
|
|
/**
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* @Oct 14, 2014
|
|
*
|
|
*/
|
|
public class ServiceProperty {
|
|
|
|
private String key;
|
|
private String defaultValue;
|
|
private boolean isMandatory;
|
|
|
|
|
|
/**
|
|
* @param key
|
|
* @param defaultValue
|
|
* @param isMandatory
|
|
*/
|
|
public ServiceProperty(String key, boolean isMandatory) {
|
|
super();
|
|
this.key = key;
|
|
this.isMandatory = isMandatory;
|
|
}
|
|
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
public String getDefaultValue() {
|
|
return defaultValue;
|
|
}
|
|
public boolean isMandatory() {
|
|
return isMandatory;
|
|
}
|
|
public void setKey(String key) {
|
|
this.key = key;
|
|
}
|
|
public void setDefaultValue(String defaultValue) {
|
|
this.defaultValue = defaultValue;
|
|
}
|
|
public void setMandatory(boolean isMandatory) {
|
|
this.isMandatory = isMandatory;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("ServiceProperty [key=");
|
|
builder.append(key);
|
|
builder.append(", defaultValue=");
|
|
builder.append(defaultValue);
|
|
builder.append(", isMandatory=");
|
|
builder.append(isMandatory);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|