/** * Constructor by value. * * @param name * @param title * @param number * @param resolutionWidth * @param resolutionHeight * @param folioProperties * @throws DPSException * @throws JSONException */ public FolioImpl( String name, String title, String number, int resolutionWidth, int resolutionHeight, Map<String, DPSValue> folioProperties) throws DPSException, JSONException { this(folioProperties); data.put(FolioProperty.NAME.getName(), getSafeName(name)); data.put(FolioProperty.TITLE.getName(), title); data.put(FolioProperty.NUMBER.getName(), number); data.put(FolioProperty.RESOLUTION_WIDTH.getName(), String.valueOf(resolutionWidth)); data.put(FolioProperty.RESOLUTION_HEIGHT.getName(), String.valueOf(resolutionHeight)); }
/** {@inheritDoc} */ public String getNumber() { return JSONUtils.getSafeString(data, FolioProperty.NUMBER.getName()); }