jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/parser/XSOMParser.java
changeset 33547 e4c76ac38b12
parent 25871 b80b84e87032
equal deleted inserted replaced
33390:d131f4b8433a 33547:e4c76ac38b12
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   213     public EntityResolver getEntityResolver() {
   213     public EntityResolver getEntityResolver() {
   214         return entityResolver;
   214         return entityResolver;
   215     }
   215     }
   216     /**
   216     /**
   217      * Set an entity resolver that is used to resolve things
   217      * Set an entity resolver that is used to resolve things
   218      * like <xsd:import> and <xsd:include>.
   218      * like {@code <xsd:import>} and {@code <xsd:include>}.
   219      */
   219      */
   220     public void setEntityResolver( EntityResolver resolver ) {
   220     public void setEntityResolver( EntityResolver resolver ) {
   221         this.entityResolver = resolver;
   221         this.entityResolver = resolver;
   222     }
   222     }
   223     public ErrorHandler getErrorHandler() {
   223     public ErrorHandler getErrorHandler() {
   237      * Annotation parser can be used to parse application-specific
   237      * Annotation parser can be used to parse application-specific
   238      * annotations inside a schema.
   238      * annotations inside a schema.
   239      *
   239      *
   240      * <p>
   240      * <p>
   241      * For each annotation, new instance of this class will be
   241      * For each annotation, new instance of this class will be
   242      * created and used to parse &lt;xs:annotation>.
   242      * created and used to parse {@code <xs:annotation>}.
   243      */
   243      */
   244     public void setAnnotationParser( final Class annParser ) {
   244     public void setAnnotationParser( final Class annParser ) {
   245         setAnnotationParser( new AnnotationParserFactory() {
   245         setAnnotationParser( new AnnotationParserFactory() {
   246             public AnnotationParser create() {
   246             public AnnotationParser create() {
   247                 try {
   247                 try {