Eclipse Platform
2.0

org.eclipse.help
Interface IToc

All Superinterfaces:
IHelpResource

public interface IToc
extends IHelpResource

IToc is the table of contents. It contains help topics.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.0

Field Summary
static String TOC
          This is element name used for TOC in XML files.
static String TOPIC
          This is the attribute used for description topic in XML files.
 
Fields inherited from interface org.eclipse.help.IHelpResource
HREF, LABEL
 
Method Summary
 ITopic getTopic(String href)
          Returns a topic with the specified href defined by this TOC.
 ITopic[] getTopics()
          Obtains the topics directly contained by a toc.
 
Methods inherited from interface org.eclipse.help.IHelpResource
getHref, getLabel
 

Field Detail

TOC

public static final String TOC
This is element name used for TOC in XML files.

See Also:
Constant Field Values

TOPIC

public static final String TOPIC
This is the attribute used for description topic in XML files.

See Also:
Constant Field Values
Method Detail

getTopics

public ITopic[] getTopics()
Obtains the topics directly contained by a toc.

Returns:
Array of ITopic

getTopic

public ITopic getTopic(String href)
Returns a topic with the specified href defined by this TOC.
If the TOC contains multiple topics with the same href only of them (arbitrarily chosen) will be returned.

If no topic is specified, then the TOC description topic is returned, or null if there is no description topic for the TOC.

Parameters:
href - The topic's URL.
Returns:
ITopic

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.