blob: 91f83e646c4ef97e4d95457df7037d3d6b7e2b7b [file] [log] [blame]
package org.apache.taverna.biocatalogue.model;
import org.biocatalogue.x2009.xml.rest.ResourceLink;
import org.biocatalogue.x2009.xml.rest.impl.ResourceLinkImpl;
/**
* @author Sergejs Aleksejevs
*/
public class LoadingResource extends ResourceLinkImpl
{
private boolean nowLoading;
private ResourceLink associatedObj;
public LoadingResource(String resourceURL, String resourceName) {
super(ResourceLink.type);
associatedObj = ResourceLink.Factory.newInstance();
associatedObj.setHref(resourceURL);
associatedObj.setResourceName(resourceName);
this.nowLoading = false;
}
public String getHref() {
return (associatedObj.getHref());
}
public String getResourceName() {
return (associatedObj.getResourceName());
}
public boolean isLoading() {
return (nowLoading);
}
public void setLoading(boolean isLoading) {
this.nowLoading = isLoading;
}
}