Revision 3566 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/schemas/parsers/IdeeISO19115Parser.java
IdeeISO19115Parser.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana |
|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci??n Geogr??fica de la Generalitat Valenciana |
|
2 | 3 |
* |
3 | 4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
4 | 5 |
* |
... | ... | |
20 | 21 |
* |
21 | 22 |
* Generalitat Valenciana |
22 | 23 |
* Conselleria d'Infraestructures i Transport |
23 |
* Av. Blasco Ib��ez, 50
|
|
24 |
* Av. Blasco Ib????ez, 50
|
|
24 | 25 |
* 46010 VALENCIA |
25 | 26 |
* SPAIN |
26 | 27 |
* |
... | ... | |
39 | 40 |
* dac@iver.es |
40 | 41 |
*/ |
41 | 42 |
package es.gva.cit.catalogClient.schemas.parsers; |
42 |
|
|
43 | 43 |
import es.gva.cit.catalogClient.metadataXML.XMLNode; |
44 | 44 |
import es.gva.cit.catalogClient.metadataXML.XMLTree; |
45 | 45 |
import es.gva.cit.catalogClient.schemas.discoverer.Record; |
46 | 46 |
import es.gva.cit.catalogClient.schemas.discoverer.Resource; |
47 | 47 |
|
48 |
|
|
49 |
|
|
50 | 48 |
/** |
49 |
* |
|
50 |
* |
|
51 |
* |
|
51 | 52 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
52 | 53 |
*/ |
53 | 54 |
public class IdeeISO19115Parser extends Record { |
54 |
public IdeeISO19115Parser(XMLNode node) { |
|
55 |
|
|
56 |
/** |
|
57 |
* |
|
58 |
* |
|
59 |
* |
|
60 |
* @param node |
|
61 |
*/ |
|
62 |
public IdeeISO19115Parser(XMLNode node) { |
|
55 | 63 |
setNode(node); |
56 | 64 |
setTitle(XMLTree.searchNodeValue(node, |
57 | 65 |
"recordData->MD_Metadata->identificationInfo->MD_DataIdentification->citation->CI_Citation->title")); |
... | ... | |
61 | 69 |
"recordData->MD_Metadata->identificationInfo->MD_DataIdentification->purpose")); |
62 | 70 |
setKeyWords(XMLTree.searchMultipleNodeValue(node, |
63 | 71 |
"recordData->MD_Metadata->identificationInfo->MD_DataIdentification->descriptiveKeywords->MD_Keywords->keyword")); |
64 |
|
|
65 | 72 |
//this.setResources(getResources(node,"")); |
66 |
} |
|
73 |
}
|
|
67 | 74 |
|
68 |
public Resource[] getResources(XMLNode node, String label) { |
|
75 |
/** |
|
76 |
* |
|
77 |
* |
|
78 |
* |
|
79 |
* @return |
|
80 |
* @param node |
|
81 |
* @param label |
|
82 |
*/ |
|
83 |
public Resource[] getResources(XMLNode node, String label) { |
|
69 | 84 |
XMLNode[] nodes = XMLTree.searchMultipleNode(node, label); |
70 |
|
|
71 | 85 |
if (nodes == null) { |
72 | 86 |
return null; |
73 | 87 |
} |
74 |
|
|
75 | 88 |
Resource[] resources = new Resource[nodes.length]; |
76 |
|
|
77 | 89 |
for (int i = 0; i < resources.length; i++) |
78 | 90 |
resources[i] = new Resource(XMLTree.searchNodeValue(nodes[i], ""), |
79 | 91 |
XMLTree.searchNodeValue(nodes[i], ""), |
... | ... | |
82 | 94 |
XMLTree.searchNodeAtribute(nodes[i], "", ""), |
83 | 95 |
XMLTree.searchNodeValue(nodes[i],""), |
84 | 96 |
null); |
85 |
|
|
86 | 97 |
return resources; |
87 |
} |
|
88 |
} |
|
98 |
} |
|
99 |
} |
Also available in: Unified diff