/** * Adds a new EPUB 2 meta item to the publication. * * @param name name of the item * @param value content of the item * @return the new meta */ public org.eclipse.mylyn.docs.epub.opf.Meta addMeta(String name, String value) { if (value == null) { throw new IllegalArgumentException("A value must be specified"); // $NON-NLS-1$ } if (name == null) { throw new IllegalArgumentException("A name must be specified"); // $NON-NLS-1$ } org.eclipse.mylyn.docs.epub.opf.Meta opf = OPFFactory.eINSTANCE.createMeta(); opf.setName(name); opf.setContent(value); opfPackage.getMetadata().getMetas().add(opf); return opf; }