Package org.openiaml.docs.modeldoc

Examples of org.openiaml.docs.modeldoc.FileReference


       
        example.setExampleModel(ref);

        // make a new FileReference for the example .html
        // as per issue 128, this will be in a new location
        FileReference file = factory.createFileReference();
        file.setPlugin(examplePlugin);
        file.setPackage(jc.getName());
        file.setName(jc.getName() + ".html");
        root.getReferences().add(file);
       
        example.setExampleLocation(file);

        target.getExamples().add(example);
View Full Code Here


      in = new FileInputStream(extFile);
    } catch (FileNotFoundException e) {
      throw new DocumentationGenerationException(e);
    }
   
    FileReference fr = factory.createFileReference();
    fr.setPlugin(plugin);
    fr.setPackage(packageBase);
    fr.setName(name);
    fr.setParent(root);
   
    ExtensionFile file = ParseFacade.file(new InputStreamReader(in), extFile);
   
    for (Extension ext : file.getExtensions()) {
   
View Full Code Here

            doc.setDescription( e );
           
            // add javadoc element to root
            root.getReferences().add( e );
           
            FileReference ref = factory.createFileReference();
            ref.setName(cls.getName() + ".html");
            ref.setPackage(packageBase);
            ref.setPlugin(plugin);
            root.getReferences().add(ref);
           
            doc.setReference(ref);
            cls.getAdditionalDocumentation().add(doc);
           
          } catch (IOException e) {
            throw new DocumentationGenerationException(e);
          }
         
        }
      }
     
      // does a TEX file exist here?
      {
        File f = new File(docBase + File.separator + cls.getName() + ".tex");
        if (f.exists()) {
          // it exists; load it in as additional documentation
          try {
            char[] html = readFile(f);
 
            // parse into a JavadocTextElement
            JavadocTextElement e = factory.createJavadocTextElement();
            e.setValue( new String(html) );
           
            AdditionalLatex doc = factory.createAdditionalLatex();
            doc.setDescription( e );
           
            // add javadoc element to root
            root.getReferences().add( e );
           
            FileReference ref = factory.createFileReference();
            ref.setName(cls.getName() + ".tex");
            ref.setPackage(packageBase);
            ref.setPlugin(plugin);
            root.getReferences().add(ref);
           
            doc.setReference(ref);
            cls.getAdditionalLatex().add(doc);
           
View Full Code Here

      // does there exist an EMFClass for this file?
      for (EMFClass cls : root.getClasses()) {
        String name = cls.getTargetClass().getName();
        if (file.startsWith(name + ".") && isImage(file)) {
          // found a reference
          FileReference fr = factory.createFileReference();
          fr.setPlugin(plugin);
          fr.setPackage(packageBase);
          fr.setName(file);
          root.getReferences().add(fr);
         
          // add a GraphicalReference
          GraphicalRepresentation gr = factory.createGraphicalRepresentation();
          gr.setReference(fr);
View Full Code Here

      // does there exist an EMFClass for this file?
      for (EMFClass cls : root.getClasses()) {
        String name = cls.getTargetClass().getName();
        if (file.startsWith(name + ".") && isImage(file)) {
          // found a reference
          FileReference fr = factory.createFileReference();
          fr.setPlugin(plugin);
          fr.setPackage(packageBase);
          fr.setName(file);
          root.getReferences().add(fr);
         
          // add a GraphicalReference
          GraphicalRepresentation gr = factory.createGraphicalRepresentation();
          gr.setReference(fr);
View Full Code Here

TOP

Related Classes of org.openiaml.docs.modeldoc.FileReference

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.