Пример #1
0
 public static XSDAnnotation createAppInfo(
     XSDElementDeclaration elementDeclaration, String appInfo) {
   if (appInfo != null) {
     XSDAnnotation annotation = XSDFactory.eINSTANCE.createXSDAnnotation();
     elementDeclaration.setAnnotation(annotation);
     org.w3c.dom.Element element =
         annotation.createApplicationInformation("http://www.edna-site.org/dsl2xsd");
     annotation.getElement().appendChild(element);
     element.appendChild(element.getOwnerDocument().createTextNode(appInfo));
     return annotation;
   }
   return null;
 }