Package com.adobe.epubcheck.messages

Examples of com.adobe.epubcheck.messages.MessageId


  void searchInsideValue(CSSStyleAttributeHandler.StyleAttribute entry, SearchDictionary tds, String file)
  {
    for (int s = 0; s < tds.getDictEntries().size(); s++)
    {
      TextSearchDictionaryEntry de = tds.getDictEntries().get(s);
      MessageId messageCode = de.getErrorCode();
      Pattern p = de.getPattern();

      Matcher matcher = p.matcher(entry.getValue());
      int position = 0;
      while (matcher.find(position))
View Full Code Here


            }

            ZipEntry imgentry = epack.getZip().getEntry(imageFile);
            if (imgentry == null)
            {
              MessageId id = "img".compareToIgnoreCase(type) == 0 ? MessageId.RSC_001 : MessageId.RSC_018;
              report.message(id, new MessageLocation(fileToParse, value.getLine(), value.getColumn(), value.getContext()), value.getValue());
            }
          }
        }
      }
View Full Code Here

  private void searchInsideValue(AnchorTagHandler.DocTagContent entry, SearchDictionary tds, String file)
  {
    for (int s = 0; s < tds.getDictEntries().size(); s++)
    {
      TextSearchDictionaryEntry de = tds.getDictEntries().get(s);
      MessageId messageCode = de.getErrorCode();

      Pattern p = de.getPattern();
      Matcher matcher = p.matcher(entry.getValue());
      int position = 0;
      while (matcher.find(position))
View Full Code Here

        Matcher matcher = entityPattern.matcher(line);
        int position = 0;

        while (matcher.find(position))
        {
          MessageId messageCode = ENTITY_INVALID;
          position = matcher.end();
          String matchedText = line.substring(matcher.start(), matcher.end());
          if (version == EPUBVersion.VERSION_2)
          {
            if (legalEntities3_0.contains(matchedText) || legalEntities2_0.contains(matchedText))
View Full Code Here

  }


  void CheckFontSize(CssGrammar.CssConstruct construct, CssGrammar.CssDeclaration declaration)
  {
    MessageId id = hasIndividualFixedFormatDocuments ? MessageId.ACC_016 : MessageId.ACC_014;
    switch (construct.getType())
    {
      case KEYWORD:
      {
        if (!isGlobalFixedFormat || hasIndividualFixedFormatDocuments)
View Full Code Here

  void CheckLineHeight(CssGrammar.CssConstruct construct, CssGrammar.CssDeclaration declaration)
  {
    if (!isGlobalFixedFormat || hasIndividualFixedFormatDocuments)
    {
      MessageId id = hasIndividualFixedFormatDocuments ? MessageId.ACC_017 : MessageId.ACC_015;
      if (construct.getType() == CssGrammar.CssConstruct.Type.QUANTITY)
      {
        CssGrammar.CssQuantity quantity = (CssGrammar.CssQuantity) (construct);
        CssGrammar.CssQuantity.Unit unit = quantity.getUnit();
        switch (unit)
View Full Code Here

  void checkTermsAndValues(CssGrammar.CssDeclaration declaration)
  {
    if (!isGlobalFixedFormat || hasIndividualFixedFormatDocuments)
    {
      MessageId id = hasIndividualFixedFormatDocuments ? MessageId.CSS_027 : MessageId.CSS_017;
      if ("position".compareToIgnoreCase(declaration.getName().get()) == 0)
      {
        for (CssGrammar.CssConstruct construct : declaration.getComponents())
        {
          if (construct.getType() == CssGrammar.CssConstruct.Type.KEYWORD &&
View Full Code Here

TOP

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

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.