Public Member Functions | |
String | getQueryParam (String param) |
String | getRecordNumber () |
String | getQueryString () |
String | getDatasetNumber () |
Dataset | getDataset () |
void | setDataset (Dataset d) |
List< Dataset > | getDatasets () |
Paper | getPaper () |
void | setPaper (Paper p) |
List< Paper > | getPapers () |
String | getFirstAuthorName () |
String | getFirstExperimentName () |
String | getFirstInformalName () |
String | getFirstPublished () |
String | getFirstPreprint () |
String | getTitle () |
Definition at line 16 of file DisplayDataset.java.
String getQueryParam | ( | String | param | ) |
Definition at line 25 of file DisplayDataset.java.
Referenced by DisplayDataset.getDatasetNumber(), DisplayDataset.getPapers(), DisplayDataset.getQueryString(), and DisplayDataset.getRecordNumber().
String getRecordNumber | ( | ) |
Definition at line 30 of file DisplayDataset.java.
References DisplayDataset.getQueryParam().
00030 { 00031 return getQueryParam("irn"); 00032 }
String getQueryString | ( | ) |
Definition at line 34 of file DisplayDataset.java.
References DisplayDataset.getQueryParam().
00034 { 00035 return getQueryParam("string"); 00036 }
String getDatasetNumber | ( | ) |
Definition at line 38 of file DisplayDataset.java.
References DisplayDataset.getQueryParam().
00038 { 00039 return getQueryParam("dataset"); 00040 }
Dataset getDataset | ( | ) |
void setDataset | ( | Dataset | d | ) |
List<Dataset> getDatasets | ( | ) |
Definition at line 47 of file DisplayDataset.java.
00047 { 00048 Query q = constructQuery(); 00049 // how many results do we want out 00050 //q.setMaxResults(Integer.parseInt(getQueryParam("number"))); 00051 // execute the query and return the list of results 00052 return q.list(); 00053 }
Paper getPaper | ( | ) |
void setPaper | ( | Paper | p | ) |
List<Paper> getPapers | ( | ) |
Definition at line 59 of file DisplayDataset.java.
References DisplayDataset.getQueryParam().
00059 { 00060 String theIrn = getQueryParam("irn"); 00061 Query q = _session.createQuery("select distinct p from Paper p where p._hepdataId = :irn"); 00062 q.setString("irn",theIrn); 00063 return q.list(); 00064 }
String getFirstAuthorName | ( | ) |
Definition at line 102 of file DisplayDataset.java.
00102 { 00103 int n = 0; 00104 String _firstauthor = ""; 00105 for (String author : _paper.getAuthors()){ 00106 n += 1; 00107 if(n == 1) {_firstauthor = author;} 00108 } 00109 String _refdate = "xx"; 00110 for (Reference reference : _paper.getReferences()){ 00111 _refdate = reference.getDate(); 00112 } 00113 int _lref = _refdate.length(); 00114 _firstauthor = _firstauthor + " " + _refdate.substring(_lref-2,_lref); 00115 return _firstauthor; 00116 }
String getFirstExperimentName | ( | ) |
Definition at line 117 of file DisplayDataset.java.
00117 { 00118 int n = 0; 00119 String _firstexperiment = ""; 00120 for (Experiment experiment : _paper.getExperiments()){ 00121 n += 1; 00122 if(n == 1) { _firstexperiment = experiment.getName();} 00123 } 00124 return _firstexperiment; 00125 }
String getFirstInformalName | ( | ) |
Definition at line 126 of file DisplayDataset.java.
00126 { 00127 int n = 0; 00128 String _firstinformal = ""; 00129 for (Experiment experiment : _paper.getExperiments()){ 00130 n += 1; 00131 if(n == 1) { _firstinformal = experiment.getInformalName();} 00132 } 00133 return _firstinformal; 00134 }
String getFirstPublished | ( | ) |
Definition at line 135 of file DisplayDataset.java.
00135 { 00136 int n = 0; 00137 String _firstpublished = "Not Published"; 00138 System.out.println("number of references:" + _paper.getReferences().size()); 00139 for (Reference ref : _paper.getReferences()){ 00140 String refdesc = ref.getDescription(); 00141 if(refdesc.startsWith("PL") || 00142 refdesc.startsWith("PR") || 00143 refdesc.startsWith("ZP") || 00144 refdesc.startsWith("EPJ") || 00145 refdesc.startsWith("NC") || 00146 refdesc.startsWith("JPG") || 00147 refdesc.startsWith("JHEP") ){ 00148 n += 1; 00149 if(n == 1) { _firstpublished = refdesc;} 00150 } 00151 } 00152 return _firstpublished; 00153 }
String getFirstPreprint | ( | ) |
Definition at line 154 of file DisplayDataset.java.
00154 { 00155 int n = 0; 00156 String _firstpreprint= "Not Known"; 00157 System.out.println("number of references:" + _paper.getReferences().size()); 00158 for (Reference reference : _paper.getReferences()){ 00159 String ref = reference.getDescription(); 00160 System.out.println(ref); 00161 if(ref.startsWith("PL") || 00162 ref.startsWith("PR") || 00163 ref.startsWith("ZP") || 00164 ref.startsWith("EPJ") || 00165 ref.startsWith("NC") || 00166 ref.startsWith("JPG") || 00167 ref.startsWith("JHEP") ){ 00168 } 00169 else{ 00170 n += 1; 00171 if(n == 1) { _firstpreprint = ref;} 00172 00173 } 00174 } 00175 return _firstpreprint; 00176 }
String getTitle | ( | ) |