1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.6.0_02) on Mon Dec 29 12:39:51 CET 2008 -->
7
StylesheetChecker (dk.brics.xsugar)
10
<META NAME="date" CONTENT="2008-12-29">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
if (location.href.indexOf('is-external=true') == -1) {
18
parent.document.title="StylesheetChecker (dk.brics.xsugar)";
27
<BODY BGCOLOR="white" onload="windowTitle();">
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="">
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> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
47
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54
<A HREF="../../../dk/brics/xsugar/StylesheetBuilder.html" title="class in dk.brics.xsugar"><B>PREV CLASS</B></A>
55
<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>
58
<A HREF="StylesheetChecker.html" target="_top"><B>NO FRAMES</B></A>
59
<SCRIPT type="text/javascript">
62
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
80
<A NAME="skip-navbar_top"></A>
81
<!-- ========= END OF TOP NAVBAR ========= -->
84
<!-- ======== START OF CLASS DATA ======== -->
87
dk.brics.xsugar</FONT>
89
Class StylesheetChecker</H2>
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>
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>
100
Consistency checker for XSugar stylesheets.
101
Checks the following requirements:
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
119
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
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>
127
<TR BGCOLOR="white" CLASS="TableRowColor">
128
<TD><CODE><B><A HREF="../../../dk/brics/xsugar/StylesheetChecker.html#StylesheetChecker()">StylesheetChecker</A></B>()</CODE>
131
Constructs a new checker.</TD>
135
<!-- ========== METHOD SUMMARY =========== -->
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>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145
<CODE> 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> stylesheet)</CODE>
149
Checks the given stylesheet.</TD>
152
<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>
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>
164
<!-- ========= CONSTRUCTOR DETAIL ======== -->
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>
174
<A NAME="StylesheetChecker()"><!-- --></A><H3>
175
StylesheetChecker</H3>
177
public <B>StylesheetChecker</B>()</PRE>
179
<DD>Constructs a new checker.
183
<!-- ============ METHOD DETAIL ========== -->
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>
193
<A NAME="check(dk.brics.xsugar.stylesheet.Stylesheet)"><!-- --></A><H3>
196
public void <B>check</B>(<A HREF="../../../dk/brics/xsugar/stylesheet/Stylesheet.html" title="class in dk.brics.xsugar.stylesheet">Stylesheet</A> stylesheet)
197
throws <A HREF="../../../dk/brics/xsugar/XSugarException.html" title="class in dk.brics.xsugar">XSugarException</A></PRE>
199
<DD>Checks the given stylesheet.
202
<DT><B>Parameters:</B><DD><CODE>stylesheet</CODE> - stylesheet
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>
207
<!-- ========= END OF CLASS DATA ========= -->
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="">
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> </TD>
221
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
222
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
223
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
227
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
233
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
234
<A HREF="../../../dk/brics/xsugar/StylesheetBuilder.html" title="class in dk.brics.xsugar"><B>PREV CLASS</B></A>
235
<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>
238
<A HREF="StylesheetChecker.html" target="_top"><B>NO FRAMES</B></A>
239
<SCRIPT type="text/javascript">
242
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
247
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
254
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
255
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
256
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
257
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
260
<A NAME="skip-navbar_bottom"></A>
261
<!-- ======== END OF BOTTOM NAVBAR ======= -->
264
<i> Copyright © 2004-2007 Anders Møller & Claus Brabrand. </i>