~francis-giraldeau/noesis/xsugar-strict

« back to all changes in this revision

Viewing changes to doc/dk/brics/xsugar/StylesheetChecker.html

  • Committer: Francis Giraldeau
  • Date: 2009-08-05 13:07:07 UTC
  • Revision ID: francis.giraldeau@revolutionlinux.com-20090805130707-b8p8x13khol5p9o5
ajout des sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc (build 1.6.0_02) on Mon Dec 29 12:39:51 CET 2008 -->
 
6
<TITLE>
 
7
StylesheetChecker (dk.brics.xsugar)
 
8
</TITLE>
 
9
 
 
10
<META NAME="date" CONTENT="2008-12-29">
 
11
 
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 
13
 
 
14
<SCRIPT type="text/javascript">
 
15
function windowTitle()
 
16
{
 
17
    if (location.href.indexOf('is-external=true') == -1) {
 
18
        parent.document.title="StylesheetChecker (dk.brics.xsugar)";
 
19
    }
 
20
}
 
21
</SCRIPT>
 
22
<NOSCRIPT>
 
23
</NOSCRIPT>
 
24
 
 
25
</HEAD>
 
26
 
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
 
28
<HR>
 
29
 
 
30
 
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
 
32
<A NAME="navbar_top"><!-- --></A>
 
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
35
<TR>
 
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
37
<A NAME="navbar_top_firstrow"><!-- --></A>
 
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
39
  <TR ALIGN="center" VALIGN="top">
 
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
44
  </TR>
 
45
</TABLE>
 
46
</TD>
 
47
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
48
</EM>
 
49
</TD>
 
50
</TR>
 
51
 
 
52
<TR>
 
53
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
54
&nbsp;<A HREF="../../../dk/brics/xsugar/StylesheetBuilder.html" title="class in dk.brics.xsugar"><B>PREV CLASS</B></A>&nbsp;
 
55
&nbsp;<A HREF="../../../dk/brics/xsugar/StylesheetParser.html" title="class in dk.brics.xsugar"><B>NEXT CLASS</B></A></FONT></TD>
 
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
57
  <A HREF="../../../index.html?dk/brics/xsugar/StylesheetChecker.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
58
&nbsp;<A HREF="StylesheetChecker.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
59
&nbsp;<SCRIPT type="text/javascript">
 
60
  <!--
 
61
  if(window==top) {
 
62
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
63
  }
 
64
  //-->
 
65
</SCRIPT>
 
66
<NOSCRIPT>
 
67
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
 
68
</NOSCRIPT>
 
69
 
 
70
 
 
71
</FONT></TD>
 
72
</TR>
 
73
<TR>
 
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
75
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
77
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
78
</TR>
 
79
</TABLE>
 
80
<A NAME="skip-navbar_top"></A>
 
81
<!-- ========= END OF TOP NAVBAR ========= -->
 
82
 
 
83
<HR>
 
84
<!-- ======== START OF CLASS DATA ======== -->
 
85
<H2>
 
86
<FONT SIZE="-1">
 
87
dk.brics.xsugar</FONT>
 
88
<BR>
 
89
Class StylesheetChecker</H2>
 
90
<PRE>
 
91
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
 
92
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>dk.brics.xsugar.StylesheetChecker</B>
 
93
</PRE>
 
94
<HR>
 
95
<DL>
 
96
<DT><PRE>public class <B>StylesheetChecker</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
 
97
</PRE>
 
98
 
 
99
<P>
 
100
Consistency checker for XSugar stylesheets.
 
101
 Checks the following requirements:
 
102
 <ul>
 
103
 <li>terminals/nonterminals being used have been defined
 
104
 <li>arguments are present on the other side (and that they have the same kind on both sides)
 
105
 <li>arguments present multiple times in one production have same kind
 
106
 <li>namespaces are declared
 
107
 <li>namespace decls have unique URIs
 
108
 <li>only empty prefix may have empty URI
 
109
 <li>productions with unordered XML-sides cannot have alternatives or siblings
 
110
 <li>regular expressions describing non-constant element/attribute names must be subsets of NCName
 
111
 </ul>
 
112
<P>
 
113
 
 
114
<P>
 
115
<HR>
 
116
 
 
117
<P>
 
118
 
 
119
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
120
 
 
121
<A NAME="constructor_summary"><!-- --></A>
 
122
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
123
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
124
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
125
<B>Constructor Summary</B></FONT></TH>
 
126
</TR>
 
127
<TR BGCOLOR="white" CLASS="TableRowColor">
 
128
<TD><CODE><B><A HREF="../../../dk/brics/xsugar/StylesheetChecker.html#StylesheetChecker()">StylesheetChecker</A></B>()</CODE>
 
129
 
 
130
<BR>
 
131
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new checker.</TD>
 
132
</TR>
 
133
</TABLE>
 
134
&nbsp;
 
135
<!-- ========== METHOD SUMMARY =========== -->
 
136
 
 
137
<A NAME="method_summary"><!-- --></A>
 
