Package com.adobe.epubcheck.messages

Examples of com.adobe.epubcheck.messages.MessageLocation


    {
      return;
    }

    VocabUtil.parsePropertyList(type, vocabs, report,
        new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()));

  }
View Full Code Here


      return;
    }
    if (ph.trim().length() < 1)
    {
      report.message(MessageId.HTM_007,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()));
    }
  }
View Full Code Here

      Map<String, Vocab> reserved = (this.pubTypes.contains(OPFData.DC_TYPE_EDUPUB)) ? RESERVED_EDUPUB_VOCABS
          : RESERVED_VOCABS;
      vocabs = VocabUtil.parsePrefixDeclaration(
          e.getAttributeNS(EpubConstants.EpubTypeNamespaceUri, "prefix"), reserved,
          KNOWN_VOCAB_URIS, DEFAULT_VOCAB_URIS, report,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()));
    }
    else if (name.equals("link"))
    {
      processLink(e);
    }
View Full Code Here

    {
      return;
    }

    Set<Property> properties = VocabUtil.parsePropertyList(classAttribute, ALTCSS_VOCABS, report,
        new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()));
    Set<AltStylesheetVocab.PROPERTIES> altClasses = Property.filter(properties,
        AltStylesheetVocab.PROPERTIES.class);

    if (properties.size() == 1)
    {
      return;
    }

    boolean vertical = altClasses.contains(AltStylesheetVocab.PROPERTIES.VERTICAL);
    boolean horizontal = altClasses.contains(AltStylesheetVocab.PROPERTIES.HORIZONTAL);
    boolean day = altClasses.contains(AltStylesheetVocab.PROPERTIES.DAY);
    boolean night = altClasses.contains(AltStylesheetVocab.PROPERTIES.NIGHT);

    if (vertical && horizontal || day && night)
    {
      report.message(MessageId.CSS_005,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()),
          classAttribute);
    }
  }
View Full Code Here

      if (titleAttribute == null)
      {
        report
            .message(
                MessageId.ACC_011,
                new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber(), e
                    .getName()));
      }
    }
  }
View Full Code Here

    }

    if (posterMimeType != null && !OPFChecker.isBlessedImageType(posterMimeType))
    {
      report.message(MessageId.MED_001,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber()));
    }

    if (posterSrc != null)
    {
      hasValidFallback = true;
View Full Code Here

    {
      src = src.trim();
      if (src.equals(""))
      {
        report.message(MessageId.HTM_008,
            new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber(), name));
      }
    }

    if (src == null || xrefChecker == null)
    {
View Full Code Here

          String context = line.substring(contextStart, contextEnd);

          if (messageCode == ENTITY_INVALID)
          {
            // emit the erroneous text along with the message
            report.message(messageCode, new MessageLocation(entry, lineCounter, matcher.start(), context.trim()), matchedText);
          }
          else
          {
            report.message(messageCode, new MessageLocation(entry, lineCounter, matcher.start(), context.trim()));
          }
        }
        lineCounter++;
      }
    }
    catch (FileNotFoundException e1)
    {
      String fileName = new File(zip.getName()).getName();
      report.message(MessageId.RSC_001, new MessageLocation(fileName, -1, -1), entry);
    }
    catch (IOException e1)
    {
      String fileName = new File(zip.getName()).getName();
      report.message(MessageId.PKG_008, new MessageLocation(fileName, -1, -1), entry);
    }
    catch (Exception e)
    {
      e.printStackTrace();
      report.message(MessageId.RSC_005, new MessageLocation(entry, -1, -1), e.getMessage());
    }
    finally
    {
      if (is != null)
      {
View Full Code Here

        XMLAttribute attribute = e.getAttribute(i);
        context += " " + attribute.getName() + "=\"" + attribute.getValue() + "\"";
      }
      context += ">";
      report.message(MessageId.OPF_013,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber(), context),
          type, xrefChecker.getMimeType(data));
    }

    if (type != null)
    {
View Full Code Here

      }
    }
    if (!foundLang || !foundXmlLang)
    {
      report.message(MessageId.HTM_043,
          new MessageLocation(path, parser.getLineNumber(), parser.getColumnNumber(), e.getName()));
    }
  }
View Full Code Here

TOP

Related Classes of com.adobe.epubcheck.messages.MessageLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.