示例#1
0
 /**
  * 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));
 }
示例#2
0
 /** {@inheritDoc} */
 public String getTitle() {
   return JSONUtils.getSafeString(data, FolioProperty.TITLE.getName());
 }