Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.togethersoft.openapi.sci
Interface SciJavaImportList

public interface SciJavaImportList
extends SciContainer

`SciJavaImportList` represents a container of `SciJavaImport`s.

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 `SciJavaImport`s 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
See Also: SciFactory.newJavaImport()

Method Summary
`SciJavaImportEnumeration` | `imports()` 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

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD