public class Resource extends DataModel
Constructor and Description |
---|
Resource(Resource toLoad) |
Resource(ResourceType type,
int searchId) |
Resource(ResultSet rs) |
public Resource(ResourceType type, int searchId)
public Resource(Resource toLoad)
public Resource toStubsVersion() throws org.json.JSONException
org.json.JSONException
public static List<Resource> load(ResourceArray toLoad)
public static ResourceArray toStubsVersion(List<Resource> toConvert) throws org.json.JSONException
org.json.JSONException
public boolean setField(Field f) throws org.json.JSONException
org.json.JSONException
public Field getField(MetaSourceFields fieldName) throws org.json.JSONException
org.json.JSONException
public ResourceType getType()
public void setType(ResourceType type)
public int getSearchId()
public void setSearchId(int searchId)
public String getTitle()
public void setTitle(String title)
public String getTableName()
public void setTableName(String tableName)
public String getDescription()
public void setDescription(String description)
public String getAuthor()
public void setAuthor(String author)
public String getDisclaimer()
public void setDisclaimer(String disclaimer)
public String getProvenance()
public void setProvenance(String provenance)
public Long getGenerationTime()
public void setGenerationTime(Long generationTime)
public ResourceStatus getStatus()
public void setStatus(ResourceStatus status)
public AlgorithmType getAlgorithm()
public void setAlgorithm(AlgorithmType algorithm)
public Boolean getDefaultSource()
public void setDefaultSource(Boolean defaultSource)
public Long getRowCount()
public void setRowCount(Long rowCount)
public static AlgorithmType getDefaultAlgorithmType()
public void setSourceOccurrenceCellsIds(ArrayList<Integer> sourceOccurrenceCellsIds)
public void setSourceOccurrenceCellsTables(ArrayList<String> sourceOccurrenceCellsTables)
public void addSource(Resource toAdd)
public void removeSource(Resource toRemove)
public void removeSourceId(Integer id)
public void removeSourceTableName(String tableName)
Copyright © 2017. All Rights Reserved.