/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static EN addText(EN en, String text) { if (text == null) { throw new IllegalArgumentException("text is null"); } FeatureMapUtil.addText(en.getMixed(), text); return en; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static void addText(StrucDocText strucDocText, String text) { if (text == null) { throw new IllegalArgumentException("text is null"); } FeatureMapUtil.addText(strucDocText.getMixed(), text); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static ED addText(ED ed, String text) { if (text == null) { throw new IllegalArgumentException("text is null"); } FeatureMapUtil.addText(ed.getMixed(), text); return ed; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static AD addText(AD ad, String text) { if (text == null) { throw new IllegalArgumentException("text is null"); } FeatureMapUtil.addText(ad.getMixed(), text); return ad; }
/** * Sets common properties for <i>Dublin Core</i> elements. * * @param dc * the Dublin Core element * @param id * optional identifier * @param value * value of the element */ private void setDcCommon(DCType dc, String id, String value) { FeatureMapUtil.addText(dc.getMixed(), value); if (id != null) { dc.setId(id); } }
if (FeatureMapUtil.isFeatureMap(feature) && value instanceof String) { FeatureMap featureMap = (FeatureMap) target.eGet(feature); FeatureMapUtil.addText(featureMap, (String) value); } else { if (feature instanceof EAttribute) {
/** * Adds a new identifier to the publication. * * @param id * the identifier id * @param scheme * the scheme used for representing the identifier * @param value * the identifier value * @return the new identifier */ public Identifier addIdentifier(String id, String scheme, String value) { if (value == null) { throw new IllegalArgumentException("A value must be specified"); //$NON-NLS-1$ } Identifier dc = DCFactory.eINSTANCE.createIdentifier(); dc.setId(id); dc.setScheme(scheme); FeatureMapUtil.addText(dc.getMixed(), value); opfPackage.getMetadata().getIdentifiers().add(dc); return dc; }
private NavPoint createNavPoint(String title) { NavPoint np = NCXFactory.eINSTANCE.createNavPoint(); NavLabel nl = NCXFactory.eINSTANCE.createNavLabel(); Content c = NCXFactory.eINSTANCE.createContent(); c.setSrc(currentId == null ? currentHref : currentHref + "#" + currentId); //$NON-NLS-1$ Text text = NCXFactory.eINSTANCE.createText(); FeatureMapUtil.addText(text.getMixed(), title); nl.setText(text); np.getNavLabels().add(nl); np.setPlayOrder(++playOrder); np.setId("navpoint" + playOrder); //$NON-NLS-1$ np.setContent(c); return np; }
/** * Creates and configures a table of contents. */ private void configureNCX() { ncxTOC = NCXFactory.eINSTANCE.createNcx(); // Set the required version attribute ncxTOC.setVersion("2005-1"); //$NON-NLS-1$ // Create the required head element Head head = NCXFactory.eINSTANCE.createHead(); ncxTOC.setHead(head); // Create the required title element DocTitle docTitle = NCXFactory.eINSTANCE.createDocTitle(); Text text = NCXFactory.eINSTANCE.createText(); FeatureMapUtil.addText(text.getMixed(), "Table of contents"); //$NON-NLS-1$ docTitle.setText(text); ncxTOC.setDocTitle(docTitle); // Create the required navigation map element NavMap navMap = NCXFactory.eINSTANCE.createNavMap(); ncxTOC.setNavMap(navMap); }