File: SchemaFactory.html

package info (click to toggle)
libsaxon-java 1%3A6.5.5-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 16,576 kB
  • sloc: java: 36,724; xml: 7,470; makefile: 25; sh: 1
file content (990 lines) | stat: -rw-r--r-- 50,504 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_06) on Thu Nov 24 12:17:56 GMT 2005 -->
<TITLE>
SchemaFactory
</TITLE>

<META NAME="keywords" CONTENT="javax.xml.validation.SchemaFactory class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="SchemaFactory";
}
</SCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/xml/validation/SchemaFactoryLoader.html" title="class in javax.xml.validation"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SchemaFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.xml.validation</FONT>
<BR>
Class SchemaFactory</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.xml.validation.SchemaFactory</B>
</PRE>
<HR>
<DL>
<DT>public abstract class <B>SchemaFactory</B><DT>extends java.lang.Object</DL>

<P>
Factory that creates <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> objects&#x2E; Entry-point to
 the validation API.

 <p>
 <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> is a schema compiler. It reads external
 representations of schemas and prepares them for validation.
 
 <p>
 The <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> class is not thread-safe. In other words,
 it is the application's responsibility to ensure that at most
 one thread is using a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> object at any
 given moment. Implementations are encouraged to mark methods
 as <tt>synchronized</tt> to protect themselves from broken clients.
 
 <p>
 <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> is not re-entrant. While one of the
 <code>newSchema</code> methods is being invoked, applications
 may not attempt to recursively invoke the <code>newSchema</code> method,
 even from the same thread.
 
 <h2><a name="schemaLanguage"></a>Schema Language</h2>
 <p>
 This spec uses a namespace URI to designate a schema language.
 The following table shows the values defined by this specification.
 <p>
 To be compliant with the spec, the implementation 
 is only required to support W3C XML Schema 1.0. However,
 if it chooses to support other schema languages listed here,
 it must conform to the relevant behaviors described in this spec.
 
 <p>
 Schema languages not listed here are expected to
 introduce their own URIs to represent themselves.  
 The <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> class is capable of locating other
 implementations for other schema languages at run-time.
 
 <p>
 Note that because the XML DTD is strongly tied to the parsing process
 and has a significant effect on the parsing process, it is impossible
 to define the DTD validation as a process independent from parsing. 
 For this reason, this specification does not define the semantics for
 the XML DTD. This doesn't prohibit implentors from implementing it
 in a way they see fit, but <em>users are warned that any DTD
 validation implemented on this interface necessarily deviate from
 the XML DTD semantics as defined in the XML 1.0</em>.
 
 <table border="1" cellpadding="2">
   <thead>
     <tr>
       <th>value</th>
       <th>language</th>
     </tr>
   </thead>
   <tbody>
     <tr>
       <td><A HREF="../../../javax/xml/XMLConstants.html#W3C_XML_SCHEMA_NS_URI"><CODE>XMLConstants.W3C_XML_SCHEMA_NS_URI</CODE></A> ("<code>http://www.w3.org/2001/XMLSchema</code>")</td>
       <td><a href="http://www.w3.org/TR/xmlschema-1">W3C XML Schema 1.0</a></td>
     </tr>
     <tr>
       <td><A HREF="../../../javax/xml/XMLConstants.html#RELAXNG_NS_URI"><CODE>XMLConstants.RELAXNG_NS_URI</CODE></A> ("<code>http://relaxng.org/ns/structure/1.0</code>")</td>
       <td><a href="http://www.relaxng.org/">RELAX NG 1.0</a></td>
     </tr>
   </tbody>
 </table>
<P>

