Index: trunk/WikiWord/WikiWord/src/main/java/de/brightbyte/wikiword/model/ConceptProperties.java |
— | — | @@ -27,6 +27,20 @@ |
28 | 28 | return properties; |
29 | 29 | } |
30 | 30 | |
| 31 | + public Collection<String> getProperty(String name) { |
| 32 | + return getProperties().get(name); |
| 33 | + } |
| 34 | + |
| 35 | + public boolean hasProperty(String name) { |
| 36 | + Collection<String> vv = getProperties().get(name); |
| 37 | + return vv!=null && !vv.isEmpty(); |
| 38 | + } |
| 39 | + |
| 40 | + public boolean hasProperty(String name, String value) { |
| 41 | + Collection<String> vv = getProperties().get(name); |
| 42 | + return vv!=null && vv.contains(value); |
| 43 | + } |
| 44 | + |
31 | 45 | public WikiWordConcept getConcept() { |
32 | 46 | return concept; |
33 | 47 | } |