org.netbeans.modules.project.libraries/1 1.29.1

org.netbeans.spi.project.libraries
Interface LibraryImplementation2

All Superinterfaces:
LibraryImplementation

public interface LibraryImplementation2
extends LibraryImplementation

Library enhancement allowing setting/getting library content as URI list. Useful for example for storing relative library entries.

Since:
org.netbeans.modules.project.libraries/1 1.18

Field Summary
 
Fields inherited from interface org.netbeans.spi.project.libraries.LibraryImplementation
PROP_CONTENT, PROP_DESCRIPTION, PROP_NAME
 
Method Summary
 List<URI> getURIContent(String volumeType)
          Returns List of resources contained in the given volume.
 void setURIContent(String volumeType, List<URI> path)
          Sets content of given volume
 
Methods inherited from interface org.netbeans.spi.project.libraries.LibraryImplementation
addPropertyChangeListener, getContent, getDescription, getLocalizingBundle, getName, getType, removePropertyChangeListener, setContent, setDescription, setLocalizingBundle, setName
 

Method Detail

getURIContent

List<URI> getURIContent(String volumeType)
                        throws IllegalArgumentException
Returns List of resources contained in the given volume. The returned list is unmodifiable. To change the content of the given volume use setContent method.

Parameters:
volumeType - the type of volume for which the content should be returned.
Returns:
list of resource URIs (never null)
Throws:
IllegalArgumentException - if the library does not support given type of volume

setURIContent

void setURIContent(String volumeType,
                   List<URI> path)
                   throws IllegalArgumentException
Sets content of given volume

Parameters:
volumeType - the type of volume for which the content should be set
path - the list of resource URIs
Throws:
IllegalArgumentException - if the library does not support given volumeType

org.netbeans.modules.project.libraries/1 1.29.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.