org.tmapi.core
Interface Typed

All Superinterfaces:
Construct
All Known Subinterfaces:
Association, Name, Occurrence, Role

public interface Typed
extends Construct

Indicates that a Topic Maps construct is typed. Associations, Roles, Occurrences, and Names are typed.

Version:
$Rev: 64 $ - $Date: 2008-08-14 13:46:44 +0200 (Do, 14 Aug 2008) $
Author:
The TMAPI Project

Method Summary
 Topic getType()
          Returns the type of this construct.
 void setType(Topic type)
          Sets the type of this construct.
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getParent, getTopicMap, hashCode, remove, removeItemIdentifier
 

Method Detail

getType

Topic getType()
Returns the type of this construct.

Returns:
The topic that represents the type.

setType

void setType(Topic type)
Sets the type of this construct. Any previous type is overridden.

Parameters:
type - The topic that should define the nature of this construct; MUST NOT be null.
Throws:
ModelConstraintException - If the type is null.