com.apelon.dts.client.match
Class Match

java.lang.Object
  extended by com.apelon.dts.client.match.Match

public class Match
extends Object

The Match class provides information about a match that was searched for.

Copyright: Copyright (c) 2002

Company: Apelon, Inc.

Version:
DTS 3.0
Author:
Apelon, Inc.

Constructor Summary
Match(String preferredTerm, DTSConcept concept, MatchItem item)
          Contructs a Match which has preferredTerm, concept, matchItem
 
Method Summary
 String getConceptPreferredTerm()
          Gets the matched concept's preferred term.
 DTSConcept getMatchingConcept()
          Gets the concept to which the matching item belongs.
 MatchItem getMatchItem()
          Gets the concept, property, or term that was matched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Match

public Match(String preferredTerm,
             DTSConcept concept,
             MatchItem item)
Contructs a Match which has preferredTerm, concept, matchItem

Parameters:
preferredTerm - the preferred term for the matched concept
concept - the matched concept
item - the concept,term that had the matched string
Method Detail

getMatchItem

public MatchItem getMatchItem()
Gets the concept, property, or term that was matched.

Returns:
the concept, property, or term that had the matched string

getMatchingConcept

public DTSConcept getMatchingConcept()
Gets the concept to which the matching item belongs. If the matching item is a concept, the concept itself is returned.

Returns:
the matched concept

getConceptPreferredTerm

public String getConceptPreferredTerm()
Gets the matched concept's preferred term.

Returns:
the preferred term for the matched concept


Copyright © 2011. All Rights Reserved.