01: /*
02: * $Id: AdapterNode.java 471756 2006-11-06 15:01:43Z husted $
03: *
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21: package org.apache.struts2.views.xslt;
22:
23: import org.w3c.dom.Node;
24:
25: /**
26: */
27: public interface AdapterNode extends Node {
28:
29: /**
30: * The adapter factory that created this node.
31: */
32: AdapterFactory getAdapterFactory();
33:
34: /**
35: * The adapter factory that created this node.
36: */
37: void setAdapterFactory(AdapterFactory factory);
38:
39: /**
40: * The parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any
41: * kind of Node.
42: */
43: AdapterNode getParent();
44:
45: /**
46: * The parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any
47: * kind of Node.
48: */
49: void setParent(AdapterNode parent);
50:
51: /**
52: * The child node before the specified sibling
53: */
54: Node getChildBefore(Node this Node);
55:
56: /**
57: * The child node after the specified sibling
58: */
59: Node getChildAfter(Node this Node);
60:
61: /**
62: * The name of the Java object (property) that we are adapting
63: */
64: String getPropertyName();
65:
66: /**
67: * The name of the Java object (property) that we are adapting
68: */
69: void setPropertyName(String name);
70:
71: /**
72: * The Java object (property) that we are adapting
73: */
74: Object getPropertyValue();
75:
76: /** The Java object (property) that we are adapting */
77: void setPropertyValue(Object prop);
78: }
|