8046443: A few typos in JAXP JavaDoc

Reviewed-by: dfuchs, chegar
This commit is contained in:
Joe Wang 2014-06-11 09:26:03 -07:00
parent bb1f242a9b
commit 4278bdac8d
20 changed files with 25 additions and 25 deletions

View file

@ -347,7 +347,7 @@ implements EntityReference {
* @see DocumentTypeImpl * @see DocumentTypeImpl
* @see EntityImpl * @see EntityImpl
*/ */
// The Xerces parser invokes callbacks for startEnityReference // The Xerces parser invokes callbacks for startEntityReference
// the parsed value of the entity EACH TIME, so it is actually // the parsed value of the entity EACH TIME, so it is actually
// easier to create the nodes through the callbacks rather than // easier to create the nodes through the callbacks rather than
// clone the Entity. // clone the Entity.

View file

@ -585,7 +585,7 @@ implements XMLDTDScanner, XMLComponent, XMLEntityHandler {
boolean reportEntity = fReportEntity; boolean reportEntity = fReportEntity;
if (name.startsWith("%")) { if (name.startsWith("%")) {
reportEntity = peekReportEntity(); reportEntity = peekReportEntity();
// check well-formedness of the enity // check well-formedness of the entity
int startMarkUpDepth = popPEStack(); int startMarkUpDepth = popPEStack();
// throw fatalError if this entity was incomplete and // throw fatalError if this entity was incomplete and
// was a freestanding decl // was a freestanding decl

View file

@ -2728,7 +2728,7 @@ public class XMLDocumentFragmentScannerImpl
//if the last section was character data //if the last section was character data
if(fLastSectionWasCharacterData){ if(fLastSectionWasCharacterData){
//if we dont encounter any CDATA or ENITY REFERENCE and current state is also not SCANNER_STATE_CHARACTER_DATA //if we dont encounter any CDATA or ENTITY REFERENCE and current state is also not SCANNER_STATE_CHARACTER_DATA
//return the last scanned charactrer data. //return the last scanned charactrer data.
if((fScannerState != SCANNER_STATE_CDATA) && (fScannerState != SCANNER_STATE_REFERENCE) if((fScannerState != SCANNER_STATE_CDATA) && (fScannerState != SCANNER_STATE_REFERENCE)
&& (fScannerState != SCANNER_STATE_CHARACTER_DATA)){ && (fScannerState != SCANNER_STATE_CHARACTER_DATA)){

View file

@ -1218,7 +1218,7 @@ public class XMLDTDValidator
// references appear in the document. // references appear in the document.
// REVISIT: this can be combined to a single check in // REVISIT: this can be combined to a single check in
// startEntity if we add one more argument in // startEntity if we add one more argument in
// startEnity, inAttrValue // startEntity, inAttrValue
String nonNormalizedValue = attributes.getNonNormalizedValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i);
if (nonNormalizedValue != null) { if (nonNormalizedValue != null) {
String entityName = getExternalEntityRefInAttrValue(nonNormalizedValue); String entityName = getExternalEntityRefInAttrValue(nonNormalizedValue);

View file

@ -32,7 +32,7 @@ public class DTMConfigurationException extends DTMException {
/** /**
* Create a new <code>DTMConfigurationException</code> with no * Create a new <code>DTMConfigurationException</code> with no
* detail mesage. * detail message.
*/ */
public DTMConfigurationException() { public DTMConfigurationException() {
super("Configuration Error"); super("Configuration Error");

View file

@ -352,7 +352,7 @@ public abstract class Entity {
} }
/**each 'external' parsed entity may have xml/text declaration containing version information /**each 'external' parsed entity may have xml/text declaration containing version information
* @return String version of the enity, for an internal entity version would be null * @return String version of the entity, for an internal entity version would be null
*/ */
public String getEntityVersion(){ public String getEntityVersion(){
return version ; return version ;

View file

@ -34,7 +34,7 @@ import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
* @author Neeraj * @author Neeraj
* *
* This class wraps XMLInputSource and is also capable of telling wether application * This class wraps XMLInputSource and is also capable of telling wether application
* returned XMLStreamReader or not when XMLResolver.resolveEnity * returned XMLStreamReader or not when XMLResolver.resolveEntity
* was called. * was called.
*/ */
public class StaxXMLInputSource { public class StaxXMLInputSource {

View file

@ -36,7 +36,7 @@ public class DatatypeConfigurationException extends Exception {
/** /**
* <p>Create a new <code>DatatypeConfigurationException</code> with * <p>Create a new <code>DatatypeConfigurationException</code> with
* no specified detail mesage and cause.</p> * no specified detail message and cause.</p>
*/ */
public DatatypeConfigurationException() { public DatatypeConfigurationException() {

View file

@ -119,7 +119,7 @@ public abstract class DatatypeFactory {
Pattern.compile("[^YM]*[DT].*"); Pattern.compile("[^YM]*[DT].*");
/** /**
* <p>Protected constructor to prevent instaniation outside of package.</p> * <p>Protected constructor to prevent instantiation outside of package.</p>
* *
* <p>Use {@link #newInstance()} to create a <code>DatatypeFactory</code>.</p> * <p>Use {@link #newInstance()} to create a <code>DatatypeFactory</code>.</p>
*/ */

View file

@ -83,7 +83,7 @@ public class QName implements Serializable {
* *
* <p>To workaround this issue, serialVersionUID is set with either * <p>To workaround this issue, serialVersionUID is set with either
* a default value or a compatibility value. To use the * a default value or a compatibility value. To use the
* compatiblity value, set the system property:</p> * compatibility value, set the system property:</p>
* *
* <code>com.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0</code> * <code>com.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0</code>
* *

View file

@ -423,7 +423,7 @@ public abstract class DocumentBuilderFactory {
* <ul> * <ul>
* <li> * <li>
* <code>true</code>: the implementation will limit XML processing to conform to implementation limits. * <code>true</code>: the implementation will limit XML processing to conform to implementation limits.
* Examples include enity expansion limits and XML Schema constructs that would consume large amounts of resources. * Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
* If XML processing is limited for security reasons, it will be reported via a call to the registered * If XML processing is limited for security reasons, it will be reported via a call to the registered
* {@link org.xml.sax.ErrorHandler#fatalError(SAXParseException exception)}. * {@link org.xml.sax.ErrorHandler#fatalError(SAXParseException exception)}.
* See {@link DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandler errorHandler)}. * See {@link DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandler errorHandler)}.
@ -517,7 +517,7 @@ public abstract class DocumentBuilderFactory {
* modified DOM trees. * modified DOM trees.
* *
* <p> * <p>
* Initialy, null is set as the {@link Schema}. * Initially, null is set as the {@link Schema}.
* *
* <p> * <p>
* This processing will take effect even if * This processing will take effect even if
@ -531,7 +531,7 @@ public abstract class DocumentBuilderFactory {
* exception when the {@link #newDocumentBuilder()} is invoked.</p> * exception when the {@link #newDocumentBuilder()} is invoked.</p>
* *
* *
* <h4>Note for implmentors</h4> * <h4>Note for implementors</h4>
* *
* <p> * <p>
* A parser must be able to work with any {@link Schema} * A parser must be able to work with any {@link Schema}

View file

@ -45,7 +45,7 @@ public class FactoryConfigurationError extends Error {
/** /**
* Create a new <code>FactoryConfigurationError</code> with no * Create a new <code>FactoryConfigurationError</code> with no
* detail mesage. * detail message.
*/ */
public FactoryConfigurationError() { public FactoryConfigurationError() {

View file

@ -35,7 +35,7 @@ public class ParserConfigurationException extends Exception {
/** /**
* Create a new <code>ParserConfigurationException</code> with no * Create a new <code>ParserConfigurationException</code> with no
* detail mesage. * detail message.
*/ */
public ParserConfigurationException() { public ParserConfigurationException() {

View file

@ -69,7 +69,7 @@ import org.xml.sax.helpers.DefaultHandler;
* given {@link org.xml.sax.HandlerBase} or the * given {@link org.xml.sax.HandlerBase} or the
* {@link org.xml.sax.helpers.DefaultHandler} are called.<p> * {@link org.xml.sax.helpers.DefaultHandler} are called.<p>
* *
* Implementors of this class which wrap an underlaying implementation * Implementors of this class which wrap an underlying implementation
* can consider using the {@link org.xml.sax.helpers.ParserAdapter} * can consider using the {@link org.xml.sax.helpers.ParserAdapter}
* class to initially adapt their SAX1 implementation to work under * class to initially adapt their SAX1 implementation to work under
* this revised class. * this revised class.
@ -79,7 +79,7 @@ import org.xml.sax.helpers.DefaultHandler;
public abstract class SAXParser { public abstract class SAXParser {
/** /**
* <p>Protected constructor to prevent instaniation. * <p>Protected constructor to prevent instantiation.
* Use {@link javax.xml.parsers.SAXParserFactory#newSAXParser()}.</p> * Use {@link javax.xml.parsers.SAXParserFactory#newSAXParser()}.</p>
*/ */
protected SAXParser () { protected SAXParser () {
@ -393,10 +393,10 @@ public abstract class SAXParser {
} }
/** /**
* Returns the SAX parser that is encapsultated by the * Returns the SAX parser that is encapsulated by the
* implementation of this class. * implementation of this class.
* *
* @return The SAX parser that is encapsultated by the * @return The SAX parser that is encapsulated by the
* implementation of this class. * implementation of this class.
* *
* @throws SAXException If any SAX errors occur during processing. * @throws SAXException If any SAX errors occur during processing.

View file

@ -359,7 +359,7 @@ public abstract class SAXParserFactory {
* is responsible to make sure that the application will receive * is responsible to make sure that the application will receive
* those modified event stream.</p> * those modified event stream.</p>
* *
* <p>Initialy, <code>null</code> is set as the {@link Schema}.</p> * <p>Initially, <code>null</code> is set as the {@link Schema}.</p>
* *
* <p>This processing will take effect even if * <p>This processing will take effect even if
* the {@link #isValidating()} method returns <code>false</code>. * the {@link #isValidating()} method returns <code>false</code>.

View file

@ -28,7 +28,7 @@ package javax.xml.transform;
/** /**
* <p>To provide customized error handling, implement this interface and * <p>To provide customized error handling, implement this interface and
* use the <code>setErrorListener</code> method to register an instance of the * use the <code>setErrorListener</code> method to register an instance of the
* implmentation with the {@link javax.xml.transform.Transformer}. The * implementation with the {@link javax.xml.transform.Transformer}. The
* <code>Transformer</code> then reports all errors and warnings through this * <code>Transformer</code> then reports all errors and warnings through this
* interface.</p> * interface.</p>
* *

View file

@ -32,7 +32,7 @@ public class TransformerConfigurationException extends TransformerException {
/** /**
* Create a new <code>TransformerConfigurationException</code> with no * Create a new <code>TransformerConfigurationException</code> with no
* detail mesage. * detail message.
*/ */
public TransformerConfigurationException() { public TransformerConfigurationException() {
super("Configuration Error"); super("Configuration Error");

View file

@ -42,7 +42,7 @@ public class TransformerFactoryConfigurationError extends Error {
/** /**
* Create a new <code>TransformerFactoryConfigurationError</code> with no * Create a new <code>TransformerFactoryConfigurationError</code> with no
* detail mesage. * detail message.
*/ */
public TransformerFactoryConfigurationError() { public TransformerFactoryConfigurationError() {

View file

@ -358,7 +358,7 @@ public abstract class SchemaFactory {
* <ul> * <ul>
* <li> * <li>
* <code>true</code>: the implementation will limit XML processing to conform to implementation limits. * <code>true</code>: the implementation will limit XML processing to conform to implementation limits.
* Examples include enity expansion limits and XML Schema constructs that would consume large amounts of resources. * Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
* If XML processing is limited for security reasons, it will be reported via a call to the registered * If XML processing is limited for security reasons, it will be reported via a call to the registered
* {@link ErrorHandler#fatalError(SAXParseException exception)}. * {@link ErrorHandler#fatalError(SAXParseException exception)}.
* See {@link #setErrorHandler(ErrorHandler errorHandler)}. * See {@link #setErrorHandler(ErrorHandler errorHandler)}.

View file

@ -379,7 +379,7 @@ public abstract class ValidatorHandler implements ContentHandler {
* <ul> * <ul>
* <li> * <li>
* <code>true</code>: the implementation will limit XML processing to conform to implementation limits. * <code>true</code>: the implementation will limit XML processing to conform to implementation limits.
* Examples include enity expansion limits and XML Schema constructs that would consume large amounts of resources. * Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
* If XML processing is limited for security reasons, it will be reported via a call to the registered * If XML processing is limited for security reasons, it will be reported via a call to the registered
* {@link ErrorHandler#fatalError(SAXParseException exception)}. * {@link ErrorHandler#fatalError(SAXParseException exception)}.
* See {@link #setErrorHandler(ErrorHandler errorHandler)}. * See {@link #setErrorHandler(ErrorHandler errorHandler)}.