@Override protected String getDescriptionFromImport(String source) throws InvalidXMLException, IOException { TypeSystemDescription parsedImportItem = UIMAFramework.getXMLParser() .parseTypeSystemDescription(new XMLInputSource(source)); return parsedImportItem.getDescription(); }
/** * Gets the description. * * @return the description */ public String getDescription() { if (editor.isLocalProcessingDescriptor()) return editor.getAeDescription().getMetaData().getDescription(); if (editor.isTypeSystemDescriptor()) return editor.getTypeSystemDescription().getDescription(); if (editor.isTypePriorityDescriptor()) return editor.getTypePriorities().getDescription(); if (editor.isFsIndexCollection()) return editor.getFsIndexCollection().getDescription(); if (editor.isExtResAndBindingsDescriptor()) return editor.getExtResAndBindings().getDescription(); throw new InternalErrorCDE("invalid state"); }