org.tm4j.topicmap
Class TMTypes
java.lang.Object
org.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
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 |
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
TMTypes
public TMTypes()
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.