[Castore-commits] ParserMetaDatas.java 1.3 1.4
Mohamed Yenje Ould Elkhadir
mohamed at adullact1.hosting.cri74.org
Mer 23 Aou 13:54:44 CEST 2006
Update of /cvsroot/castore/castore-core/src/java/fr/emn/castor/documents/metier/docGenerique/soumission/resources
In directory adullact1:/tmp/cvs-serv18244/src/java/fr/emn/castor/documents/metier/docGenerique/soumission/resources
Modified Files:
ParserMetaDatas.java
Log Message:
modification de parseur de documents pour qu'il parse l'élement service
Index: ParserMetaDatas.java
===================================================================
RCS file: /cvsroot/castore/castore-core/src/java/fr/emn/castor/documents/metier/docGenerique/soumission/resources/ParserMetaDatas.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ParserMetaDatas.java 20 Apr 2006 08:42:33 -0000 1.3
--- ParserMetaDatas.java 23 Aug 2006 11:54:41 -0000 1.4
***************
*** 78,81 ****
--- 78,83 ----
*/
private boolean inHelp = false;
+
+ private boolean inService = false;
/**
***************
*** 149,153 ****
if (qName.equals("metadata")) {
this.currentMetadata = new HashMap();
! for (int i = 0; i < attributes.getLength(); i++) {
this.currentMetadata.put(attributes.getQName(i), attributes
.getValue(i));
--- 151,155 ----
if (qName.equals("metadata")) {
this.currentMetadata = new HashMap();
! for (int i = 0; i < attributes.getLength();i++) {
this.currentMetadata.put(attributes.getQName(i), attributes
.getValue(i));
***************
*** 163,167 ****
"help_awaited_format", formatAttendu);
}
! } else if (qName.equals("equivalent_dc")) {
this.inDcType = true;
} else if (qName.equals("list")) {
--- 165,175 ----
"help_awaited_format", formatAttendu);
}
! } else if (qName.equals("service")) {
! this.inService = true;
! String formatAttendu = attributes.getValue("awaited_format");
! if (formatAttendu != null) {
! this.currentMetadata.put(
! "help_awaited_format", formatAttendu);}
! }else if (qName.equals("equivalent_dc")) {
this.inDcType = true;
} else if (qName.equals("list")) {
***************
*** 215,219 ****
this.currentMetadata.put("help", this.charBuf.toString().trim());
this.inHelp = false;
! } else if (qName.equals("equivalent_dc")) {
this.metadataKey = this.charBuf.toString().trim();
this.inDcType = false;
--- 223,230 ----
this.currentMetadata.put("help", this.charBuf.toString().trim());
this.inHelp = false;
! } else if (qName.equals("service")) {
! this.currentMetadata.put("service", this.charBuf.toString().trim());
! this.inService = false;
! } else if (qName.equals("equivalent_dc")) {
this.metadataKey = this.charBuf.toString().trim();
this.inDcType = false;
Plus d'informations sur la liste de diffusion Castore-commits