Package org.eclipse.wst.xml.core.internal.contentmodel.util

Examples of org.eclipse.wst.xml.core.internal.contentmodel.util.CMDescriptionBuilder


      CMNamedNodeMapImpl elementMap = (CMNamedNodeMapImpl)cmDocument.getElements();
      int size = elementMap.getLength();
      for (int i = 0; i < size; i++)
      {
        CMElementDeclaration ed = (CMElementDeclaration)elementMap.item(i);
        CMDescriptionBuilder builder = new CMDescriptionBuilder();
        System.out.println("  ELEMENT " + ed.getNodeName() + " = " + builder.buildDescription(ed)); //$NON-NLS-1$ //$NON-NLS-2$
      }
    }
  }       
View Full Code Here


          if (dataType != null) {
            printDataTypeInfo(sb, dataType);
          }
        }
        else {
          CMDescriptionBuilder builder = new CMDescriptionBuilder();
          String description = builder.buildDescription(node);
          if ((description != null) && (description.length() > 0)) {
            sb.append(PARAGRAPH_START + BOLD_START + XMLUIMessages.Content_Model____2 + SPACE + BOLD_END);
            sb.append(description + PARAGRAPH_END);
          }
        }
View Full Code Here

      if(result == null) {
        result = (String) cmnode.getProperty("description"); //$NON-NLS-1$
      }
      if (result == null || result.length() == 0) {
        if (cmnode.getNodeType() == CMNode.GROUP) {
          CMDescriptionBuilder descriptionBuilder = new CMDescriptionBuilder();
          result = descriptionBuilder.buildDescription(cmnode);
        }
        else {
          result = DOMNamespaceHelper.computeName(cmnode, parent, null);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.contentmodel.util.CMDescriptionBuilder

Copyright © 2018 www.massapicom. 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.