01: package com.jeta.forms.store.jml.dom;
02:
03: import java.util.Collection;
04:
05: import com.jeta.open.support.EmptyCollection;
06:
07: public class TextJMLNode extends AbstractJMLNode {
08:
09: private String m_textValue;
10:
11: public TextJMLNode(String textValue) {
12: m_textValue = textValue;
13: }
14:
15: public void appendChild(JMLNode childNode) {
16: // ignore
17: assert (false);
18: }
19:
20: public String getTextValue() {
21: return m_textValue;
22: }
23:
24: public String getNodeName() {
25: return "#text";
26: }
27:
28: public Collection getChildren() {
29: return EmptyCollection.getInstance();
30: }
31:
32: public int getChildCount() {
33: return 0;
34: }
35:
36: public JMLNode getNode(int index) {
37: throw new IndexOutOfBoundsException();
38: }
39:
40: }
|