15,70 → 15,7 |
*/ |
public class ImageCarnet extends HashMap { |
|
/* |
// infos sur l'image |
private String url = " " ; |
private String ordre = " " ; |
private String utilisateur = " " ; |
private boolean publiable = false ; |
private String height = "0" ; |
private String width = "0" ; |
private String make = " " ; |
private String model = " " ; |
private String xResolution = "0" ; |
private String yResolution = "0" ; |
private String date = " " ; |
private String GPS = " " ; |
private String comment = " " ; |
|
// metadonnees exif |
private String exifExposureTime = " " ; |
private String exifFNumber = " " ; |
private String exifVersion = " " ; |
private String exifCompressedBitsPerPixel = " " ; |
private String exifShutterSpeedValue = " " ; |
private String exifApertureValue = " " ; |
private String exifExposureBiasValue = " " ; |
private String exifMaxApertureValue = " " ; |
private String exifMeteringMode = " " ; |
private String exifLightSource = " " ; |
private String exifFlash = " " ; |
private String exifFocalLength = " " ; |
private String exifFlashPixVersion = " " ; |
private String exifColorSpace = " " ; |
private String exifInteroperabilityOffset = " " ; |
private String exifFocalPlaneXResolution = " " ; |
private String exifFocalPlaneYResolution = " " ; |
private String exifFocalPlaneResolutionUnit = " " ; |
private String exifSensingMethod = " " ; |
private String exifFileSource = " " ; |
private String exifCustomRendered = " " ; |
private String exifExposureMode = " " ; |
private String exifWhiteBalance = " " ; |
private String exifDigitalZoomRatio = " " ; |
private String exifSceneCaptureType = " " ; |
private String exifGainControl = " " ; |
private String exifContrast = " " ; |
private String exifSaturation = " " ; |
private String exifSharpness = " " ; |
private String exifSubjectDistanceRange = " " ; |
private String exifAutres = " " ; |
|
// metadonnes iptc |
private String iptcMotsCles = " " ; |
private String iptcByLine = " " ; |
private String iptcByLineTitle = " " ; |
private String iptcCity = " " ; |
private String iptcSubLocation = " " ; |
private String iptcProvinceState = " " ; |
private String iptcCountryPrimaryLocationCode = " " ; |
private String iptcHeadline = " " ; |
private String iptcCredit = " " ; |
private String iptcCopyrightNotice = " " ; |
private String iptcContact = " " ; |
private String iptcAutres = " " ; |
*/ |
|
public ImageCarnet(JSONObject image) |
{ |
Set im = image.keySet() ; |
126,20 → 63,27 |
String valeur = (String)this.get(cle) ; |
if(valeur.equals("null")) |
{ |
return " " ; |
return "null" ; |
} |
else |
{ |
char nullChar = '\u0000' ; |
String sNull = ""+nullChar ; |
valeur = valeur.replaceAll(sNull, "") ; |
return valeur ; |
} |
} |
else |
{ |
return " " ; |
return "null" ; |
} |
} |
|
public String getId() { |
|
return renvoyerValeurCorrecte("ci_id_image") ; |
} |
|
public String getOrdre() { |
|
return renvoyerValeurCorrecte("ci_ordre") ; |
272,14 → 216,8 |
|
public void miseAJourInfoGenerales(String commentaires, String date) |
{ |
if(this.containsKey("ci_meta_comment")) |
{ |
put("ci_meta_comment",commentaires) ; |
} |
|
if(this.containsKey("ci_meta_date")) |
{ |
put("ci_meta_date",date) ; |
} |
} |
} |