jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/org/relaxng/datatype/helpers/StreamingValidatorImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2015, Thai Open Source Software Center Ltd |
2 * Copyright (c) 2005, 2010, Thai Open Source Software Center Ltd |
3 * All rights reserved. |
3 * All rights reserved. |
4 * |
4 * |
5 * Redistribution and use in source and binary forms, with or without |
5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are |
6 * modification, are permitted provided that the following conditions are |
7 * met: |
7 * met: |
44 * of streaming validation is not important. And this implementation |
44 * of streaming validation is not important. And this implementation |
45 * also shows you how to implement the DatatypeStreamingValidator interface. |
45 * also shows you how to implement the DatatypeStreamingValidator interface. |
46 * |
46 * |
47 * <p> |
47 * <p> |
48 * Typical usage would be: |
48 * Typical usage would be: |
49 * <PRE>{@code |
49 * <PRE><XMP> |
50 * class MyDatatype implements Datatype { |
50 * class MyDatatype implements Datatype { |
51 * .... |
51 * .... |
52 * public DatatypeStreamingValidator createStreamingValidator( ValidationContext context ) { |
52 * public DatatypeStreamingValidator createStreamingValidator( ValidationContext context ) { |
53 * return new StreamingValidatorImpl(this,context); |
53 * return new StreamingValidatorImpl(this,context); |
54 * } |
54 * } |
55 * .... |
55 * .... |
56 * } |
56 * } |
57 * }</PRE> |
57 * </XMP></PRE> |
58 * |
58 * |
59 * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a> |
59 * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a> |
60 */ |
60 */ |
61 public final class StreamingValidatorImpl implements DatatypeStreamingValidator { |
61 public final class StreamingValidatorImpl implements DatatypeStreamingValidator { |
62 |
62 |