<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.5</DD>
</DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#SchemaFactory()">SchemaFactory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for derived classes.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;org.xml.sax.ErrorHandler</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#getErrorHandler()">getErrorHandler</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current <CODE>ErrorHandler</CODE> set to this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#getFeature(java.lang.String)">getFeature</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look up the value of a feature flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look up the value of a property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;org.w3c.dom.ls.LSResourceResolver</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#getResourceResolver()">getResourceResolver</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current <CODE>LSResourceResolver</CODE> set to this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#isSchemaLanguageSupported(java.lang.String)">isSchemaLanguageSupported</A></B>(java.lang.String&nbsp;schemaLanguage)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is specified schema supported by this <code>SchemaFactory</code>?</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation">SchemaFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newInstance(java.lang.String)">newInstance</A></B>(java.lang.String&nbsp;schemaLanguage)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lookup an implementation of the <code>SchemaFactory</code> that supports the specified
 schema language and return it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema()">newSchema</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a special <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(java.io.File)">newSchema</A></B>(java.io.File&nbsp;schema)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the specified <code>File</code> as a schema and returns it as a <code>Schema</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(javax.xml.transform.Source)">newSchema</A></B>(<A HREF="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</A>&nbsp;schema)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the specified source as a schema and returns it as a schema.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(javax.xml.transform.Source[])">newSchema</A></B>(<A HREF="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</A>[]&nbsp;schemas)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the specified source(s) as a schema and returns it as a schema.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(java.net.URL)">newSchema</A></B>(java.net.URL&nbsp;schema)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the specified <code>URL</code> as a schema and returns it as a <code>Schema</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)">setErrorHandler</A></B>(org.xml.sax.ErrorHandler&nbsp;errorHandler)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <CODE>ErrorHandler</CODE> to receive errors encountered
 during the <code>newSchema</code> method invocation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#setFeature(java.lang.String, boolean)">setFeature</A></B>(java.lang.String&nbsp;name,
           boolean&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of a feature flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String&nbsp;name,
            java.lang.Object&nbsp;object)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of a property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/validation/SchemaFactory.html#setResourceResolver(org.w3c.dom.ls.LSResourceResolver)">setResourceResolver</A></B>(org.w3c.dom.ls.LSResourceResolver&nbsp;resourceResolver)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <CODE>LSResourceResolver</CODE> to customize
 resource resolution when parsing schemas.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="SchemaFactory()"><!-- --></A><H3>
SchemaFactory</H3>
<PRE>
protected <B>SchemaFactory</B>()</PRE>
<DL>
<DD><p>Constructor for derived classes.</p>
 
 <p>The constructor does nothing.</p>
 
 <p>Derived classes must create <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> objects that have
 <code>null</code> <CODE>ErrorHandler</CODE> and
 <code>null</code> <CODE>LSResourceResolver</CODE>.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="newInstance(java.lang.String)"><!-- --></A><H3>
newInstance</H3>
<PRE>
public static final <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation">SchemaFactory</A> <B>newInstance</B>(java.lang.String&nbsp;schemaLanguage)</PRE>
<DL>
<DD><p>Lookup an implementation of the <code>SchemaFactory</code> that supports the specified
 schema language and return it.</p>
 
 <p>To find a <code>SchemaFactory</code> object for a given schema language,
 this method looks the following places in the following order
 where "the class loader" refers to the context class loader:</p>
 <ol>
  <li>
     If the system property
     <code>"javax.xml.validation.SchemaFactory:<i>schemaLanguage</i>"</code>
     is present (where <i>schemaLanguage</i> is the parameter
     to this method), then its value is read
     as a class name. The method will try to
     create a new instance of this class by using the class loader,
     and returns it if it is successfully created.
   </li>
   <li>
     <code>$java.home/lib/jaxp.properties</code> is read and
     the value associated with the key being the system property above
     is looked for. If present, the value is processed just like above.
   </li>
   <li>
     <p>The class loader is asked for service provider provider-configuration files matching
     <code>javax.xml.validation.SchemaFactory</code> in the resource directory META-INF/services.
     See the JAR File Specification for file format and parsing rules.
     Each potential service provider is required to implement the method:</p>
     <pre>
        <A HREF="../../../javax/xml/validation/SchemaFactory.html#isSchemaLanguageSupported(java.lang.String)"><CODE>isSchemaLanguageSupported(String schemaLanguage)</CODE></A>
     </pre> 
     The first service provider found in class loader order that supports the specified schema language is returned.
   </li>
   <li>
     Platform default <code>SchemaFactory</code> is located
     in a implementation specific way. There must be a platform default
     <code>SchemaFactory</code> for W3C XML Schema.
   </li>
 </ol>
 
 <p>If everything fails, <CODE>IllegalArgumentException</CODE> will be thrown.</p>
 
 <p><strong>Tip for Trouble-shooting:</strong></p>
 <p>See <CODE>Properties.load(java.io.InputStream)</CODE> for
 exactly how a property file is parsed. In particular, colons ':'
 need to be escaped in a property file, so make sure schema language
 URIs are properly escaped in it. For example:</p>
 <pre>
 http\://www.w3.org/2001/XMLSchema=org.acme.foo.XSSchemaFactory
 </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schemaLanguage</CODE> - Specifies the schema language which the returned
      SchemaFactory will understand. See
      <a href="#schemaLanguage">the list of available
      schema languages</a> for the possible values.