138
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
139
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
140
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
141
<B>Method Summary</B></FONT></TH>
 
142
</TR>
 
143
<TR BGCOLOR="white" CLASS="TableRowColor">
 
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
145
<CODE>&nbsp;void</CODE></FONT></TD>
 
146
<TD><CODE><B><A HREF="../../../dk/brics/xsugar/StylesheetChecker.html#check(dk.brics.xsugar.stylesheet.Stylesheet)">check</A></B>(<A HREF="../../../dk/brics/xsugar/stylesheet/Stylesheet.html" title="class in dk.brics.xsugar.stylesheet">Stylesheet</A>&nbsp;stylesheet)</CODE>
 
147
 
 
148
<BR>
 
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks the given stylesheet.</TD>
 
150
</TR>
 
151
</TABLE>
 
152
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
153
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
154
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
155
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
 
156
</TR>
 
157
<TR BGCOLOR="white" CLASS="TableRowColor">
 
158
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
 
159
</TR>
 
160
</TABLE>
 
161
&nbsp;
 
162
<P>
 
163
 
 
164
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
165
 
 
166
<A NAME="constructor_detail"><!-- --></A>
 
167
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
168
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
169
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
170
<B>Constructor Detail</B></FONT></TH>
 
171
</TR>
 
172
</TABLE>
 
173
 
 
174
<A NAME="StylesheetChecker()"><!-- --></A><H3>
 
175
StylesheetChecker</H3>
 
176
<PRE>
 
177
public <B>StylesheetChecker</B>()</PRE>
 
178
<DL>
 
179
<DD>Constructs a new checker.
 
180
<P>
 
181
</DL>
 
182
 
 
183
<!-- ============ METHOD DETAIL ========== -->
 
184
 
 
185
<A NAME="method_detail"><!-- --></A>
 
186
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
187
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
188
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
189
<B>Method Detail</B></FONT></TH>
 
190
</TR>
 
191
</TABLE>
 
192
 
 
193
<A NAME="check(dk.brics.xsugar.stylesheet.Stylesheet)"><!-- --></A><H3>
 
194
check</H3>
 
195
<PRE>
 
196
public void <B>check</B>(<A HREF="../../../dk/brics/xsugar/stylesheet/Stylesheet.html" title="class in dk.brics.xsugar.stylesheet">Stylesheet</A>&nbsp;stylesheet)
 
197
           throws <A HREF="../../../dk/brics/xsugar/XSugarException.html" title="class in dk.brics.xsugar">XSugarException</A></PRE>
 
198
<DL>
 
199
<DD>Checks the given stylesheet.
 
200
<P>
 
201
<DD><DL>
 
202
<DT><B>Parameters:</B><DD><CODE>stylesheet</CODE> - stylesheet
 
203
<DT><B>Throws:</B>
 
204
<DD><CODE><A HREF="../../../dk/brics/xsugar/XSugarException.html" title="class in dk.brics.xsugar">XSugarException</A></CODE> - if an error is detected</DL>
 
205
</DD>
 
206
</DL>
 
207
<!-- ========= END OF CLASS DATA ========= -->
 
208
<HR>
 
209
 
 
210
 
 
211
<!-- ======= START OF BOTTOM NAVBAR ====== -->
 
212
<A NAME="navbar_bottom"><!-- --></A>
 
213
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 
214
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
215
<TR>
 
216
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
217
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
218
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
219
  <TR ALIGN="center" VALIGN="top">
 
220
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
221
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
222
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
223
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
224
  </TR>
 
225
</TABLE>
 
226
</TD>
 
227
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
228
</EM>
 
229
</TD>
 
230
</TR>
 
231
 
 
232
<TR>
 
233
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
234
&nbsp;<A HREF="../../../dk/brics/xsugar/StylesheetBuilder.html" title="class in dk.brics.xsugar"><B>PREV CLASS</B></A>&nbsp;
 
235
&nbsp;<A HREF="../../../dk/brics/xsugar/StylesheetParser.html" title="class in dk.brics.xsugar"><B>NEXT CLASS</B></A></FONT></TD>
 
236
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
237
  <A HREF="../../../index.html?dk/brics/xsugar/StylesheetChecker.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
238
&nbsp;<A HREF="StylesheetChecker.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
239
&nbsp;<SCRIPT type="text/javascript">
 
240
  <!--
 
241
  if(window==top) {
 
242
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
243
  }
 
244
  //-->
 
245
</SCRIPT>
 
246
<NOSCRIPT>
 
247
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
 
248
</NOSCRIPT>
 
249
 
 
250
 
 
251
</FONT></TD>
 
252
</TR>
 
253
<TR>
 
254
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
255
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
256
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
257
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
258
</TR>
 
259
</TABLE>
 
260
<A NAME="skip-navbar_bottom"></A>
 
261
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
262
 
 
263
<HR>
 
264
<i> Copyright &#169; 2004-2007 Anders M&oslash;ller &amp; Claus Brabrand. </i>
 
265
</BODY>
 
266
</HTML>