/*
* Copyright (C) 2011 Laurent Caillette
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.novelang.configuration;
import com.google.common.collect.ImmutableSet;
import org.apache.fop.fonts.EmbedFontInfo;
/**
* Describes what default {@code FopFactory} knows about its fonts.
*
* @see FopTools#createGlobalFontStatus(org.apache.fop.apps.FopFactory, Iterable)
*
* @author Laurent Caillette
*/
public final class FopFontStatus {
private final Iterable< EmbedFontInfo > fontInfos ;
private final ImmutableSet< String > failedFontFileNames;
public FopFontStatus(
final Iterable< EmbedFontInfo > fontInfos,
final ImmutableSet< String > failedFontFileNames
) {
this.fontInfos = fontInfos;
this.failedFontFileNames = failedFontFileNames == null ?
ImmutableSet.< String >of() : failedFontFileNames ;
}
public Iterable< EmbedFontInfo > getFontInfos() {
return fontInfos ;
}
/**
* @return a non-null object.
*/
public ImmutableSet< String > getFailedFontFileNames() {
return failedFontFileNames ;
}
}