mil.dod.th.ose.lexicon.doc/src/mil/dod/th/ose/lexicon/doc/markup/MarkupGenerator.java
private void handleAttributes(final PrintStream stream, final List<LexiconAttribute> attributes) throws IOException
    {
        if (attributes.size() > 0)
        {
            stream.println("h4. *Attributes*");
            stream.println("||Name||Type||Use||Description||");
            for (LexiconAttribute attribute: attributes)
            {
                final String use = attribute.getUse().isEmpty()  ? SPACE_CHAR : attribute.getUse();
                final String description = attribute.getDescription() == null ? SPACE_CHAR : attribute.getDescription();
                stream.format("|%s|%s|%s|%s|", attribute.getName(), attribute.getType(), 
                        use, description);
                stream.println();
            }
        }
    }
/**
     * Method that generates mark-up for a list of attributes.
     * 
     * @param stream
     *      Print stream the mark-up should be written to.
     * @param attributes
     *      List of attributes 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 attributes.

@param stream
Print stream the mark-up should be written to.
@param attributes
List of attributes 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 attributes . @param stream Print stream the mark - up should be written to . @param attributes List of attributes that mark - up should be generated for . @throws IOException Thrown if an exception occurs writing the mark - up to the buffered writer .
private void handleAttributes(final PrintStream stream, final List<LexiconAttribute> attributes) throws IOException
    {
        if (attributes.size() > 0)
        {
            stream.println("h4. *Attributes*");
            stream.println("||Name||Type||Use||Description||");
            for (LexiconAttribute attribute: attributes)
            {
                final String use = attribute.getUse().isEmpty()  ? SPACE_CHAR : attribute.getUse();
                final String description = attribute.getDescription() == null ? SPACE_CHAR : attribute.getDescription();
                stream.format("|%s|%s|%s|%s|", attribute.getName(), attribute.getType(), 
                        use, description);
                stream.println();
            }
        }
    }
private void handleAttributes ( final PrintStream stream , final List < LexiconAttribute > attributes ) throws IOException { if ( attributes . size ( ) > 0 ) { stream . println ( "h4. *Attributes*" ) ; stream . println ( "||Name||Type||Use||Description||" ) ; for ( LexiconAttribute attribute : attributes ) { final String use = attribute . getUse ( ) . isEmpty ( ) ? SPACE_CHAR : attribute . getUse ( ) ; final String description = attribute . getDescription ( ) == null ? SPACE_CHAR : attribute . getDescription ( ) ; stream . format ( "|%s|%s|%s|%s|" , attribute . getName ( ) , attribute . getType ( ) , use , description ) ; stream . println ( ) ; } } }
Method that generates mark-up for a list of attributes.
Method that generates mark - up for a list of attributes .