KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > model > ILogicalStructureTypeDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.core.model;
12
13 import org.eclipse.core.runtime.CoreException;
14
15 /**
16  * A delegate that provides a value representing the logical structure of a raw
17  * implementation value from a debug model. Associated with a logical structure
18  * type extension.
19  * <p>
20  * Clients contributing logical structure types should implement this
21  * interface.
22  * </p>
23  * @since 3.0
24  * @see org.eclipse.debug.core.ILogicalStructureType
25  */

26 public interface ILogicalStructureTypeDelegate {
27     
28     /**
29      * Returns whether this structure type can provide a logical structure for
30      * the given value.
31      *
32      * @param value value for which a logical structure is being requested
33      * @return whether this structure type can provide a logical structure for
34      * the given value
35      */

36     public boolean providesLogicalStructure(IValue value);
37     
38     /**
39      * Returns a value representing a logical structure of the given value.
40      *
41      * @param value value for which a logical structure is being requested
42      * @return value representing logical structure
43      * @throws CoreException if an exception occurs generating a logical
44      * structure
45      */

46     public IValue getLogicalStructure(IValue value) throws CoreException;
47
48 }
49
Popular Tags