< prev index next >

src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/NGCCRuntime.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 48,58 **** --- 48,62 ---- * <li>Keep track of all Attributes. * * <li>manage mapping between namespace URIs and prefixes. * * <li>TODO: provide support for interleaving. + * </ol> * + * <p><b> + * Auto-generated, do not edit. + * </b></p> * @version $Id: NGCCRuntime.java,v 1.15 2002/09/29 02:55:48 okajima Exp $ * @author Kohsuke Kawaguchi (kk@kohsuke.org) */ public class NGCCRuntime implements ContentHandler, NGCCEventSource {
*** 66,76 **** * <p> * This method can be called right after the object is created * or the reset method is called. You can't replace the root * handler while parsing is in progress. * <p> ! * Usually a generated class that corresponds to the &lt;start> * pattern will be used as the root handler, but any NGCCHandler * can be a root handler. * * @exception IllegalStateException * If this method is called but it doesn't satisfy the --- 70,80 ---- * <p> * This method can be called right after the object is created * or the reset method is called. You can't replace the root * handler while parsing is in progress. * <p> ! * Usually a generated class that corresponds to the {@code <start>} * pattern will be used as the root handler, but any NGCCHandler * can be a root handler. * * @exception IllegalStateException * If this method is called but it doesn't satisfy the
*** 176,187 **** * <pre>{@code * <foo> <bar/></foo> * }</pre> * * Then this first space needs to be ignored (for otherwise, we will ! * end up treating this space as the match to &lt;text/> and won't ! * be able to process &lt;bar>.) * * Now assume the following instance: * <pre>{@code * <foo/> * }</pre> --- 180,191 ---- * <pre>{@code * <foo> <bar/></foo> * }</pre> * * Then this first space needs to be ignored (for otherwise, we will ! * end up treating this space as the match to {@code <text/>} and won't ! * be able to process {@code <bar>}.) * * Now assume the following instance: * <pre>{@code * <foo/> * }</pre>
*** 192,202 **** * <p> * This is very difficult to solve in general, but one seemingly * easy solution is to use the type of next event. If a text is * followed by a start tag, it follows from the constraint on * RELAX NG that that text must be either whitespaces or a match ! * to &lt;text/>. * * <p> * On the contrary, if a text is followed by a end tag, then it * cannot be whitespace unless the content model can accept empty, * in which case sending a text event will be harmlessly ignored --- 196,206 ---- * <p> * This is very difficult to solve in general, but one seemingly * easy solution is to use the type of next event. If a text is * followed by a start tag, it follows from the constraint on * RELAX NG that that text must be either whitespaces or a match ! * to {@code <text/>}. * * <p> * On the contrary, if a text is followed by a end tag, then it * cannot be whitespace unless the content model can accept empty, * in which case sending a text event will be harmlessly ignored
*** 207,219 **** * behavior of this method. * * <p> * TODO: according to the constraint of RELAX NG, if characters * follow an end tag, then they must be either whitespaces or ! * must match to &lt;text/>. * ! * @param possiblyWhitespace * True if the buffered character can be ignorabale. False if * it needs to be consumed. */ private void processPendingText(boolean ignorable) throws SAXException { if(ignorable && text.toString().trim().length()==0) --- 211,223 ---- * behavior of this method. * * <p> * TODO: according to the constraint of RELAX NG, if characters * follow an end tag, then they must be either whitespaces or ! * must match to {@code <text/>}. * ! * @param ignorable * True if the buffered character can be ignorabale. False if * it needs to be consumed. */ private void processPendingText(boolean ignorable) throws SAXException { if(ignorable && text.toString().trim().length()==0)
*** 513,523 **** return "http://www.w3.org/XML/1998/namespace"; else return null; // prefix undefined } ! // error reporting protected void unexpectedX(String token) throws SAXException { throw new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", new Object[]{ token, --- 517,527 ---- return "http://www.w3.org/XML/1998/namespace"; else return null; // prefix undefined } ! // error reporting protected void unexpectedX(String token) throws SAXException { throw new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", new Object[]{ token,
*** 527,537 **** } ! // // // trace functions // // private int indent=0; --- 531,541 ---- } ! // // // trace functions // // private int indent=0;
< prev index next >