<DT><B>Returns:</B><DD>New instance of a <code>SchemaFactory</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If no implementation of the schema language is available.
<DD><CODE>java.lang.NullPointerException</CODE> - If the <tt>schemLanguage</tt> parameter is null.</DL>
</DD>
</DL>
<HR>

<A NAME="isSchemaLanguageSupported(java.lang.String)"><!-- --></A><H3>
isSchemaLanguageSupported</H3>
<PRE>
public abstract boolean <B>isSchemaLanguageSupported</B>(java.lang.String&nbsp;schemaLanguage)</PRE>
<DL>
<DD><p>Is specified schema supported by this <code>SchemaFactory</code>?</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schemaLanguage</CODE> - Specifies the schema language which the returned <code>SchemaFactory</code> will understand.
    <code>schemaLanguage</code> must specify a <a href="#schemaLanguage">valid</a> schema language.
<DT><B>Returns:</B><DD><code>true</code> if <code>SchemaFactory</code> supports <code>schemaLanguage</code>, else <code>false</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - If <code>schemaLanguage</code> is <code>null</code>.
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If <code>schemaLanguage.length() == 0</code>
   or <code>schemaLanguage</code> does not specify a <a href="#schemaLanguage">valid</a> schema language.</DL>
</DD>
</DL>
<HR>

