1 | public void characters(char[] buf, int start, int count) {↵ | | 1 | public void characters(char[] buf, int start, int count) {↵
|
2 | wrapper.addText(buf, start, count);↵ | | 2 | childWrapper.addText(buf, start, count);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Handles the start of an element within a target. Task containers↵ | | 5 | * Handles the start of an element within this one. Task containers↵
|
6 | * will always use another task handler, and all other tasks↵ | | 6 | * will always use a task handler, and all other elements↵
|
7 | * will always use a nested element handler.↵ | | 7 | * will always use another nested element handler.↵
|
8 | *↵ | | 8 | *↵
|
9 | * @param name The name of the element being started.↵ | | 9 | * @param name The name of the element being started.↵
|
10 | * Will not be <code>null</code>.↵ | | 10 | * Will not be <code>null</code>.↵
|
11 | * @param attrs Attributes of the element being started.↵ | | 11 | * @param attrs Attributes of the element being started.↵
|
12 | * Will not be <code>null</code>.↵ | | 12 | * Will not be <code>null</code>.↵
|
13 | *↵ | | 13 | *↵
|
14 | * @exception SAXParseException if an error occurs when initialising↵ | | 14 | * @exception SAXParseException if an error occurs when initialising↵
|
15 | * the appropriate child handler↵ | | 15 | * the appropriate child handler↵
|
16 | */↵ | | 16 | */↵
|
17 | public void startElement(String name, AttributeList attrs) throws SAXParseException {↵ | | 17 | public void startElement(String name, AttributeList attrs) throws SAXParseException {↵
|
18 | if (task instanceof TaskContainer) {↵ | | 18 | if (child instanceof TaskContainer) {↵
|
19 | // task can contain other tasks - no other↵ | | 19 | // taskcontainer nested element can contain other tasks - no other↵
|
20 | nested elements possible↵ | | 20 | // nested elements possible↵
|
21 | new TaskHandler(helperImpl, this, (TaskContainer) task,↵ | | 21 | new TaskHandler(helperImpl, this, (TaskContainer) child,↵
|
22 | wrapper, target).init(name, attrs);↵ | | 22 | childWrapper, target).init(name, attrs);↵
|
23 | } else {↵ | | 23 | } else {↵
|
24 | new NestedElementHandler(helperImpl, this, task,↵ | | 24 | new NestedElementHandler(helperImpl, this, child,↵
|
25 | wrapper, target).init(name, attrs); | | 25 | childWrapper, target).init(name, attrs);
|