Changeset 25635 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
- Timestamp:
- 2012-05-22T13:01:04+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
r25303 r25635 340 340 boolean want_info = false; 341 341 342 ArrayList info_types=new ArrayList();342 ArrayList<String> info_types=new ArrayList<String>(); 343 343 // The document structure information desired 344 344 boolean want_ancestors = false; … … 416 416 417 417 for (int j=0; j<info_types.size(); j++) { 418 String info_type = (String)info_types.get(j);418 String info_type = info_types.get(j); 419 419 String info_value = getStructureInfo(node_id, info_type); 420 420 if (info_value != null) { … … 511 511 512 512 // The metadata information required 513 ArrayList metadata_names_list = new ArrayList();513 ArrayList<String> metadata_names_list = new ArrayList<String>(); 514 514 boolean all_metadata = false; 515 515 // Process the request parameters … … 619 619 boolean recursive) 620 620 { 621 ArrayList child_ids = getChildrenIds(node_id);621 ArrayList<String> child_ids = getChildrenIds(node_id); 622 622 if (child_ids==null) return; 623 623 for (int i=0; i< child_ids.size(); i++) { 624 String child_id = (String)child_ids.get(i);624 String child_id = child_ids.get(i); 625 625 Element child_elem; 626 626 if (isDocumentId(child_id)) { … … 675 675 676 676 /** returns the list of sibling ids, including the specified node_id */ 677 protected ArrayList getSiblingIds(String node_id) {677 protected ArrayList<String> getSiblingIds(String node_id) { 678 678 String parent_id = getParentId(node_id); 679 679 if (parent_id == null) { … … 698 698 abstract protected String getRootId(String node_id); 699 699 /** returns a list of the child ids in order, null if no children */ 700 abstract protected ArrayList getChildrenIds(String node_id);700 abstract protected ArrayList<String> getChildrenIds(String node_id); 701 701 /** returns the node id of the parent node, null if no parent */ 702 702 abstract protected String getParentId(String node_id); … … 715 715 abstract protected Element getMetadataList(String node_id, 716 716 boolean all_metadata, 717 ArrayList metadata_names);717 ArrayList<String> metadata_names); 718 718 719 719 /** get the particular metadata (identified by the metadata name) for the classifier node node_id
Note:
See TracChangeset
for help on using the changeset viewer.