File: ActionResultFragmentVariant.java

package info (click to toggle)
lib-xt-java 0.19990725-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,224 kB
  • ctags: 2,133
  • sloc: java: 9,665; makefile: 54; xml: 28
file content (27 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.jclark.xsl.tr;

import com.jclark.xsl.om.*;

class ActionResultFragmentVariant extends ResultFragmentVariantBase {
  final private Action action;
  final private ExtensionHandler extensionHandler;
  final private Node node;
  final private ProcessContext.Memento memento;

  ActionResultFragmentVariant(Action action, ExtensionHandler extensionHandler,
			      Node node, ProcessContext.Memento memento) {
    this.action = action;
    this.extensionHandler = extensionHandler;
    this.node = node;
    this.memento = memento;
  }

  public void append(Result result) throws XSLException {
    memento.invoke(action, node, result);
  }

  public Object convertToObject() throws XSLException {
    return extensionHandler.wrapResultFragmentVariant(this);
  }
  
}