/** * Get list of Thumbnails * * @return List of all thumbnails properties defined * @throws BadFieldValueException * if one thumbnail is not thumbnail type */ public List<ThumbnailType> getThumbnailsProperty() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(THUMBNAILS); if (tmp != null) { List<ThumbnailType> thumbs = new ArrayList<>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof ThumbnailType) { thumbs.add((ThumbnailType) abstractField); } else { throw new BadFieldValueException("Thumbnail expected and " + abstractField.getClass().getName() + " found."); } } return thumbs; } return null; }
/** * Get list of Thumbnails * * @return List of all thumbnails properties defined * @throws BadFieldValueException * if one thumbnail is not thumbnail type */ public List<ThumbnailType> getThumbnailsProperty() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(THUMBNAILS); if (tmp != null) { List<ThumbnailType> thumbs = new ArrayList<>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof ThumbnailType) { thumbs.add((ThumbnailType) abstractField); } else { throw new BadFieldValueException("Thumbnail expected and " + abstractField.getClass().getName() + " found."); } } return thumbs; } return null; }
/** * Get list of Thumbnails * * @return List of all thumbnails properties defined * @throws BadFieldValueException * if one thumbnail is not thumbnail type */ public List<ThumbnailType> getThumbnailsProperty() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(THUMBNAILS); if (tmp != null) { List<ThumbnailType> thumbs = new ArrayList<ThumbnailType>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof ThumbnailType) { thumbs.add((ThumbnailType) abstractField); } else { throw new BadFieldValueException("Thumbnail expected and " + abstractField.getClass().getName() + " found."); } } return thumbs; } return null; }