private static String getDescription(PortComponent portComponent, boolean isJ2EE14, boolean lang) { String ret = null; if (isJ2EE14) { DescriptionType descType = portComponent.getDescriptionType(); if (descType!=null) { if (lang) { ret = descType.getLang(); } else { ret = descType.getValue(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if( !lang ) { ret = portComponent.getDescription(); } } return ret; }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated */ public String getText(Object object) { String label = ((DescriptionType) object).getLang(); return label == null || label.length() == 0 ? getString("_UI_DescriptionType_type") : //$NON-NLS-1$ getString("_UI_DescriptionType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ }
/** * @param newDescription */ protected void internalSetDescriptionType(String newDescription) { DescriptionType newValue = null; if(getDescriptionType() != null) { newValue = getDescriptionType(); newValue.setValue(newDescription); } else { newValue = WscommonFactory.eINSTANCE.createDescriptionType(); newValue.setValue(newDescription); setDescriptionType(newValue); } }
private static String getDescription(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) { String ret = null; if (isJ2EE14) { DescriptionType descType = webServicesDescription.getDescriptionType(); if (descType!=null) { if (lang) { ret = descType.getLang(); } else { ret = descType.getValue(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if( !lang ) { ret = webServicesDescription.getDescription(); } } return ret; }