/[classpath]/classpath/gnu/xml/transform/WithParam.java
ViewVC logotype

Diff of /classpath/gnu/xml/transform/WithParam.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Sat Jul 2 20:32:16 2005 UTC revision 1.3 by dog, Sat Jul 9 20:38:35 2005 UTC
# Line 55  import gnu.xml.xpath.Expr; Line 55  import gnu.xml.xpath.Expr;
55  final class WithParam  final class WithParam
56  {  {
57    
58    final String name;    final QName name;
59    final Expr select;    final Expr select;
60    final TemplateNode content;    final TemplateNode content;
61    
62    WithParam(String name, Expr select)    WithParam(QName name, Expr select)
63    {    {
64      this.name = name;      this.name = name;
65      this.select = select;      this.select = select;
66      content = null;      content = null;
67    }    }
68    
69    WithParam(String name, TemplateNode content)    WithParam(QName name, TemplateNode content)
70    {    {
71      this.name = name;      this.name = name;
72      this.content = content;      this.content = content;
# Line 107  final class WithParam Line 107  final class WithParam
107        }        }
108    }    }
109    
110      boolean references(QName var)
111      {
112        if (select != null && select.references(var))
113          {
114            return true;
115          }
116        if (content != null && content.references(var))
117          {
118            return true;
119          }
120        return false;
121      }
122    
123  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26