View Javadoc

1   package org.sat4j.csp.xml;
2   import org.xml.sax.Attributes;
3   
4   abstract class Element {
5   
6   	private final ICSPCallback out;
7   	
8   	private final String tagName;
9   
10  	public Element(ICSPCallback out, String tagName) {
11  		this.out = out;
12  		this.tagName = tagName;
13  	}
14  
15  	public ICSPCallback getCB() {
16  		return out;
17  	}
18  
19  	public void startElement(Attributes attributes) {
20  	}
21  
22  	public void characters(String s) {
23  	}
24  
25  	public void endElement() {
26  	}
27  	
28  	public String getContext(){
29  		return "";
30  	}
31  
32  	public String tagName(){
33  		return tagName;
34  	}
35  }