Skip to content

Commit b3c9cb7

Browse files
committed
Javadoc
1 parent fcdcf61 commit b3c9cb7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

xml/src/main/java/org/springframework/xml/validation/XmlValidator.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
import org.xml.sax.SAXParseException;
2323

2424
/**
25-
* Simple processor that validates a given <code>Source</code>. Can be created via the
26-
* <code>XmlValidatorFactory</code>.
25+
* Simple processor that validates a given {@link Source}. Can be created via the {@link XmlValidatorFactory}.
2726
* <p/>
28-
* <code>XmlValidator</code> instances are designed to be thread safe.
27+
* Instances of this class are designed to be thread safe.
2928
*
3029
* @author Arjen Poutsma
3130
* @see XmlValidatorFactory#createValidator(org.springframework.core.io.Resource,String)
@@ -34,8 +33,8 @@
3433
public interface XmlValidator {
3534

3635
/**
37-
* Validates the given <code>Source</code>, and returns an array of <code>SAXParseException</code>s as result. The
38-
* array will be empty if no validation errors are found.
36+
* Validates the given {@link Source}, and returns an array of {@link SAXParseException}s as result. The array will
37+
* be empty if no validation errors are found.
3938
*
4039
* @param source the input document
4140
* @return an array of <code>SAXParseException</code>s
@@ -44,4 +43,4 @@ public interface XmlValidator {
4443
*/
4544
SAXParseException[] validate(Source source) throws IOException;
4645

47-
}
46+
}

xml/src/main/java/org/springframework/xml/validation/XmlValidatorFactory.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.xml.validation;
1818

1919
import java.io.IOException;
20+
import javax.xml.validation.Validator;
2021

2122
import org.apache.commons.logging.Log;
2223
import org.apache.commons.logging.LogFactory;
@@ -25,11 +26,11 @@
2526
import org.springframework.xml.JaxpVersion;
2627

2728
/**
28-
* Factory for <code>XmlValidator</code>s, being aware of JAXP 1.3 <code>XmlValidator</code>s, and JAXP 1.0 parsing
29+
* Factory for {@link XmlValidator} objects, being aware of JAXP 1.3 {@link Validator}s, and JAXP 1.0 parsing
2930
* capababilities. Mainly for internal use within the framework.
3031
* <p/>
3132
* The goal of this class is to avoid runtime dependencies on JAXP 1.3 by using the best validation implementation that
32-
* is available. Prefers JAXP 1.3 <code>XmlValidator</code> implementations to a custom, SAX-based implementation.
33+
* is available. Prefers JAXP 1.3 {@link XmlValidator} implementations to a custom, SAX-based implementation.
3334
*
3435
* @author Arjen Poutsma
3536
* @see XmlValidator
@@ -46,8 +47,8 @@ public abstract class XmlValidatorFactory {
4647
public static final String SCHEMA_RELAX_NG = "http://relaxng.org/ns/structure/1.0";
4748

4849
/**
49-
* Create a <code>XmlValidator</code> with the given schema resource and schema language type. The schema language
50-
* must be one of the <code>SCHEMA_XXX</code> constants.
50+
* Create a {@link XmlValidator} with the given schema resource and schema language type. The schema language must
51+
* be one of the <code>SCHEMA_XXX</code> constants.
5152
*
5253
* @param schemaResource a resource that locates the schema to validate against
5354
* @param schemaLanguage the language of the schema
@@ -64,8 +65,8 @@ public static XmlValidator createValidator(Resource schemaResource, String schem
6465
}
6566

6667
/**
67-
* Create a <code>XmlValidator</code> with the given schema resources and schema language type. The schema language
68-
* must be one of the <code>SCHEMA_XXX</code> constants.
68+
* Create a {@link XmlValidator} with the given schema resources and schema language type. The schema language must
69+
* be one of the <code>SCHEMA_XXX</code> constants.
6970
*
7071
* @param schemaResources an array of resource that locate the schemas to validate against
7172
* @param schemaLanguage the language of the schemas

0 commit comments

Comments
 (0)