boolean isGlobalFixed = EpubPackage.isGlobalFixed(this.epack);
Hashtable<String, SpineItem> spineItems = new Hashtable<String, SpineItem>();
for (int i = 0; i < epack.getSpine().itemsLength(); ++i)
{
SpineItem si = epack.getSpine().getItem(i);
spineItems.put(si.getIdref(), si);
}
for (int i = 0; i < epack.getManifest().itemsLength(); i++)
{
ManifestItem itemEntry = epack.getManifest().getItem(i);
if (validTypes.isValidMediaType(itemEntry.getMediaType()))
{
String fileToParse = epack.getManifestItemFileName(itemEntry);
ZipEntry entry = epack.getZip().getEntry(fileToParse);
if (entry == null)
{
report.message(MessageId.RSC_001, new MessageLocation(epack.getFileName(), -1, -1), fileToParse);
continue;
}
SpineItem si = spineItems.get(itemEntry.getId());
boolean itemIsFixedFormat = isGlobalFixed;
if (si != null)
{
String properties = si.getProperties();
if (properties != null)
{
if (properties.length() != 0)
{
properties = properties.replaceAll("[\\s]+", " ");