1
|
package eu.dnetlib.data.collective.transformation.core.xsl;
|
2
|
|
3
|
import java.util.Collection;
|
4
|
|
5
|
|
6
|
/**
|
7
|
* @author jochen
|
8
|
*
|
9
|
*/
|
10
|
public class XslElement extends AbstractXslElement {
|
11
|
|
12
|
public XslElement(String aFunctionName) {
|
13
|
super(aFunctionName);
|
14
|
}
|
15
|
|
16
|
public XslElement(String aFunctionName, String aAttrName, String aAttrValue) {
|
17
|
super(aFunctionName);
|
18
|
addAttribute(aAttrName, aAttrValue);
|
19
|
}
|
20
|
|
21
|
public void addAttribute(String aName, String aValue){
|
22
|
this.attrList.add(aName + "=\"" + aValue + "\" ");
|
23
|
}
|
24
|
|
25
|
public void addEnclosedElements(String aElements){
|
26
|
this.enclosedElements.append(aElements);
|
27
|
}
|
28
|
|
29
|
public void addBoundPrefix(String aNamespace){
|
30
|
this.nsList.add(aNamespace);
|
31
|
}
|
32
|
|
33
|
public void addAllBoundPrefixes(Collection<String> aNamespaceList){
|
34
|
this.nsList.addAll(aNamespaceList);
|
35
|
}
|
36
|
|
37
|
/**
|
38
|
* @return the isEmpty
|
39
|
*/
|
40
|
public boolean isEmpty() {
|
41
|
return !(enclosedElements.length() > 0);
|
42
|
}
|
43
|
}
|