Revision 3566 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/schemas/parsers/DublinCoreParser.java
DublinCoreParser.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.querys.Coordinates; |
... | ... | |
48 | 48 |
|
49 | 49 |
/** |
50 | 50 |
* This class parses a XMLNode that contains a DublinCore tree |
51 |
* |
|
52 |
* |
|
51 | 53 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
52 | 54 |
*/ |
53 | 55 |
public class DublinCoreParser extends Record { |
54 |
public DublinCoreParser(XMLNode node){ |
|
56 |
|
|
57 |
/** |
|
58 |
* |
|
59 |
* |
|
60 |
* |
|
61 |
* @param node |
|
62 |
*/ |
|
63 |
public DublinCoreParser(XMLNode node) { |
|
55 | 64 |
setNode(node); |
56 | 65 |
setTitle(XMLTree.searchNodeValue(node,"dc:title")); |
57 | 66 |
setAbstract_(XMLTree.searchNodeValue(node, "dc:subject")); |
58 | 67 |
setPurpose(XMLTree.searchNodeValue(node, "dc:description")); |
59 | 68 |
setResources(getResources(node)); |
60 | 69 |
|
61 |
} |
|
62 |
|
|
63 |
/** |
|
64 |
* It parses the resource tags |
|
65 |
* @param node |
|
66 |
* @return |
|
67 |
*/ |
|
68 |
public Resource[] getResources(XMLNode node){ |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* It parses the resource tags |
|
74 |
* |
|
75 |
* |
|
76 |
* @return |
|
77 |
* @param node |
|
78 |
*/ |
|
79 |
public Resource[] getResources(XMLNode node) { |
|
69 | 80 |
String format = XMLTree.searchNodeValue(node, "dc:format"); |
70 | 81 |
String source = XMLTree.searchNodeValue(node, "dc:source"); |
71 | 82 |
Coordinates coordinates = new Coordinates(XMLTree.searchNodeValue(getNode(),"dc:spatial->dcmiBox:Box->dcmiBox:westlimit"), |
... | ... | |
87 | 98 |
resources[0] = new Resource(source,format,"","","","",coordinates); |
88 | 99 |
|
89 | 100 |
return resources; |
90 |
} |
|
91 |
|
|
92 |
|
|
93 |
} |
|
101 |
} |
|
102 |
} |
Also available in: Unified diff