Parses the comma-separated list of class or package names in the given attribute value and adds each component to this PageDirective's vector of imported classes and packages. @param value A comma-separated string of imports.
(String value)
| 712 | * @param value A comma-separated string of imports. |
| 713 | */ |
| 714 | public void addImport(String value) { |
| 715 | int start = 0; |
| 716 | int index; |
| 717 | while ((index = value.indexOf(',', start)) != -1) { |
| 718 | imports.add(validateImport(value.substring(start, index))); |
| 719 | start = index + 1; |
| 720 | } |
| 721 | if (start == 0) { |
| 722 | // No comma found |
| 723 | imports.add(validateImport(value)); |
| 724 | } else { |
| 725 | imports.add(validateImport(value.substring(start))); |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | /** |
| 730 | * Returns the list of imported classes and packages. |