import org.apache.fop.fonts.FontManager;
/**
- * The environment profile represents the restrictions and allowances that FOP is
+ * The environment profile represents the system in which FOP is invoked. Some of FOPs services rely
+ * upon features within the system, as such, the client may want to restrict access to these
+ * services. This object allows clients to control those restrictions by implementing the interfaces
+ * that the environment profile holds.
*/
public interface EnvironmentProfile {
throw new IllegalArgumentException("Default base URI must not be null");
}
if (resourceResolver == null) {
- throw new IllegalArgumentException("URI Resolver must not be null");
+ throw new IllegalArgumentException("ResourceResolver must not be null");
+ }
+ if (fontManager == null) {
+ throw new IllegalArgumentException("The FontManager must not be null");
}
this.defaultBaseURI = defaultBaseURI;
this.resourceResolver = resourceResolver;
return factory.getImageHandlerRegistry();
}
- /** TODO: javadoc*/
+ /** @return the color space cache */
public ColorSpaceCache getColorSpaceCache() {
return factory.getColorSpaceCache();
}
- public Map<String, String> getHyphPatNames() {
- return factory.getHyphPatNames();
+ /** @see {@link FopFactory#getHyphenationPatternNames()} */
+ public Map<String, String> getHyphenationPatternNames() {
+ return factory.getHyphenationPatternNames();
}
}
return config.getLayoutManagerMakerOverride();
}
-
- public Map<String, String> getHyphPatNames() {
- return config.getHyphPatNames();
+ /** @return the hyphenation pattern names */
+ public Map<String, String> getHyphenationPatternNames() {
+ return config.getHyphenationPatternNames();
}
/**
return isComplexScript;
}
- public Map<String, String> getHyphPatNames() {
+ public Map<String, String> getHyphenationPatternNames() {
return hyphPatNames;
}
}
boolean isComplexScriptFeaturesEnabled();
- Map<String, String> getHyphPatNames();
+ /** @see {@link FopFactory#getHyphenationPatternNames()} */
+ Map<String, String> getHyphenationPatternNames();
}
Hyphenation hyph = Hyphenator.hyphenate(hyphenationProperties.language.getString(),
hyphenationProperties.country.getString(),
getFObj().getUserAgent().getResourceResolver(),
- getFObj().getUserAgent().getHyphPatNames(),
+ getFObj().getUserAgent().getHyphenationPatternNames(),
sbChars.toString(),
hyphenationProperties.hyphenationRemainCharacterCount.getValue(),
hyphenationProperties.hyphenationPushCharacterCount.getValue());
return delegate.isComplexScriptFeaturesEnabled();
}
- public Map<String, String> getHyphPatNames() {
- return delegate.getHyphPatNames();
+ public Map<String, String> getHyphenationPatternNames() {
+ return delegate.getHyphenationPatternNames();
}
}
-
}