merge for release 4.13.1
git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/common/common-smartgears/2.1@174727 82a268e6-3cf1-43bd-a215-b396298e98cfmaster
parent
a49c4de5dd
commit
1b60aa2d44
@ -1 +1,4 @@
|
||||
${gcube.license}
|
||||
gCube System - License
|
||||
------------------------------------------------------------
|
||||
|
||||
${gcube.license}
|
@ -0,0 +1,79 @@
|
||||
package org.gcube.smartgears.configuration.application;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlValue;
|
||||
|
||||
@XmlRootElement(name="include")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class Include {
|
||||
|
||||
@XmlAttribute(name="handlers")
|
||||
private List<String> handlers = new ArrayList<String>();
|
||||
|
||||
@XmlValue
|
||||
private String path;
|
||||
|
||||
public List<String> getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
protected Include() {}
|
||||
|
||||
public Include(String path) {
|
||||
super();
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public Include(List<String> handlers, String path) {
|
||||
super();
|
||||
this.handlers = handlers;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((path == null) ? 0 : path.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
Include other = (Include) obj;
|
||||
if (handlers == null) {
|
||||
if (other.handlers != null)
|
||||
return false;
|
||||
} else if (!handlers.equals(other.handlers))
|
||||
return false;
|
||||
if (path == null) {
|
||||
if (other.path != null)
|
||||
return false;
|
||||
} else if (!path.equals(other.path))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Include [handlers=" + handlers + ", path=" + path + "]";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue