Eclipse Platform
2.0

org.eclipse.core.runtime.model
Class LibraryModel

java.lang.Object
  |
  +--org.eclipse.core.runtime.model.PluginModelObject
        |
        +--org.eclipse.core.runtime.model.LibraryModel

public class LibraryModel
extends PluginModelObject

A runtime library declared in a plug-in. Libraries contribute elements to the search path. These contributions are specified as a path to a directory or Jar file. This path is always considered to be relative to the containing plug-in.

Libraries are typed. The type is used to determine to which search path the library's contribution should be added. The valid types are: CODE and RESOURCE.

This class may be instantiated, or further subclassed.


Field Summary
static String CODE
          Constant string (value "code") indicating the code library type.
static String RESOURCE
          Constant string (value "resource") indicating the resource library type.
 
Constructor Summary
LibraryModel()
          Creates a new library model in which all fields are null.
 
Method Summary
 String[] getExports()
          Returns this library's export mask.
 String getType()
          Returns this library's type.
 boolean isExported()
          Returns whether or not any of the code in this library is exported.
 boolean isFullyExported()
          Returns whether or not all of the code in this library is exported.
 void setExports(String[] value)
          Sets this library's export mask.
 void setType(String value)
          Sets this library's type.
 
Methods inherited from class org.eclipse.core.runtime.model.PluginModelObject
assertIsWriteable, getName, isReadOnly, markReadOnly, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE

public static final String CODE
Constant string (value "code") indicating the code library type.

See Also:
Constant Field Values

RESOURCE

public static final String RESOURCE
Constant string (value "resource") indicating the resource library type.

See Also:
Constant Field Values
Constructor Detail

LibraryModel

public LibraryModel()
Creates a new library model in which all fields are null.

Method Detail

getExports

public String[] getExports()
Returns this library's export mask.

Returns:
this library's export mask or null

getType

public String getType()
Returns this library's type.

Returns:
the type of this library. The valid types are: CODE and RESOURCE.
See Also:
CODE, RESOURCE

isExported

public boolean isExported()
Returns whether or not any of the code in this library is exported.

Returns:
whether or not any of the code in this library represents is exported

isFullyExported

public boolean isFullyExported()
Returns whether or not all of the code in this library is exported.

Returns:
whether or not all of the code in this library is exported

setExports

public void setExports(String[] value)
Sets this library's export mask. This object must not be read-only.

Parameters:
value - this library's export mask. May be null.

setType

public void setType(String value)
Sets this library's type. The valid types are: CODE and RESOURCE. The given type value is canonicalized before being set. This object must not be read-only.

Parameters:
value - the type of this library.
See Also:
CODE, RESOURCE

Eclipse Platform
2.0

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