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 / XSDocumentImpl.java @ 250

History | View | Annotate | Download (1.5 KB)

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

    
3
import org.gvsig.xmlschema.lib.api.som.IXSDocument;
4
import org.gvsig.xmlschema.lib.api.som.IXSElement;
5
import org.w3c.dom.Document;
6

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

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

    
34
public class XSDocumentImpl implements IXSDocument {
35
        private Document document;
36

    
37
        public XSDocumentImpl(Document document) {
38
                super();
39
                this.document = document;
40
        }
41

    
42
        public IXSElement createElement(String tagName) {
43
                return new XSElementImpl(document.createElement(tagName));
44
        }
45

    
46
        public IXSElement getDocumentElement() {
47
                return new XSElementImpl(document.getDocumentElement());
48
        }
49
        
50
}