org.tm4j.topicmap.utils
Class OccurrenceUtils

java.lang.Object
  extended byorg.tm4j.topicmap.utils.OccurrenceUtils

public class OccurrenceUtils
extends java.lang.Object


Constructor Summary
OccurrenceUtils()
           
 
Method Summary
static java.lang.String getSignature(Occurrence occ)
          Returns the "signature" string of the occurrence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OccurrenceUtils

public OccurrenceUtils()
Method Detail

getSignature

public static java.lang.String getSignature(Occurrence occ)
Returns the "signature" string of the occurrence. This string consists of either the string value of the occurrence data or the string value of the occurrence locator compose with the signature of the type of the occurrence and the signature of the scope of the occurrence. Two Occurrence objects of the same type with the same resource locator or resource data in the same scope return the same signature string.

Parameters:
occ - The occurrence to compute the signature string for
Returns:
The computed signature string.
See Also:
ScopeUtils.getSignature(Set)