01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.xslt;
06:
07: import org.w3c.dom.Node;
08:
09: /**
10: * @author <a href="mailto:meier@meisterbohne.de">Philipp Meier</a>
11: * @author Pat Niemeyer (pat@pat.net)
12: */
13: public interface AdapterNode extends Node {
14: /**
15: * The adapter factory that created this node.
16: */
17: AdapterFactory getAdapterFactory();
18:
19: /**
20: * The adapter factory that created this node.
21: */
22: void setAdapterFactory(AdapterFactory factory);
23:
24: /**
25: * The parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any
26: * kind of Node.
27: */
28: AdapterNode getParent();
29:
30: /**
31: * The parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any
32: * kind of Node.
33: */
34: void setParent(AdapterNode parent);
35:
36: /**
37: * The child node before the specified sibling
38: */
39: Node getChildBefore(Node this Node);
40:
41: /**
42: * The child node after the specified sibling
43: */
44: Node getChildAfter(Node this Node);
45:
46: /**
47: * The name of the Java object (property) that we are adapting
48: */
49: String getPropertyName();
50:
51: /**
52: * The name of the Java object (property) that we are adapting
53: */
54: void setPropertyName(String name);
55:
56: /**
57: * The Java object (property) that we are adapting
58: */
59: Object getPropertyValue();
60:
61: /** The Java object (property) that we are adapting */
62: void setPropertyValue(Object prop);
63: }
|