< prev index next >
src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/NGCCRuntime.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +48,15 @@
* <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,11 +70,11 @@
* <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 <start>
+ * 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,12 +180,12 @@
* <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 <text/> and won't
- * be able to process <bar>.)
+ * 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,11 +196,11 @@
* <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 <text/>.
+ * 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,13 +211,13 @@
* 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 <text/>.
+ * must match to {@code <text/>}.
*
- * @param possiblyWhitespace
+ * @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,11 +517,11 @@
return "http://www.w3.org/XML/1998/namespace";
else return null; // prefix undefined
}
-// error reporting
+ // 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,11 +531,11 @@
}
-//
+ //
//
// trace functions
//
//
private int indent=0;
< prev index next >