org.tm4j.topicmap
Class TMTypes

java.lang.Object
  extended byorg.tm4j.topicmap.TMTypes

public class TMTypes
extends java.lang.Object

This class provides a utility function for determining the type of a Topic Map object


Field Summary
static int TM_ASSOC
           
static int TM_BASENAME
           
static int TM_FACET
           
static int TM_FACETVAL
           
static int TM_MEMBER
           
static int TM_MERGEMAP
           
static int TM_NAME
           
static int TM_NULL
           
static int TM_OCCURRENCE
           
static int TM_SCOPE
           
static int TM_TOPIC
           
static int TM_TOPICMAP
           
static int TM_TOPICNAME
           
static int TM_VARIANT
           
static int TM_VARIANTNAME
           
 
Constructor Summary
TMTypes()
           
 
Method Summary
static int getTMObjectType(java.lang.Object tmObject)
          Determines the which Topic Map object the specified object is derived from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TM_NULL

public static final int TM_NULL
See Also:
Constant Field Values

TM_TOPICMAP

public static final int TM_TOPICMAP
See Also:
Constant Field Values

TM_TOPIC

public static final int TM_TOPIC
See Also:
Constant Field Values

TM_SCOPE

public static final int TM_SCOPE
See Also:
Constant Field Values

TM_BASENAME

public static final int TM_BASENAME
See Also:
Constant Field Values

TM_VARIANT

public static final int TM_VARIANT
See Also:
Constant Field Values

TM_VARIANTNAME

public static final int TM_VARIANTNAME
See Also:
Constant Field Values

TM_OCCURRENCE

public static final int TM_OCCURRENCE
See Also:
Constant Field Values

TM_ASSOC

public static final int TM_ASSOC
See Also:
Constant Field Values

TM_MEMBER

public static final int TM_MEMBER
See Also:
Constant Field Values

TM_MERGEMAP

public static final int TM_MERGEMAP
See Also:
Constant Field Values

TM_TOPICNAME

public static final int TM_TOPICNAME
See Also:
Constant Field Values

TM_NAME

public static final int TM_NAME
See Also:
Constant Field Values

TM_FACET

public static final int TM_FACET
See Also:
Constant Field Values

TM_FACETVAL

public static final int TM_FACETVAL
See Also:
Constant Field Values
Constructor Detail

TMTypes

public TMTypes()
Method Detail

getTMObjectType

public static int getTMObjectType(java.lang.Object tmObject)
Determines the which Topic Map object the specified object is derived from. The object type is returned as an integer code, the values of which are defined in this class. If the specified object is not a Topic Map object, then TM_NULL is returned.

Parameters:
tmObject - The object to determine the type of.
Returns:
The integer code of the Topic Map object implemented by the specified object.