View Javadoc

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