Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / layers / ExtendedPropertiesSupport.java @ 46277

History | View | Annotate | Download (2.24 KB)

1 41350 jjdelcerro
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA 02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.mapcontext.layers;
25
26
import java.util.Map;
27
28 43825 jjdelcerro
/**
29
 *
30
 * @deprecated use org.gvsig.tools.util.PropertiesSupport
31
 */
32 41350 jjdelcerro
public interface ExtendedPropertiesSupport {
33
34
    /**
35
     * <p>
36
     * Returns a reference to an object (property) associated to this layer.</p>
37
     *
38
     * <p>
39
     * For example, you can attach a network definition to key "network" and
40
     * check
41
     * if a layer has a network loaded using
42
     * <i>getAssociatedObject("network")</i> and
43
     * that it's not null.</p>
44
     *
45
     * @param key the key associated to the property
46
     *
47
     * @return <code>null</code> if key is not found
48
     *
49
     * @see #getExtendedProperties()
50
     * @see #setProperty(Object, Object)
51
     */
52
    public Object getProperty(Object key);
53
54
    /**
55
     * Inserts an object as a property to this layer.
56
     *
57
     * @param key the key associated to the property
58
     * @param obj the property
59
     *
60
     * @see #getProperty(Object)
61
     * @see #getExtendedProperties()
62
     */
63
    public void setProperty(Object key, Object obj);
64
65
    /**
66
     * Returns a hash map with all new properties associated to this layer.
67
     *
68
     * @return hash table with the added properties
69
     *
70
     * @see #getProperty(Object)
71
     * @see #setProperty(Object, Object)
72
     */
73
    public Map getExtendedProperties();
74
}