@@ -195,50 +195,50 @@ public void populateObject(Element element)
195195 if (mdElement != null )
196196 {
197197 // - capability
198- String capability = mdElement .getAttributeValue ("capability" , ResourceSync . NS_RS );
198+ String capability = mdElement .getAttributeValue ("capability" );
199199 if (capability != null && !"" .equals (capability ))
200200 {
201201 this .setCapability (capability );
202202 }
203203
204204 // - change
205- String change = mdElement .getAttributeValue ("change" , ResourceSync . NS_RS );
205+ String change = mdElement .getAttributeValue ("change" );
206206 if (change != null && !"" .equals (change ))
207207 {
208208 this .setChange (change );
209209 }
210210
211211 // - hash
212- String hashAttr = mdElement .getAttributeValue ("hash" , ResourceSync . NS_ATOM );
212+ String hashAttr = mdElement .getAttributeValue ("hash" );
213213 if (hashAttr != null && !"" .equals (hashAttr ))
214214 {
215215 this .addHashesFromAttr (hashAttr );
216216 }
217217
218218 // - length
219- String length = mdElement .getAttributeValue ("length" , ResourceSync . NS_ATOM );
219+ String length = mdElement .getAttributeValue ("length" );
220220 if (length != null && !"" .equals (length ))
221221 {
222222 long l = Long .parseLong (length );
223223 this .setLength (l );
224224 }
225225
226226 // - path
227- String path = mdElement .getAttributeValue ("path" , ResourceSync . NS_RS );
227+ String path = mdElement .getAttributeValue ("path" );
228228 if (path != null && !"" .equals (path ))
229229 {
230230 this .setPath (path );
231231 }
232232
233233 // - type
234- String type = mdElement .getAttributeValue ("type" , ResourceSync . NS_ATOM );
234+ String type = mdElement .getAttributeValue ("type" );
235235 if (type != null && !"" .equals (type ))
236236 {
237237 this .setType (type );
238238 }
239239
240240 // -encoding
241- String encoding = mdElement .getAttributeValue ("encoding" ); // FIXME: namespace?
241+ String encoding = mdElement .getAttributeValue ("encoding" );
242242 if (encoding != null && !"" .equals (encoding ))
243243 {
244244 this .setEncoding (encoding );
@@ -249,14 +249,14 @@ public void populateObject(Element element)
249249 List <Element > lns = element .getChildren ("ln" , ResourceSync .NS_RS );
250250 for (Element ln : lns )
251251 {
252- String rel = ln .getAttributeValue ("rel" , ResourceSync . NS_ATOM );
253- String href = ln .getAttributeValue ("href" , ResourceSync . NS_ATOM );
252+ String rel = ln .getAttributeValue ("rel" );
253+ String href = ln .getAttributeValue ("href" );
254254 if (rel != null && !"" .equals (rel ) && href != null && !"" .equals (href ))
255255 {
256256 ResourceSyncLn link = this .addLn (rel , href );
257257
258258 // hash
259- String lnHashAttr = ln .getAttributeValue ("hash" , ResourceSync . NS_ATOM );
259+ String lnHashAttr = ln .getAttributeValue ("hash" );
260260 if (lnHashAttr != null && !"" .equals (lnHashAttr ))
261261 {
262262 Map <String , String > hashMap = this .getHashesFromAttr (lnHashAttr );
@@ -267,44 +267,44 @@ public void populateObject(Element element)
267267 }
268268
269269 // length
270- String lnLength = ln .getAttributeValue ("length" , ResourceSync . NS_ATOM );
270+ String lnLength = ln .getAttributeValue ("length" );
271271 if (lnLength != null && !"" .equals (length ))
272272 {
273273 long lnl = Long .parseLong (lnLength );
274274 link .setLength (lnl );
275275 }
276276
277277 // modified
278- String modified = ln .getAttributeValue ("modified" , ResourceSync . NS_ATOM );
278+ String modified = ln .getAttributeValue ("modified" );
279279 if (modified != null && !"" .equals (modified ))
280280 {
281281 Date modDate = ResourceSync .DATE_FORMAT .parse (modified );
282282 link .setModified (modDate );
283283 }
284284
285285 // path
286- String lnPath = ln .getAttributeValue ("path" , ResourceSync . NS_RS );
286+ String lnPath = ln .getAttributeValue ("path" );
287287 if (lnPath != null && !"" .equals (lnPath ))
288288 {
289289 link .setPath (lnPath );
290290 }
291291
292292 // pri
293- String pri = ln .getAttributeValue ("pri" ); // FIXME: namespace?
293+ String pri = ln .getAttributeValue ("pri" );
294294 if (pri != null && !"" .equals (pri ))
295295 {
296296 link .setPri (Integer .parseInt (pri ));
297297 }
298298
299299 // type
300- String lnType = ln .getAttributeValue ("type" , ResourceSync . NS_ATOM );
300+ String lnType = ln .getAttributeValue ("type" );
301301 if (lnType != null && !"" .equals (lnType ))
302302 {
303303 link .setType (lnType );
304304 }
305305
306306 // encoding
307- String lnEncoding = ln .getAttributeValue ("encoding" ); // FIXME: namespace?
307+ String lnEncoding = ln .getAttributeValue ("encoding" );
308308 if (lnEncoding != null && !"" .equals (lnEncoding ))
309309 {
310310 link .setEncoding (lnEncoding );
@@ -343,38 +343,38 @@ public Element getElement()
343343 boolean trip = false ;
344344 if (this .capability != null )
345345 {
346- md .setAttribute ("capability" , this .capability , ResourceSync . NS_RS );
346+ md .setAttribute ("capability" , this .capability );
347347 trip = true ;
348348 }
349349 if (this .change != null )
350350 {
351- md .setAttribute ("change" , this .change , ResourceSync . NS_RS );
351+ md .setAttribute ("change" , this .change );
352352 trip = true ;
353353 }
354354 String hashAttr = this .getHashAttr (this .hashes );
355355 if (!"" .equals (hashAttr ))
356356 {
357- md .setAttribute ("hash" , hashAttr , ResourceSync . NS_ATOM );
357+ md .setAttribute ("hash" , hashAttr );
358358 trip = true ;
359359 }
360360 if (this .length > -1 )
361361 {
362- md .setAttribute ("length" , Long .toString (this .length ), ResourceSync . NS_ATOM );
362+ md .setAttribute ("length" , Long .toString (this .length ));
363363 trip = true ;
364364 }
365365 if (this .path != null )
366366 {
367- md .setAttribute ("path" , this .path , ResourceSync . NS_RS );
367+ md .setAttribute ("path" , this .path );
368368 trip = true ;
369369 }
370370 if (this .type != null )
371371 {
372- md .setAttribute ("type" , this .type , ResourceSync . NS_ATOM );
372+ md .setAttribute ("type" , this .type );
373373 trip = true ;
374374 }
375375 if (this .encoding != null )
376376 {
377- md .setAttribute ("encoding" , this .encoding ); // FIXME: namespace? This comes from the HTTP spec
377+ md .setAttribute ("encoding" , this .encoding );
378378 trip = true ;
379379 }
380380 if (trip )
@@ -390,47 +390,47 @@ public Element getElement()
390390 String lnHash = this .getHashAttr (ln .getHashes ());
391391 if (!"" .equals (lnHash ))
392392 {
393- link .setAttribute ("hash" , lnHash , ResourceSync . NS_ATOM );
393+ link .setAttribute ("hash" , lnHash );
394394 trip = true ;
395395 }
396396 if (ln .getHref () != null )
397397 {
398- link .setAttribute ("href" , ln .getHref (), ResourceSync . NS_ATOM );
398+ link .setAttribute ("href" , ln .getHref ());
399399 trip = true ;
400400 }
401401 if (ln .getLength () > -1 )
402402 {
403- link .setAttribute ("length" , Long .toString (ln .getLength ()), ResourceSync . NS_ATOM );
403+ link .setAttribute ("length" , Long .toString (ln .getLength ()));
404404 trip = true ;
405405 }
406406 if (ln .getModified () != null )
407407 {
408- link .setAttribute ("modified" , ResourceSync .DATE_FORMAT .format (ln .getModified ()), ResourceSync . NS_ATOM );
408+ link .setAttribute ("modified" , ResourceSync .DATE_FORMAT .format (ln .getModified ()));
409409 trip = true ;
410410 }
411411 if (ln .getPath () != null )
412412 {
413- link .setAttribute ("path" , ln .getPath (), ResourceSync . NS_RS );
413+ link .setAttribute ("path" , ln .getPath ());
414414 trip = true ;
415415 }
416416 if (ln .getRel () != null )
417417 {
418- link .setAttribute ("rel" , ln .getRel (), ResourceSync . NS_ATOM );
418+ link .setAttribute ("rel" , ln .getRel ());
419419 trip = true ;
420420 }
421421 if (ln .getPri () > 0 )
422422 {
423- link .setAttribute ("pri" , Integer .toString (ln .getPri ())); // FIXME: namespace?
423+ link .setAttribute ("pri" , Integer .toString (ln .getPri ()));
424424 trip = true ;
425425 }
426426 if (ln .getType () != null )
427427 {
428- link .setAttribute ("type" , ln .getType (), ResourceSync . NS_ATOM );
428+ link .setAttribute ("type" , ln .getType ());
429429 trip = true ;
430430 }
431431 if (ln .getEncoding () != null )
432432 {
433- link .setAttribute ("encoding" , ln .getEncoding ()); // FIXME: namespace?
433+ link .setAttribute ("encoding" , ln .getEncoding ());
434434 trip = true ;
435435 }
436436 if (trip )
0 commit comments