mil.dod.th.ose.lexicon.doc/src/mil/dod/th/ose/lexicon/doc/markup/MarkupGenerator.java
private void handleElements(final PrintStream stream, final List<LexiconElement> elements) throws IOException
    {
        if (elements.size() > 0)
        {
            stream.println("h4. *Elements*");
            stream.println("||Name||Type||Min Occurs||Max Occurs||Description||");
            for (LexiconElement element: elements)
            {
                final String description = element.getDescription() == null ? SPACE_CHAR : element.getDescription();
                stream.format("|%s|%s|%s|%s|%s|", element.getName(), element.getType(), 
                        element.getMinOccurs(), element.getMaxOccurs(), description);
                stream.println();
            }
        }
    }
/**
     * Method that generates mark-up for a list of elements.
     * 
     * @param stream
     *      Print stream the mark-up should be written to.
     * @param elements
     *      List of elements that mark-up should be generated for.
     * @throws IOException
     *      Thrown if an exception occurs writing the mark-up to the buffered writer.
     */
Method that generates mark-up for a list of elements.

@param stream
Print stream the mark-up should be written to.
@param elements
List of elements that mark-up should be generated for.
@throws IOException
Thrown if an exception occurs writing the mark-up to the buffered writer.
Method that generates mark - up for a list of elements . @param stream Print stream the mark - up should be written to . @param elements List of elements that mark - up should be generated for . @throws IOException Thrown if an exception occurs writing the mark - up to the buffered writer .
private void handleElements(final PrintStream stream, final List<LexiconElement> elements) throws IOException
    {
        if (elements.size() > 0)
        {
            stream.println("h4. *Elements*");
            stream.println("||Name||Type||Min Occurs||Max Occurs||Description||");
            for (LexiconElement element: elements)
            {
                final String description = element.getDescription() == null ? SPACE_CHAR : element.getDescription();
                stream.format("|%s|%s|%s|%s|%s|", element.getName(), element.getType(), 
                        element.getMinOccurs(), element.getMaxOccurs(), description);
                stream.println();
            }
        }
    }
private void handleElements ( final PrintStream stream , final List < LexiconElement > elements ) throws IOException { if ( elements . size ( ) > 0 ) { stream . println ( "h4. *Elements*" ) ; stream . println ( "||Name||Type||Min Occurs||Max Occurs||Description||" ) ; for ( LexiconElement element : elements ) { final String description = element . getDescription ( ) == null ? SPACE_CHAR : element . getDescription ( ) ; stream . format ( "|%s|%s|%s|%s|%s|" , element . getName ( ) , element . getType ( ) , element . getMinOccurs ( ) , element . getMaxOccurs ( ) , description ) ; stream . println ( ) ; } } }
Method that generates mark-up for a list of elements.
Method that generates mark - up for a list of elements .