static {
   Iterator i = xsdPrimitiveTypes.iterator();
   while (i.hasNext()) {
     XSDNamedComponent component = (XSDNamedComponent) i.next();
     xsdPrimitiveTypesNames.add(component.getName());
   }
 }
 public String getName() {
   EObject eContainer = getXSDTypeDefinition().eContainer();
   if (eContainer instanceof XSDSchema || eContainer instanceof XSDRedefine) {
     return getXSDTypeDefinition().getName();
   } else {
     if (eContainer instanceof XSDNamedComponent) {
       XSDNamedComponent ed = (XSDNamedComponent) eContainer;
       return "(" + ed.getName() + "Type)"; // $NON-NLS-1$ //$NON-NLS-2$
     }
   }
   return null;
 }
  protected XmlElement generateSampleFragment(final XSDNamedComponent schemaComponent) {
    final XmlDocumentBuilder builder = XmlDocumentPlugin.createDocumentBuilder();
    final int levelsToBuild = getMaxNumberOfLevelsToBuild();
    if (levelsToBuild < 1) {
      return null;
    }
    builder.setNumberOfLevelsToBuild(levelsToBuild);

    // Create the root ...
    final XmlDocumentFactory factory = XmlDocumentFactory.eINSTANCE;
    final XmlRoot docRoot = factory.createXmlRoot();
    docRoot.setName(schemaComponent.getName());
    docRoot.setXsdComponent(schemaComponent);

    try {
      builder.buildDocument(docRoot, null);
    } catch (ModelerCoreException err) {
      // Do nothing ...
    }

    return docRoot;
  }
  public GetPropertyExecutor(Object parent, XSDNamedComponent content) {
    this.parent = parent;

    name = new QName(content.getTargetNamespace(), content.getName());
  }