1
|
|
/*
|
2
|
|
* JBind
|
3
|
|
*
|
4
|
|
* Copyright (c) by Stefan Wachter. All rights reserved.
|
5
|
|
*
|
6
|
|
* Usage, modification, and redistribution is subject to license terms that are
|
7
|
|
* available at 'http://www.jbind.org'. The JBind license is like the
|
8
|
|
* 'Apache Software License V 1.1'.
|
9
|
|
*/
|
10
|
|
package org.jbind.xml.instance.impl;
|
11
|
|
|
12
|
|
import java.util.Collections;
|
13
|
|
import java.util.Iterator;
|
14
|
|
import java.util.ListIterator;
|
15
|
|
import java.util.Map;
|
16
|
|
|
17
|
|
import org.jbind.xml.base.ILocation;
|
18
|
|
import org.jbind.xml.core.base.ITextContentMemento;
|
19
|
|
import org.jbind.xml.core.base.ITextContentProvider;
|
20
|
|
import org.jbind.xml.core.bridge.IAttributeImpl;
|
21
|
|
import org.jbind.xml.core.bridge.IDataImplVisitor;
|
22
|
|
import org.jbind.xml.core.bridge.IDefaultAttrCreator;
|
23
|
|
import org.jbind.xml.core.bridge.IElementImpl;
|
24
|
|
import org.jbind.xml.core.bridge.IImplContainer;
|
25
|
|
import org.jbind.xml.core.bridge.ITextImpl;
|
26
|
|
import org.jbind.xml.core.data.IAnyTypeData;
|
27
|
|
|
28
|
|
public class ElementFactoryImpl implements IElementImpl {
|
29
|
|
|
30
|
2
|
public ElementFactoryImpl() {}
|
31
|
|
|
32
|
0
|
public IAttributeImpl addAttribute(String aNamespace, String aQName, String aValue, boolean anIsDefault, ILocation aLocation) {
|
33
|
0
|
return null;
|
34
|
|
}
|
35
|
|
|
36
|
0
|
public IAttributeImpl addAttribute(String aNamespace, String aQName, ITextContentProvider aProvider, boolean anIsDefault, ILocation aLocation) {
|
37
|
0
|
return null;
|
38
|
|
}
|
39
|
|
|
40
|
2
|
public IElementImpl addElement(String aNamespace, String aQName) {
|
41
|
2
|
return addElement(aNamespace, aQName, Collections.EMPTY_MAP, null);
|
42
|
|
}
|
43
|
|
|
44
|
2
|
public IElementImpl addElement(String aNamespace, String aQName, Map aPrefixMapping, ILocation aLocation) {
|
45
|
2
|
DocumentImpl doc = new DocumentImpl();
|
46
|
2
|
return doc.addElement(aNamespace, aQName, aPrefixMapping, aLocation);
|
47
|
|
}
|
48
|
|
|
49
|
0
|
public ITextImpl addText(String aText, ILocation aLocation) {
|
50
|
0
|
return null;
|
51
|
|
}
|
52
|
|
|
53
|
0
|
public IAnyTypeData getAttributeData(String aNamespace, String aLocalName) {
|
54
|
0
|
return null;
|
55
|
|
}
|
56
|
|
|
57
|
0
|
public Iterator iterAttributes(String aNamespace, String aName) {
|
58
|
0
|
return Collections.EMPTY_LIST.iterator();
|
59
|
|
}
|
60
|
|
|
61
|
0
|
public IAttributeImpl getAttributeImpl(String aNamespace, String aName) {
|
62
|
0
|
return null;
|
63
|
|
}
|
64
|
|
|
65
|
0
|
public ILocation getLocation() {
|
66
|
0
|
return null;
|
67
|
|
}
|
68
|
|
|
69
|
0
|
public String getNamespace() {
|
70
|
0
|
return null;
|
71
|
|
}
|
72
|
|
|
73
|
0
|
public String getNamespaceForPrefix(String aPrefix) {
|
74
|
0
|
return null;
|
75
|
|
}
|
76
|
|
|
77
|
0
|
public int getNonDefaultedNbChildren() {
|
78
|
0
|
return 0;
|
79
|
|
}
|
80
|
|
|
81
|
0
|
public IImplContainer getParentImpl() {
|
82
|
0
|
return null;
|
83
|
|
}
|
84
|
|
|
85
|
0
|
public String getPartName() {
|
86
|
0
|
return null;
|
87
|
|
}
|
88
|
|
|
89
|
0
|
public String getTextContent() {
|
90
|
0
|
return null;
|
91
|
|
}
|
92
|
|
|
93
|
0
|
public IAnyTypeData getData() {
|
94
|
0
|
return null;
|
95
|
|
}
|
96
|
|
|
97
|
0
|
public boolean hasTextContent() {
|
98
|
0
|
return false;
|
99
|
|
}
|
100
|
|
|
101
|
0
|
public boolean isDefault() {
|
102
|
0
|
return false;
|
103
|
|
}
|
104
|
|
|
105
|
0
|
public boolean isNil() {
|
106
|
0
|
return false;
|
107
|
|
}
|
108
|
|
|
109
|
0
|
public Iterator iterAttributeImpls() {
|
110
|
0
|
return Collections.EMPTY_LIST.iterator();
|
111
|
|
}
|
112
|
0
|
public ListIterator iterChildren() {
|
113
|
0
|
return Collections.EMPTY_LIST.listIterator();
|
114
|
|
}
|
115
|
|
|
116
|
0
|
public ListIterator iterElementData(String aNamespace, String aLocalName) {
|
117
|
0
|
return Collections.EMPTY_LIST.listIterator();
|
118
|
|
}
|
119
|
|
|
120
|
0
|
public void removeAttribute(String aNamespace, String aName) {}
|
121
|
|
|
122
|
0
|
public void restoreTextContent(ITextContentMemento aMemento) {}
|
123
|
|
|
124
|
0
|
public ITextContentMemento saveTextContent() {
|
125
|
0
|
return null;
|
126
|
|
}
|
127
|
|
|
128
|
0
|
public void setDefaultAttrCreator(IDefaultAttrCreator aCreator) {}
|
129
|
|
|
130
|
0
|
public void setDefaultTextContent(String aString) {}
|
131
|
|
|
132
|
0
|
public void setTextContent(String aValue) {}
|
133
|
|
|
134
|
0
|
public void setTextContent(ITextContentProvider aTextContentProvider) {}
|
135
|
|
|
136
|
0
|
public void setData(IAnyTypeData aData) {}
|
137
|
|
|
138
|
0
|
public void accept(IDataImplVisitor aVisitor) {}
|
139
|
|
|
140
|
0
|
public String getPrefixForNamespace(String aNamespace, boolean aCreate) {
|
141
|
0
|
return null;
|
142
|
|
}
|
143
|
|
|
144
|
0
|
public Map getPrefixToNamespaceMapping() {
|
145
|
0
|
return Collections.EMPTY_MAP;
|
146
|
|
}
|
147
|
|
|
148
|
|
}
|
149
|
|
|