Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.file / org.gvsig.fmap.dal.file.gml / src / main / java / org / gvsig / fmap / dal / store / gml / virtualrows / xmlinfo / XMLInfoImpl.java @ 47655

History | View | Annotate | Download (1.37 KB)

1
package org.gvsig.fmap.dal.store.gml.virtualrows.xmlinfo;
2

    
3
import java.nio.charset.Charset;
4
import java.util.Collection;
5
import java.util.LinkedHashMap;
6
import java.util.Locale;
7
import java.util.Map;
8

    
9
/**
10
 *
11
 * @author jjdelcerro
12
 */
13
public class XMLInfoImpl {
14

    
15
    private final Map<String,XMLAttributeInfoImpl> tags;
16
    private long countLines;
17
    private Charset charset;
18
    private Locale locale;
19
    
20
    public XMLInfoImpl() {
21
        this.tags = new LinkedHashMap<>();
22
        this.countLines = -1;
23
    }
24
    
25
    public XMLAttributeInfoImpl getTag(String path) {
26
        return this.tags.get(path);
27
    }
28
    
29
    public Collection<String> getTagsPaths() {
30
        return this.tags.keySet();
31
    }
32
    
33
    public void addTag(XMLAttributeInfoImpl info) {
34
        tags.put(info.getPath(), info);
35
    }
36
    
37
    public XMLAttributeInfoImpl getTagInfo(String path) {
38
        return this.tags.get(path);
39
    }
40

    
41
    public void setCountLines(long countlines) {
42
        this.countLines = countlines;
43
    }
44
    
45
    public long getCountLines() {
46
        return this.countLines;
47
    }
48

    
49
    public Charset getCharset() {
50
        return this.charset;
51
    }
52
    
53
    public void setCharset(Charset charset) {
54
        this.charset = charset;
55
    }
56

    
57
    public Locale getLocale() {
58
        return this.locale;
59
    }
60

    
61
    public void setLocale(Locale locale) {
62
        this.locale = locale;
63
    }
64
    
65
}