org.tmapi.index.core
Interface VariantsIndex
- All Superinterfaces: 
- Index, TopicMapSystem.ConfigurableHelperObject
- public interface VariantsIndex- extends Index
An index of all Variant instances in the TopicMap
 by their resource reference or resource data.
- Since:
- 1.0
| Method Summary | 
|  java.util.Collection | getVariantsByResource(Locator loc)Returns the Variants in the topic map whose 
 resource locator matches
 loc. | 
|  java.util.Collection | getVariantsByValue(java.lang.String value)Returns the Variants in the topic map whose
 value property matches
 valueThe return value may be an empty Collection but must never benull. | 
 
 
 
getVariantsByResource
public java.util.Collection getVariantsByResource(Locator loc)
- Returns the Variants in the topic map whose 
 resource locator matches loc.
 The return value may be an empty Collection but must never benull.
 
- 
 
- 
- Parameters:
- loc- the Locator used to query the index (MUST NOT be- null)
- Returns:
- a Collection of Variant instances.
 
getVariantsByValue
public java.util.Collection getVariantsByValue(java.lang.String value)
- Returns the Variants in the topic map whose
 value property matches valueThe return value may be an empty Collection but must never benull.
 
- 
 
- 
- Parameters:
- value- the data string used to query the index (MUST NOT be- null)
- Returns:
- a Collection of Variant instances.