All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nu.validator.messages..JsonMessageEmitter.swp Maven / Gradle / Ivy

Go to download

An HTML-checking library (used by https://html5.validator.nu and the HTML5 facet of the W3C Validator)

There is a newer version: 20.7.2
Show newest version
b0VIM 7.4??U?`
?pmikeMikeSmith.local/opt/workspace/validator/src/nu/validator/messages/JsonMessageEmitter.javautf-8
3210#"! Utp>(ASgad?>????6??Q	?
?
}
.
??F?????qpJ?
?
?
?
?
?
l
g
D
?


	
?	?	?	?	?	?	}	+		??c]\N?????m$????~^>???\2????6??|bLB???????TL>??     * @see nu.validator.messages.MessageEmitter#endMessages()    /**    }    public void endFullSource() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#endFullSource()    /**    }        }            handler.string(subType);            handler.key("subType");        if (subType != null) {        String subType = type.getSubType();        }            }                        }                            handler.number(oneBasedFirstColumn);                                    handler.key("firstColumn");                if (oneBasedFirstColumn != oneBasedLastColumn) {                handler.number(oneBasedLastColumn);                                                handler.key("lastColumn");            if (oneBasedLastColumn != -1) {            }                handler.number(oneBasedFirstLine);                                handler.key("firstLine");            if (oneBasedFirstLine != oneBasedLastLine) {            handler.number(oneBasedLastLine);            handler.key("lastLine");        if (oneBasedLastLine != -1) {        }            handler.string(systemId);            handler.key("url");        if (systemId !=             int oneBasedFirstLine, int oneBasedF            int oneBasedFirstLine, int oneBasedFirstColumn,            System.                        throws SAXException {            int oneBasedLastLine, int oneBasedLastColumn, boolean exact)            int oneBasedFirstLine, int oneBasedFirstColumn,    public void startMessage(MessageType type, String systemId,    @Override    }        handler.endObject();    public void endMessage() throws SAXException {    @Override    }        this.messageTextHandler = new JsonMessageTextHandler(handler);        this.extractHandler = new JsonExtractHandler(handler);        this.callback = callback;        this.handler = handler;    public JsonMessageEmitter(final JsonHandler handler, final String callback) {     */     * @param handler    /**        private boolean arrayOpen;        private final JsonMessageTextHandler messageTextHandler;    private final JsonExtractHandler extractHandler;        private final String callback;        private final JsonHandler handler;public class JsonMessageEmitter extends MessageEmitter {import org.xml.sax.SAXException;import nu.validator.source.SourceHandler;import nu.validator.messages.types.MessageType;import nu.validator.json.JsonHandler;package nu.validator.messages; */ * DEALINGS IN THE SOFTWARE. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  * * all copies or substantial portions of the Software. * The above copyright notice and this permission notice shall be included in  * * Software is furnished to do so, subject to the following conditions: * and/or sell copies of the Software, and to permit persons to whom the  * the rights to use, copy, modify, merge, publish, distribute, sublicense,  * to deal in the Software without restriction, including without limitation  * copy of this software and associated documentation files (the "Software"),  * Permission is hereby granted, free of charge, to any person obtaining a  * * Copyright (c) 2007 Mozilla Foundation/*ad&?S????~_YXP4,????????E=/?
?
?
{
A
;
:
2
?????????7)???qkjb?
?
i
J
'

?	?	?	?	{	u	t	l	-	%		??????OG9???????J}    }        return messageTextHandler;        handler.startStr}    }        return messageTextHandler;        handler.startString();        handler.key("message");    public MessageTextHandler startText() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#startText()    /**    }        return extractHandler;        handler.key("extract");    public SourceHandler startSource() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#startSource()    /**    }        arrayOpen = true;        handler.startArray();        handler.key("messages");        }            handler.string(documentUri);            handler.key("url");        if (documentUri != null) {        handler.startObject();        handler.startDocument(callback);    public void startMessages(String documentUri, boolean willShowSource) throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#startMessages(java.lang.String, boolean)    /**    }        return new JsonSourceHandler(handler);        handler.key("source");        maybeCloseArray();    public SourceHandler startFullSource(int lineOffset) throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#startFullSource(int)    /**    }        handler.endString();    public void endText() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#endText()    /**    }        handler.number(extractHandler.getHiliteLength());        handler.key("hiliteLength");        handler.number(extractHandler.getHiliteStart());        handler.key("hiliteStart");    public void endSource() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#endSource()    /**    }        }            arrayOpen = false;            handler.endArray();        if (arrayOpen) {    private void maybeCloseArray() throws SAXException {     */     * @throws SAXException    /**    }        handler.endDocument();        handler.endObject();        maybeCloseArray();    public void endMessages() throws SAXException {    @Override     */ad?	?
(???}]=
???[1?
?
?
?
5
??{aKA???????SK=?
?
     * @see nu.validator.messages.MessageEmitter#endMessages()    /**    }    public void endFullSource() throws SAXException {    @Override     */     * @see nu.validator.messages.MessageEmitter#endFullSource()    /**    }        }            handler.string(subType);            handler.key("subType");        if (subType != null) {        String subType = type.getSubType();        }            }                        }                            handler.number(oneBasedFirstColumn);                                    handler.key("firstColumn");                if (oneBasedFirstColumn != oneBasedLastColumn) {                handler.number(oneBasedLastColumn);                                                handler.key("lastColumn");            if (oneBasedLastColumn != -1) {            }                handler.number(oneBasedFirstLine);                                handler.key("firstLine");            if (oneBasedFirstLine != oneBasedLastLine) {            handler.number(oneBasedLastLine);            handler.key("lastLine");        if (oneBasedLastLine != -1) {        }            handler.string(systemId);            handler.key("url");        if (systemId != null) {        handler.string(type.getSuperType());        handler.key("type");        handler.startObject();        assert arrayOpen;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy