Examples of Documentation


Examples of com.sun.tools.ws.wsdl.document.Documentation

    private Documentation getDocumentationFor(Element e) {
        String s = XmlUtil.getTextForNode(e);
        if (s == null) {
            return null;
        } else {
            return new Documentation(s);
        }
    }
View Full Code Here

Examples of com.sun.tools.ws.wsdl.document.Documentation

    private Documentation getDocumentationFor(Element e) {
        String s = XmlUtil.getTextForNode(e);
        if (s == null) {
            return null;
        } else {
            return new Documentation(s);
        }
    }
View Full Code Here

Examples of oms3.annotations.Documentation

        StringBuilder sb = new StringBuilder();
        sb.append("<html><body>\n");

        // modules documentation
        Documentation documentation = moduleClass.getAnnotation(Documentation.class);
        String documentationStr = null;
        if (documentation != null) {
            documentationStr = AnnotationUtilities.getLocalizedDocumentation(documentation);
            if (documentationStr.length() == 0) {
                documentationStr = null;
View Full Code Here

Examples of org.eclipse.bpel.model.Documentation

        if (result == null) result = caseWSDLElement(extensibleElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.DOCUMENTATION: {
        Documentation documentation = (Documentation)theEObject;
        Object result = caseDocumentation(documentation);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.MESSAGE_EXCHANGES: {
View Full Code Here

Examples of org.eclipse.bpel.model.Documentation

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDocumentation(Documentation newDocumentation, NotificationChain msgs) {
    Documentation oldDocumentation = documentation;
    documentation = newDocumentation;
    boolean oldDocumentationESet = documentationESet;
    documentationESet = true;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.EXTENSIBLE_ELEMENT__DOCUMENTATION, oldDocumentation, newDocumentation, !oldDocumentationESet);
View Full Code Here

Examples of org.eclipse.bpel.model.Documentation

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicUnsetDocumentation(NotificationChain msgs) {
    Documentation oldDocumentation = documentation;
    documentation = null;
    boolean oldDocumentationESet = documentationESet;
    documentationESet = false;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, BPELPackage.EXTENSIBLE_ELEMENT__DOCUMENTATION, oldDocumentation, null, oldDocumentationESet);
View Full Code Here

Examples of org.eclipse.bpmn2.Documentation

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.DOCUMENTATION: {
            Documentation documentation = (Documentation) theEObject;
            T result = caseDocumentation(documentation);
            if (result == null)
                result = caseBaseElement(documentation);
            if (result == null)
                result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.bpmn2.Documentation

 
  public static void setDocumentation(BaseElement baseElement,String documentationText){
    List<Documentation> documentations=baseElement.getDocumentation();
    if(documentations==null){
      documentations=new ArrayList<Documentation>();
      Documentation documentation=Bpmn2Factory.eINSTANCE.createDocumentation();
      documentation.setText(documentationText);
      documentations.add(documentation);
      return;
    }
    if(documentations.size()==0){
      Documentation documentation=Bpmn2Factory.eINSTANCE.createDocumentation();
      documentation.setText(documentationText);
      documentations.add(documentation);
      return;
    }
    else{
      documentations.get(0).setText(documentationText);
View Full Code Here

Examples of org.eclipse.bpmn2.Documentation

        }
        return properties;
    }

    private Documentation createDocumentation(String text) {
        Documentation doc = Bpmn2Factory.eINSTANCE.createDocumentation();
        doc.setText(text);
        return doc;
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.Documentation

        if( property == null )
        {
            return;
        }
       
        final Documentation docAnnotation = property.getAnnotation( Documentation.class );
       
        if( docAnnotation == null || docAnnotation.mergeStrategy() != DocumentationMergeStrategy.REPLACE )
        {
            init( property.getBase(), content, topics );
        }
       
        if( docAnnotation != null )
        {
            final LocalizationService localization = property.getLocalizationService();
            final DocumentationMergeStrategy docMergeStrategy = docAnnotation.mergeStrategy();
            final String docAnnotationContent = localization.text( docAnnotation.content().trim(), CapitalizationType.NO_CAPS, false );
           
            if( docAnnotationContent.length() > 0 )
            {
                if( docMergeStrategy == DocumentationMergeStrategy.REPLACE || content.length() == 0 )
                {
                    content.append( docAnnotationContent );
                }
                else if( docMergeStrategy == DocumentationMergeStrategy.APPEND )
                {
                    content.append( PARAGRAPH_BREAK );
                    content.append( docAnnotationContent );
                }
                else
                {
                    content.insert( 0, PARAGRAPH_BREAK );
                    content.insert( 0, docAnnotationContent );
                }
            }
           
            final List<Topic> docAnnotationTopics = convert( docAnnotation.topics(), localization );
           
            if( ! docAnnotationTopics.isEmpty() )
            {
                if( docMergeStrategy != DocumentationMergeStrategy.PREPEND || topics.isEmpty() )
                {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.