Statistics
| Revision:

root / org.gvsig.xmlschema / library / trunk / org.gvsig.xmlschema / org.gvsig.xmlschema.prov / org.gvsig.xmlschema.prov.dom / src / main / java / org / gvsig / xmlschema / prov / som / model / XSNodeListImpl.java @ 257

History | View | Annotate | Download (1.42 KB)

1
package org.gvsig.xmlschema.prov.som.model;
2

    
3
import org.w3c.dom.NodeList;
4

    
5
import org.gvsig.xmlschema.lib.api.som.IXSNode;
6
import org.gvsig.xmlschema.lib.api.som.IXSNodeList;
7

    
8
/* gvSIG. Geographic Information System of the Valencian Government
9
*
10
* Copyright (C) 2007-2008 Infrastructures and Transports Department
11
* of the Valencian Government (CIT)
12
* 
13
* This program is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU General Public License
15
* as published by the Free Software Foundation; either version 2
16
* of the License, or (at your option) any later version.
17
* 
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
* GNU General Public License for more details.
22
* 
23
* You should have received a copy of the GNU General Public License
24
* along with this program; if not, write to the Free Software
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
26
* MA  02110-1301, USA.
27
* 
28
*/
29

    
30
/*
31
* AUTHORS (In addition to CIT):
32
* 2010 {Prodevelop T.I.}   {Task}
33
*/
34

    
35
public class XSNodeListImpl implements IXSNodeList {
36
        private NodeList element;
37
        
38
        public XSNodeListImpl(NodeList element) {
39
                super();
40
                this.element = element;
41
        }
42
        
43
        public int getLength() {
44
                return element.getLength();
45
        }
46

    
47
        public IXSNode item(int i) {
48
                return new XSNodeImpl(element.item(i));                
49
        }        
50
}