<A NAME="getFeature(java.lang.String)"><!-- --></A><H3>
getFeature</H3>
<PRE>
public boolean <B>getFeature</B>(java.lang.String&nbsp;name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException</PRE>
<DL>
<DD>Look up the value of a feature flag.

 <p>The feature name is any fully-qualified URI.  It is
 possible for a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> to recognize a feature name but
 temporarily be unable to return its value.

 <p>Implementors are free (and encouraged) to invent their own features,
 using names built on their own URIs.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The feature name, which is a non-null fully-qualified URI.
<DT><B>Returns:</B><DD>The current value of the feature (true or false).
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXNotRecognizedException</CODE> - If the feature
            value can't be assigned or retrieved.
<DD><CODE>org.xml.sax.SAXNotSupportedException</CODE> - When the
            <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> recognizes the feature name but 
            cannot determine its value at this time.
<DD><CODE>java.lang.NullPointerException</CODE> - if the name parameter is null.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/validation/SchemaFactory.html#setFeature(java.lang.String, boolean)"><CODE>setFeature(String, boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setFeature(java.lang.String, boolean)"><!-- --></A><H3>
setFeature</H3>
<PRE>
public void <B>setFeature</B>(java.lang.String&nbsp;name,
                       boolean&nbsp;value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException</PRE>
<DL>
<DD>Set the value of a feature flag.

 <p>
 Feature can be used to control the way a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>
 parses schemas, although <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>s are not required
 to recognize any specific feature names.</p>

 <p>The feature name is any fully-qualified URI.  It is
 possible for a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> to expose a feature value but
 to be unable to change the current value.</p>

 <p>All implementations are required to support the <A HREF="../../../javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING"><CODE>XMLConstants.FEATURE_SECURE_PROCESSING</CODE></A> feature.
 When the feature is:</p>
 <ul>
   <li>
     <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.
     If XML processing is limited for security reasons, it will be reported via a call to the registered
     <CODE>ErrorHandler.fatalError(SAXParseException exception)</CODE>.
     See <A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>setErrorHandler(ErrorHandler errorHandler)</CODE></A>.
   </li>
   <li>
     <code>false</code>: the implementation will processing XML according to the XML specifications without
     regard to possible implementation limits.
   </li>
 </ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The feature name, which is a non-null fully-qualified URI.<DD><CODE>value</CODE> - The requested value of the feature (true or false).
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXNotRecognizedException</CODE> - If the feature
            value can't be assigned or retrieved.
<DD><CODE>org.xml.sax.SAXNotSupportedException</CODE> - When the
            <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> recognizes the feature name but 
            cannot set the requested value.
<DD><CODE>java.lang.NullPointerException</CODE> - if the name parameter is null.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/validation/SchemaFactory.html#getFeature(java.lang.String)"><CODE>getFeature(String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setProperty</H3>
<PRE>
public void <B>setProperty</B>(java.lang.String&nbsp;name,
                        java.lang.Object&nbsp;object)
                 throws org.xml.sax.SAXNotRecognizedException,
                        org.xml.sax.SAXNotSupportedException</PRE>
<DL>
<DD>Set the value of a property.

 <p>The property name is any fully-qualified URI.  It is
 possible for a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> to recognize a property name but
 to be unable to change the current value.</p>

 <p><A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>s are not required to recognize setting
 any specific property names.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The property name, which is a non-null fully-qualified URI.<DD><CODE>object</CODE> - The requested value for the property.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXNotRecognizedException</CODE> - If the property
            value can't be assigned or retrieved.
<DD><CODE>org.xml.sax.SAXNotSupportedException</CODE> - When the
            <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> recognizes the property name but 
            cannot set the requested value.
<DD><CODE>java.lang.NullPointerException</CODE> - if the name parameter is null.</DL>
</DD>
</DL>
<HR>

<A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
getProperty</H3>
<PRE>
public java.lang.Object <B>getProperty</B>(java.lang.String&nbsp;name)
                             throws org.xml.sax.SAXNotRecognizedException,
                                    org.xml.sax.SAXNotSupportedException</PRE>
<DL>
<DD>Look up the value of a property.

 <p>The property name is any fully-qualified URI.  It is
 possible for a <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> to recognize a property name but
 temporarily be unable to return its value.</p>

 <p><A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>s are not required to recognize any specific
 property names.</p>

 <p>Implementors are free (and encouraged) to invent their own properties,
 using names built on their own URIs.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The property name, which is a non-null fully-qualified URI.
<DT><B>Returns:</B><DD>The current value of the property.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXNotRecognizedException</CODE> - If the property
            value can't be assigned or retrieved.
<DD><CODE>org.xml.sax.SAXNotSupportedException</CODE> - When the
            XMLReader recognizes the property name but 
            cannot determine its value at this time.
<DD><CODE>java.lang.NullPointerException</CODE> - if the name parameter is null.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/validation/SchemaFactory.html#setProperty(java.lang.String, java.lang.Object)"><CODE>setProperty(String, Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setErrorHandler(org.xml.sax.ErrorHandler)"><!-- --></A><H3>
setErrorHandler</H3>
<PRE>
public abstract void <B>setErrorHandler</B>(org.xml.sax.ErrorHandler&nbsp;errorHandler)</PRE>
<DL>
<DD>Sets the <CODE>ErrorHandler</CODE> to receive errors encountered
 during the <code>newSchema</code> method invocation.
 
 <p>
 Error handler can be used to customize the error handling process
 during schema parsing. When an <CODE>ErrorHandler</CODE> is set,
 errors found during the parsing of schemas will be first sent
 to the <CODE>ErrorHandler</CODE>.
 
 <p>
 The error handler can abort the parsing of a schema immediately
 by throwing <CODE>SAXException</CODE> from the handler. Or for example
 it can print an error to the screen and try to continue the
 processing by returning normally from the <CODE>ErrorHandler</CODE> 
 
 <p>
 If any <CODE>Throwable</CODE> (or instances of its derived classes)
 is thrown from an <CODE>ErrorHandler</CODE>,
 the caller of the <code>newSchema</code> method will be thrown
 the same <CODE>Throwable</CODE> object.
 
 <p>
 <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> is not allowed to
 throw <CODE>SAXException</CODE> without first reporting it to
 <CODE>ErrorHandler</CODE>.
 
 <p>
 Applications can call this method even during a <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A>
 is being parsed. 
 
 <p>
 When the <CODE>ErrorHandler</CODE> is null, the implementation will
 behave as if the following <CODE>ErrorHandler</CODE> is set:
 <pre>
 class DraconianErrorHandler implements <CODE>ErrorHandler</CODE> {
     public void fatalError( <CODE>SAXParseException</CODE> e ) throws <CODE>SAXException</CODE> {
         throw e;
     }
     public void error( <CODE>SAXParseException</CODE> e ) throws <CODE>SAXException</CODE> {
         throw e;
     }
     public void warning( <CODE>SAXParseException</CODE> e ) throws <CODE>SAXException</CODE> {
         // noop
     }
 }
 </pre>
 
 <p>
 When a new <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> object is created, initially
 this field is set to null. This field will <em>NOT</em> be
 inherited to <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A>s, <A HREF="../../../javax/xml/validation/Validator.html" title="class in javax.xml.validation"><CODE>Validator</CODE></A>s, or 
 <A HREF="../../../javax/xml/validation/ValidatorHandler.html" title="class in javax.xml.validation"><CODE>ValidatorHandler</CODE></A>s that are created from this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>errorHandler</CODE> - A new error handler to be set. This parameter can be null.</DL>
</DD>
</DL>
<HR>

<A NAME="getErrorHandler()"><!-- --></A><H3>
getErrorHandler</H3>
<PRE>
public abstract org.xml.sax.ErrorHandler <B>getErrorHandler</B>()</PRE>
<DL>
<DD>Gets the current <CODE>ErrorHandler</CODE> set to this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>This method returns the object that was last set through
      the <A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>setErrorHandler(ErrorHandler)</CODE></A> method, or null
      if that method has never been called since this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>
      has created.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>setErrorHandler(ErrorHandler)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setResourceResolver(org.w3c.dom.ls.LSResourceResolver)"><!-- --></A><H3>
setResourceResolver</H3>
<PRE>
public abstract void <B>setResourceResolver</B>(org.w3c.dom.ls.LSResourceResolver&nbsp;resourceResolver)</PRE>
<DL>
<DD>Sets the <CODE>LSResourceResolver</CODE> to customize
 resource resolution when parsing schemas.
 
 <p>
 <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> uses a <CODE>LSResourceResolver</CODE>
 when it needs to locate external resources while parsing schemas,
 although exactly what constitutes "locating external resources" is
 up to each schema language. For example, for W3C XML Schema,
 this includes files <tt>&lt;include></tt>d or <tt>&lt;import></tt>ed,
 and DTD referenced from schema files, etc.
 
 <p>
 Applications can call this method even during a <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A>
 is being parsed. 
 
 <p>
 When the <CODE>LSResourceResolver</CODE> is null, the implementation will
 behave as if the following <CODE>LSResourceResolver</CODE> is set:
 <pre>
 class DumbDOMResourceResolver implements <CODE>LSResourceResolver</CODE> {
     public <CODE>LSInput</CODE> resolveResource(
         String publicId, String systemId, String baseURI) {
         
         return null; // always return null
     }
 }
 </pre>
 
 <p>
 If a <CODE>LSResourceResolver</CODE> throws a <CODE>RuntimeException</CODE>
  (or instances of its derived classes),
 then the <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> will abort the parsing and  
 the caller of the <code>newSchema</code> method will receive
 the same <CODE>RuntimeException</CODE>. 
 
 <p>
 When a new <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> object is created, initially
 this field is set to null.  This field will <em>NOT</em> be
 inherited to <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A>s, <A HREF="../../../javax/xml/validation/Validator.html" title="class in javax.xml.validation"><CODE>Validator</CODE></A>s, or 
 <A HREF="../../../javax/xml/validation/ValidatorHandler.html" title="class in javax.xml.validation"><CODE>ValidatorHandler</CODE></A>s that are created from this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resourceResolver</CODE> - A new resource resolver to be set. This parameter can be null.</DL>
</DD>
</DL>
<HR>

<A NAME="getResourceResolver()"><!-- --></A><H3>
getResourceResolver</H3>
<PRE>
public abstract org.w3c.dom.ls.LSResourceResolver <B>getResourceResolver</B>()</PRE>
<DL>
<DD>Gets the current <CODE>LSResourceResolver</CODE> set to this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>This method returns the object that was last set through
      the <A HREF="../../../javax/xml/validation/SchemaFactory.html#setResourceResolver(org.w3c.dom.ls.LSResourceResolver)"><CODE>setResourceResolver(LSResourceResolver)</CODE></A> method, or null
      if that method has never been called since this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A>
      has created.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>setErrorHandler(ErrorHandler)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="newSchema(javax.xml.transform.Source)"><!-- --></A><H3>
newSchema</H3>
<PRE>
public <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A> <B>newSchema</B>(<A HREF="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</A>&nbsp;schema)
                 throws org.xml.sax.SAXException</PRE>
<DL>
<DD><p>Parses the specified source as a schema and returns it as a schema.</p>
 
 <p>This is a convenience method for <A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(javax.xml.transform.Source[])"><CODE>newSchema(Source[] schemas)</CODE></A>.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schema</CODE> - Source that represents a schema.
<DT><B>Returns:</B><DD>New <code>Schema</code> from parsing <code>schema</code>.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - If a SAX error occurs during parsing.
<DD><CODE>java.lang.NullPointerException</CODE> - if <tt>schema</tt> is null.</DL>
</DD>
</DL>
<HR>

<A NAME="newSchema(java.io.File)"><!-- --></A><H3>
newSchema</H3>
<PRE>
public <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A> <B>newSchema</B>(java.io.File&nbsp;schema)
                 throws org.xml.sax.SAXException</PRE>
<DL>
<DD><p>Parses the specified <code>File</code> as a schema and returns it as a <code>Schema</code>.</p>
 
 <p>This is a convenience method for <A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(javax.xml.transform.Source)"><CODE>newSchema(Source schema)</CODE></A>.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schema</CODE> - File that represents a schema.
<DT><B>Returns:</B><DD>New <code>Schema</code> from parsing <code>schema</code>.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - If a SAX error occurs during parsing.
<DD><CODE>java.lang.NullPointerException</CODE> - if <tt>schema</tt> is null.</DL>
</DD>
</DL>
<HR>

<A NAME="newSchema(java.net.URL)"><!-- --></A><H3>
newSchema</H3>
<PRE>
public <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A> <B>newSchema</B>(java.net.URL&nbsp;schema)
                 throws org.xml.sax.SAXException</PRE>
<DL>
<DD><p>Parses the specified <code>URL</code> as a schema and returns it as a <code>Schema</code>.</p>
 
 <p>This is a convenience method for <A HREF="../../../javax/xml/validation/SchemaFactory.html#newSchema(javax.xml.transform.Source)"><CODE>newSchema(Source schema)</CODE></A>.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schema</CODE> - <code>URL</code> that represents a schema.
<DT><B>Returns:</B><DD>New <code>Schema</code> from parsing <code>schema</code>.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - If a SAX error occurs during parsing.
<DD><CODE>java.lang.NullPointerException</CODE> - if <tt>schema</tt> is null.</DL>
</DD>
</DL>
<HR>

<A NAME="newSchema(javax.xml.transform.Source[])"><!-- --></A><H3>
newSchema</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A> <B>newSchema</B>(<A HREF="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</A>[]&nbsp;schemas)
                          throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Parses the specified source(s) as a schema and returns it as a schema.
 
 <p>
 The callee will read all the <A HREF="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform"><CODE>Source</CODE></A>s and combine them into a
 single schema. The exact semantics of the combination depends on the schema
 language that this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> object is created for.
 
 <p>
 When an <CODE>ErrorHandler</CODE> is set, the callee will report all the errors
 found in sources to the handler. If the handler throws an exception, it will
 abort the schema compilation and the same exception will be thrown from
 this method. Also, after an error is reported to a handler, the callee is allowed
 to abort the further processing by throwing it. If an error handler is not set,
 the callee will throw the first error it finds in the sources.   
 
 <h2>W3C XML Schema 1.0</h2>
 <p>
 The resulting schema contains components from the specified sources.
 The same result would be achieved if all these sources were
 imported, using appropriate values for schemaLocation and namespace,
 into a single schema document with a different targetNamespace
 and no components of its own, if the import elements were given
 in the same order as the sources.  Section 4.2.3 of the XML Schema
 recommendation describes the options processors have in this
 regard.  While a processor should be consistent in its treatment of
 JAXP schema sources and XML Schema imports, the behaviour between
 JAXP-compliant parsers may vary; in particular, parsers may choose
 to ignore all but the first &lt;import> for a given namespace,
 regardless of information provided in schemaLocation.
 
 <p>
 If the parsed set of schemas includes error(s) as
 specified in the section 5.1 of the XML Schema spec, then
 the error must be reported to the <CODE>ErrorHandler</CODE>.
 
 <h2>RELAX NG</h2>
 
 <p>For RELAX NG, this method must throw <CODE>UnsupportedOperationException</CODE>
 if <tt>schemas.length!=1</tt>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>schemas</CODE> - inputs to be parsed. <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> is required
      to recognize <A HREF="../../../javax/xml/transform/sax/SAXSource.html" title="class in javax.xml.transform.sax"><CODE>SAXSource</CODE></A>,
      <A HREF="../../../javax/xml/transform/stream/StreamSource.html" title="class in javax.xml.transform.stream"><CODE>StreamSource</CODE></A>, and <A HREF="../../../javax/xml/transform/dom/DOMSource.html" title="class in javax.xml.transform.dom"><CODE>DOMSource</CODE></A>.
<DT><B>Returns:</B><DD>Always return a non-null valid <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object.
      Note that when an error has been reported, there is no
      guarantee that the returned <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object is
      meaningful.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - If an error is found during processing the specified inputs.
      When an <CODE>ErrorHandler</CODE> is set, errors are reported to
      there first. See <A HREF="../../../javax/xml/validation/SchemaFactory.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>setErrorHandler(ErrorHandler)</CODE></A>.
<DD><CODE>java.lang.NullPointerException</CODE> - If the <code>schemas</code> parameter itself is null or
      any item in the array is null.
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any item in the array is not recognized by this method.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If the schema language doesn't support this operation.</DL>
</DD>
</DL>
<HR>

<A NAME="newSchema()"><!-- --></A><H3>
newSchema</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation">Schema</A> <B>newSchema</B>()
                          throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Creates a special <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object.
 
 <p>
 The exact semantics of the returned <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object depends
 on the schema language that this <A HREF="../../../javax/xml/validation/SchemaFactory.html" title="class in javax.xml.validation"><CODE>SchemaFactory</CODE></A> is created
 for.
 
 <p>
 Also, implementations are allowed to use implementation-specific
 property/feature to alter the semantics of this method.
 
 
 <h2>W3C XML Schema 1.0</h2>
 <p>
 For XML Schema, this method creates a <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object that
 performs validation by using location hints specified in documents.
 
 <p>
 The returned <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object assumes that if documents
 refer to the same URL in the schema location hints,
 they will always resolve to the same schema document. This
 asusmption allows implementations to reuse parsed results of
 schema documents so that multiple validations against the same
 schema will run faster.
 
 <p>
 Note that the use of schema location hints introduces a
 vulnerability to denial-of-service attacks. 
  
 
 <h2>RELAX NG</h2>
 <p>
 RELAX NG does not support this operation.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>Always return non-null valid <A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><CODE>Schema</CODE></A> object.
<DT><B>Throws:</B>
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If this operation is not supported by the callee.
<DD><CODE>org.xml.sax.SAXException</CODE> - If this operation is supported but failed for some reason.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/xml/validation/Schema.html" title="class in javax.xml.validation"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/xml/validation/SchemaFactoryLoader.html" title="class in javax.xml.validation"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SchemaFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>