You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ws-thredds-sync-widget/src/main/java/org/gcube/portlets/widgets/wsthreddssync/shared/GcubeScope.java

142 lines
2.4 KiB
Java

package org.gcube.portlets.widgets.wsthreddssync.shared;
import java.io.Serializable;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* The Class GcubeScope.
*
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
*
* Aug 2, 2019
*/
public class GcubeScope implements Serializable, IsSerializable, Comparable<GcubeScope> {
/**
*
*/
private static final long serialVersionUID = -6427520549519606384L;
private GcubeScopeType scopeType;
private String scopeTitle;
private String scopeName;
/**
* Instantiates a new gcube VRE.
*/
public GcubeScope() {
}
/**
* Instantiates a new gcube scope.
*
* @param scopeTitle the scope title
* @param scopeName the scope name
* @param scopeType the scope type
*/
public GcubeScope(String scopeTitle, String scopeName, GcubeScopeType scopeType) {
super();
this.scopeTitle = scopeTitle;
this.scopeName = scopeName;
this.scopeType = scopeType;
}
/**
* Gets the scope type.
*
* @return the scopeType
*/
public GcubeScopeType getScopeType() {
return scopeType;
}
/**
* Gets the scope title.
*
* @return the scopeTitle
*/
public String getScopeTitle() {
return scopeTitle;
}
/**
* Gets the scope name.
*
* @return the scopeName
*/
public String getScopeName() {
return scopeName;
}
/**
* Sets the scope type.
*
* @param scopeType the scopeType to set
*/
public void setScopeType(GcubeScopeType scopeType) {
this.scopeType = scopeType;
}
/**
* Sets the scope title.
*
* @param scopeTitle the scopeTitle to set
*/
public void setScopeTitle(String scopeTitle) {
this.scopeTitle = scopeTitle;
}
/**
* Sets the scope name.
*
* @param scopeName the scopeName to set
*/
public void setScopeName(String scopeName) {
this.scopeName = scopeName;
}
/*
* (non-Javadoc)
*
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
@Override
public int compareTo(GcubeScope o) {
if (o == null)
return -1;
return this.getScopeName().compareTo(o.getScopeName());
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("GcubeScope [scopeType=");
builder.append(scopeType);
builder.append(", scopeTitle=");
builder.append(scopeTitle);
builder.append(", scopeName=");
builder.append(scopeName);
builder.append("]");
return builder.toString();
}
}