Examples of ModelDocumentation


Examples of org.openiaml.docs.modeldoc.ModelDocumentation

   * @throws IOException
   */
  public void testAllElementsHaveJavadocs() throws ModelLoadException, IOException {
   
    EObject root = ModelLoader.load("test.modeldoc");
    ModelDocumentation doc = (ModelDocumentation) root;
   
    List<String> violations = new ArrayList<String>();
   
    for (EMFClass cls : doc.getClasses()) {
      if (isTaglineEmpty(cls.getTagline())) {
        violations.add("Class: " + cls.getName());
      }
     
      for (EMFReference ref : cls.getReferences()) {
View Full Code Here

Examples of org.openiaml.docs.modeldoc.ModelDocumentation

   * @throws IOException
   */
  public void testAllInferenceRulesHaveModeldoc() throws ModelLoadException, IOException {
   
    EObject root = ModelLoader.load("test.modeldoc");
    ModelDocumentation doc = (ModelDocumentation) root;

    StringBuffer buf = new StringBuffer();
    int violations = 0;
    for (Reference ref : doc.getReferences()) {
      if (ref instanceof DroolsPackage) {
        DroolsPackage pkg = (DroolsPackage) ref;
       
        // get the count of all @inference tags
        // (we need to ignore tags such as @implementation)
View Full Code Here

Examples of org.openiaml.docs.modeldoc.ModelDocumentation

        "@inference",
        "@implementation",
        "@notModelCompletion");
   
    EObject root = ModelLoader.load("test.modeldoc");
    ModelDocumentation doc = (ModelDocumentation) root;

    for (Reference ref : doc.getReferences()) {
      if (ref instanceof DroolsPackage) {
        DroolsPackage pkg = (DroolsPackage) ref;
       
        for (DroolsRule r : pkg.getRules()) {
          for (JavadocTagElement j : r.getJavadocs()) {
View Full Code Here

Examples of org.openiaml.docs.modeldoc.ModelDocumentation

  }
   
  public ModelDocumentation createDocumentation() throws Exception {
    final ModeldocFactory factory = ModeldocFactory.eINSTANCE;
   
    final ModelDocumentation root = factory.createModelDocumentation();
   
    // create Semantics handlers
    semanticTagHandlers = new ArrayList<ITagHandler>();
    semanticTagHandlers.add(new HandleOperationalTag(root, factory));
    semanticTagHandlers.add(new HandleInferenceTag(root, factory));
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.