com.togethersoft.openapi.sci
Interface SciJavaImportList


public interface SciJavaImportList
extends SciContainer

SciJavaImportList represents a container of SciJavaImports.


An object of this type can be obtained for java file using the
SciFile.getJavaImportList method.


The imports method returns an enumeration of SciJavaImport instances
belonging to this container.


The paste method can be used to add a new SciJavaImport
to the set of other SciJavaImports contained in this object:


SciJavaImport newImport = SciModelAccess.getModel().getFactory(SciLanguage.JAVA).newJavaImport();
newImport.setImportText("java.io.IOException"); //adding the "import java.io.IOException;" line
someSciFile.getJavaImportList().paste(newImport, null, false);

This code will add the "import java.io.IOException;" line to the text of someSciFile.

Author:
TogetherSoft
Since: Together 3.0
See Also: SciFactory.newJavaImport()

Method Summary
 SciJavaImportEnumerationimports()
          Returns an enumeration of SciJavaImport instances belonging to this container.

Methods inherited from interface com.togethersoft.openapi.sci.SciContainer
canPaste, objects, paste

Method Detail

imports

public SciJavaImportEnumeration imports()
Returns an enumeration of SciJavaImport instances belonging to this container.
Returns: an enumeration of SciJavaImport instances