com.sun.enterprise.admin.cli.schemadoc
Class HtmlFormat

java.lang.Object
  extended by com.sun.enterprise.admin.cli.schemadoc.HtmlFormat
All Implemented Interfaces:
SchemaOutputFormat

@Service(name="html")
public class HtmlFormat
extends Object
implements SchemaOutputFormat


Field Summary
private  Map<String,ClassDef> defs
           
private  PrintWriter detail
           
private  File dir
           
private  Set<ClassDef> toc
           
private  PrintWriter tocWriter
           
 
Constructor Summary
HtmlFormat()
           
 
Method Summary
private  void buildDetail(ClassDef def)
           
private  void buildToc(ClassDef def)
           
private  void copy(String resource)
           
private  void copyResources()
           
private  void footer(PrintWriter writer)
           
private  String link(ClassDef def)
           
 void output(Context context)
           
private  void printAttributeData(org.jvnet.hk2.config.Attribute annotation)
           
private  void printHeaderRow(PrintWriter writer, String... values)
           
private  void printKeyValue(PrintWriter writer, Object value)
           
private  void println(PrintWriter writer, String text)
           
private  void printPropertyData(ClassDef def)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tocWriter

private PrintWriter tocWriter

detail

private PrintWriter detail

toc

private Set<ClassDef> toc

dir

private File dir

defs

private Map<String,ClassDef> defs
Constructor Detail

HtmlFormat

public HtmlFormat()
Method Detail

output

public void output(Context context)
Specified by:
output in interface SchemaOutputFormat

buildDetail

private void buildDetail(ClassDef def)

println

private void println(PrintWriter writer,
                     String text)

printAttributeData

private void printAttributeData(org.jvnet.hk2.config.Attribute annotation)

printPropertyData

private void printPropertyData(ClassDef def)

buildToc

private void buildToc(ClassDef def)
               throws NoSuchMethodException,
                      InvocationTargetException,
                      IllegalAccessException
Throws:
NoSuchMethodException
InvocationTargetException
IllegalAccessException

link

private String link(ClassDef def)

footer

private void footer(PrintWriter writer)

copyResources

private void copyResources()
                    throws IOException
Throws:
IOException

copy

private void copy(String resource)
           throws IOException
Throws:
IOException

printKeyValue

private void printKeyValue(PrintWriter writer,
                           Object value)

printHeaderRow

private void printHeaderRow(PrintWriter writer,
                            String... values)


Copyright © 2012 GlassFish Community. All Rights Reserved.