org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced
Class Resource
java.lang.Object
org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Resource
public class Resource
- extends DataModel
| Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel |
fromXML, toXML |
Resource
public Resource(ResourceType type,
int searchId)
Resource
public Resource(org.gcube_system.namespaces.application.aquamaps.types.Resource toLoad)
Resource
public Resource(ResultSet rs)
throws Exception
- Throws:
Exception
toStubsVersion
public org.gcube_system.namespaces.application.aquamaps.types.Resource toStubsVersion()
throws JSONException
- Throws:
JSONException
load
public static List<Resource> load(org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toLoad)
toStubsVersion
public static org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toStubsVersion(List<Resource> toConvert)
throws JSONException
- Throws:
JSONException
setField
public boolean setField(Field f)
throws JSONException
- Throws:
JSONException
getField
public Field getField(MetaSourceFields fieldName)
throws JSONException
- Throws:
JSONException
toRow
public List<Field> toRow()
throws JSONException
- Throws:
JSONException
getType
public ResourceType getType()
setType
public void setType(ResourceType type)
getSearchId
public int getSearchId()
setSearchId
public void setSearchId(int searchId)
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getTableName
public String getTableName()
setTableName
public void setTableName(String tableName)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getAuthor
public String getAuthor()
setAuthor
public void setAuthor(String author)
getDisclaimer
public String getDisclaimer()
setDisclaimer
public void setDisclaimer(String disclaimer)
getProvenance
public String getProvenance()
setProvenance
public void setProvenance(String provenance)
getGenerationTime
public Long getGenerationTime()
setGenerationTime
public void setGenerationTime(Long generationTime)
getSourceHCAFIds
public ArrayList<Integer> getSourceHCAFIds()
setSourceHCAFIds
public void setSourceHCAFIds(ArrayList<Integer> sourceHCAFIds)
getSourceHSPECIds
public ArrayList<Integer> getSourceHSPECIds()
setSourceHSPECIds
public void setSourceHSPECIds(ArrayList<Integer> sourceHSPECIds)
getParameters
public ArrayList<Field> getParameters()
setParameters
public void setParameters(ArrayList<Field> parameters)
getStatus
public ResourceStatus getStatus()
setStatus
public void setStatus(ResourceStatus status)
getAlgorithm
public AlgorithmType getAlgorithm()
setAlgorithm
public void setAlgorithm(AlgorithmType algorithm)
getDefaultSource
public Boolean getDefaultSource()
setDefaultSource
public void setDefaultSource(Boolean defaultSource)
getRowCount
public Long getRowCount()
setRowCount
public void setRowCount(Long rowCount)
getDefaultAlgorithmType
public static AlgorithmType getDefaultAlgorithmType()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getSourceHSPENIds
public ArrayList<Integer> getSourceHSPENIds()
setSourceHSPENIds
public void setSourceHSPENIds(ArrayList<Integer> sourceHSPENIds)
getSourceOccurrenceCellsIds
public ArrayList<Integer> getSourceOccurrenceCellsIds()
setSourceOccurrenceCellsIds
public void setSourceOccurrenceCellsIds(ArrayList<Integer> sourceOccurrenceCellsIds)
getSourceHSPECTables
public ArrayList<String> getSourceHSPECTables()
setSourceHSPECTables
public void setSourceHSPECTables(ArrayList<String> sourceHSPECTables)
getSourceHSPENTables
public ArrayList<String> getSourceHSPENTables()
setSourceHSPENTables
public void setSourceHSPENTables(ArrayList<String> sourceHSPENTables)
getSourceHCAFTables
public ArrayList<String> getSourceHCAFTables()
setSourceHCAFTables
public void setSourceHCAFTables(ArrayList<String> sourceHCAFTables)
getSourceOccurrenceCellsTables
public ArrayList<String> getSourceOccurrenceCellsTables()
setSourceOccurrenceCellsTables
public void setSourceOccurrenceCellsTables(ArrayList<String> sourceOccurrenceCellsTables)
addSource
public void addSource(Resource toAdd)
removeSource
public void removeSource(Resource toRemove)
removeSourceId
public void removeSourceId(Integer id)
removeSourceTableName
public void removeSourceTableName(String tableName)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.