tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
2 | |||||
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 3 | import java.util.Set; |
4 | |||||
5 | /** | ||||
tom | f5d85d4 | 2014-10-02 05:27:56 -0700 | [diff] [blame^] | 6 | * Represents an set of simply key/value string annotations. |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 7 | */ |
tom | f5d85d4 | 2014-10-02 05:27:56 -0700 | [diff] [blame^] | 8 | public interface Annotations { |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 9 | |
10 | /** | ||||
tom | f5d85d4 | 2014-10-02 05:27:56 -0700 | [diff] [blame^] | 11 | * Returns the set of keys for available annotations. |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 12 | * |
13 | * @return annotation keys | ||||
14 | */ | ||||
tom | f5d85d4 | 2014-10-02 05:27:56 -0700 | [diff] [blame^] | 15 | public Set<String> keys(); |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 16 | |
17 | /** | ||||
18 | * Returns the value of the specified annotation. | ||||
19 | * | ||||
20 | * @param key annotation key | ||||
21 | * @return annotation value | ||||
22 | */ | ||||
tom | f5d85d4 | 2014-10-02 05:27:56 -0700 | [diff] [blame^] | 23 | public String value(String key); |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 24 | |
tom | 3ea1125 | 2014-10-02 04:32:26 -0700 | [diff] [blame] | 25 | } |