Examples of CreoleParseException


Examples of com.admc.jcreole.CreoleParseException

        }
    }

    public void add(String name) {
        if (origKeyToEntry.containsKey(name))
            throw new CreoleParseException(
                    "Duplicate footnotes definition for: " + name);
        Entry newEntry = new Entry(1 + entries.size());
        entries.add(newEntry);
        origKeyToEntry.put(name, newEntry);
    }
View Full Code Here

Examples of com.admc.jcreole.CreoleParseException

            Entry targetEntry;
            for (FootNoteRefMarker refMarker : refMarkers) {
                // This block adds entries in reference order
                targetEntry = origKeyToEntry.get(refMarker.getName());
                if (targetEntry == null)
                    throw new CreoleParseException(
                            "No entry defined for referenced name: "
                            + refMarker.getName());
                if (loadedNames.contains(refMarker.getName())) continue;
                loadedNames.add(refMarker.getName());
                entries.add(targetEntry);
View Full Code Here

Examples of com.admc.jcreole.CreoleParseException

    public IndexMarker(int id, EntryOrdering inOrdering) {
        super(id, (inOrdering == null)
                ? EntryOrdering.NAME_BY_DICTIONARY : inOrdering);
        if (ordering == EntryOrdering.DEF_ORDER)
            throw new CreoleParseException(
                    "Ordering not supported for FootNotes: " + ordering);
    }
View Full Code Here

Examples of com.admc.jcreole.CreoleParseException

        if (newClassNames == null)
            throw new NullPointerException(
                    "Styler specifies no CSS class names");
        Matcher m = CssNamesPattern.matcher(newClassNames);
        if (!m.matches())
            throw new CreoleParseException(
                    "Malformatted class name(s): " + newClassNames);
        classNames = newClassNames.split("\\s+", -1);
        switch (directionChar) {
          case '-':
            targetDirection = Direction.PREVIOUS;
            break;
          case '=':
            targetDirection = Direction.CONTAINER;
            break;
          case '+':
            targetDirection = Direction.NEXT;
            break;
          default:
            throw new CreoleParseException(
                    "Unexpected target direction specifier character: "
                    + directionChar);
        }
        targetType = Enum.valueOf(TagType.class, tagTypeStr.toUpperCase());
        if (targetType == null)
            throw new CreoleParseException(
                    "Unexpected tag type specifier: " + tagTypeStr);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.