View Javadoc

1   package com.explosion.utilities.preferences.impl.xml;
2   
3   
4   /* =============================================================================
5    *       
6    *     Copyright 2004 Stephen Cowx
7    *
8    *     Licensed under the Apache License, Version 2.0 (the "License");
9    *     you may not use this file except in compliance with the License.
10   *     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, software
15   *     distributed under the License is distributed on an "AS IS" BASIS,
16   *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   *     See the License for the specific language governing permissions and
18   *     limitations under the License.
19   * 
20   * =============================================================================
21   */
22  
23  import org.w3c.dom.Document;
24  import org.w3c.dom.Node;
25  
26  /***
27   * @author Stephen Cowx
28   * Contains all the stuff needed for an XMLPreferencePersister
29   * Created on 14-Mar-2005
30   */
31  public class XMLPreferencePersistenceRequirement
32  {
33      private Node node;
34      private Document document;
35      
36      /***
37       * @param node
38       * @param document
39       */
40      public XMLPreferencePersistenceRequirement(Node node, Document document)
41      {
42          this.node = node;
43          this.document = document;
44      }
45      
46      /***
47       * @return Returns the document.
48       */
49      public Document getDocument()
50      {
51          return document;
52      }
53      /***
54       * @param document The document to set.
55       */
56      public void setDocument(Document document)
57      {
58          this.document = document;
59      }
60      /***
61       * @return Returns the node.
62       */
63      public Node getNode()
64      {
65          return node;
66      }
67      /***
68       * @param node The node to set.
69       */
70      public void setNode(Node node)
71      {
72          this.node = node;
73      }
74  }