Examples of SwfTag


Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

                    } else {
                        type = tagNode.isEmptyXmlTag() ? SwfTag.EMPTY : SwfTag.START;
                    }
                    testForProcessorForTag(lexer, tagName);
                    lineNumbers = lineNumbering(node);
                    final SwfTag tag = new SwfTag(tagName, attributes, type, lineNumbers, loadFile.getCanonicalPath());
                    tags.push(tag);

                    if (tagName.equals("SWF:IMPORT")) {
                        if (!tagNode.isEmptyXmlTag()) {
                            throw new ScimpiException("Import tag must be empty");
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof HtmlSnippet) {
                appendSnippet((HtmlSnippet) snippet);
            } else {
                final SwfTag tag = (SwfTag) snippet;
                final String name = tag.getName();
                final ElementProcessor processor = processors.getFor(name);
                process(tag, processor);
                if (context.isAborted()) {
                    return;
                }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            throw new TagProcessingException("Error while processing " + tag.getName().toLowerCase() + " element at " + tag.errorAt() + " - " + e.getMessage(), tag.toString(), e);
        }
    }

    public void processUtilCloseTag() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            return;
        }
        while (index < snippets.size() - 1) {
            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof HtmlSnippet) {
                appendSnippet((HtmlSnippet) snippet);
            } else {
                final SwfTag nextTag = (SwfTag) snippet;
                if (tag.getName().equals(nextTag.getName())) {
                    if (nextTag.getType() == SwfTag.START) {
                    } else {
                        return;
                    }
                }
                final String name = nextTag.getName();
                if (nextTag.getType() == SwfTag.END && !tag.getName().equals(name)) {
                    throw new TagProcessingException("Expected " + nextTag.getName().toLowerCase() + " tag but found " + tag.getName().toLowerCase() + " tag at " + nextTag.errorAt(), tag.toString());
                }
                final ElementProcessor processor = processors.getFor(name);
                process(nextTag, processor);
            }
        }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            }
        }
    }

    public void skipUntilClose() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            if (context.isDebug()) {
                appendHtml("<!-- " + "skipped " + tag + " -->");
            }
            return;
        }
        int depth = 1;
        while (index < snippets.size() - 1) {
            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof SwfTag) {
                final SwfTag nextTag = (SwfTag) snippet;
                if (tag.getName().equals(nextTag.getName())) {
                    if (nextTag.getType() == SwfTag.START) {
                        depth++;
                    } else {
                        depth--;
                        if (depth == 0) {
                            return;
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            }
        }
    }

    public void closeEmpty() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            return;
        }
        if (index < snippets.size()) {
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof SwfTag) {
                final SwfTag nextTag = (SwfTag) snippet;
                if (nextTag.getType() == SwfTag.EMPTY) {
                    return;
                }
            }
        }
        throw new ScimpiException("Empty tag not closed");
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof HtmlSnippet) {
                appendSnippet((HtmlSnippet) snippet);
            } else {
                final SwfTag tag = (SwfTag) snippet;
                final String name = tag.getName();
                final ElementProcessor processor = processors.getFor(name);
                process(tag, processor);
                if (context.isAborted()) {
                    return;
                }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            throw new TagProcessingException("Error while processing " + tag.getName().toLowerCase() + " element at " + tag.errorAt() + " - " + e.getMessage(), tag.toString(), e);
        }
    }

    public void processUtilCloseTag() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            return;
        }
        while (index < snippets.size() - 1) {
            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof HtmlSnippet) {
                appendSnippet((HtmlSnippet) snippet);
            } else {
                final SwfTag nextTag = (SwfTag) snippet;
                if (tag.getName().equals(nextTag.getName())) {
                    if (nextTag.getType() == SwfTag.START) {
                    } else {
                        return;
                    }
                }
                final String name = nextTag.getName();
                if (nextTag.getType() == SwfTag.END && !tag.getName().equals(name)) {
                    throw new TagProcessingException("Expected " + nextTag.getName().toLowerCase() + " tag but found " + tag.getName().toLowerCase() + " tag at " + nextTag.errorAt(), tag.toString());
                }
                final ElementProcessor processor = processors.getFor(name);
                process(nextTag, processor);
            }
        }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            }
        }
    }

    public void skipUntilClose() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            if (context.isDebug()) {
                appendHtml("<!-- " + "skipped " + tag + " -->");
            }
            return;
        }
        int depth = 1;
        while (index < snippets.size() - 1) {
            index++;
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof SwfTag) {
                final SwfTag nextTag = (SwfTag) snippet;
                if (tag.getName().equals(nextTag.getName())) {
                    if (nextTag.getType() == SwfTag.START) {
                        depth++;
                    } else {
                        depth--;
                        if (depth == 0) {
                            return;
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

            }
        }
    }

    public void closeEmpty() {
        final SwfTag tag = getTag();
        if (tag.getType() == SwfTag.EMPTY) {
            return;
        }
        if (index < snippets.size()) {
            final Snippet snippet = snippets.get(index);
            if (snippet instanceof SwfTag) {
                final SwfTag nextTag = (SwfTag) snippet;
                if (nextTag.getType() == SwfTag.EMPTY) {
                    return;
                }
            }
        }
        throw new ScimpiException("Empty tag not closed");
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.SwfTag

                    } else {
                        type = tagNode.isEmptyXmlTag() ? SwfTag.EMPTY : SwfTag.START;
                    }
                    testForProcessorForTag(lexer, tagName);
                    lineNumbers = lineNumbering(node);
                    final SwfTag tag = new SwfTag(tagName, attributes, type, lineNumbers, loadFile.getCanonicalPath());
                    tags.push(tag);

                    if (tagName.equals("SWF:IMPORT")) {
                        if (!tagNode.isEmptyXmlTag()) {
                            throw new ScimpiException("Import tag must be empty");
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.