/** * Returns a String description of a schema. The resulting String format is : * <br> * (OID [DESC '<description>'] FQCN <fcqn> [BYTECODE <bytecode>] X-SCHEMA '<schema>') * <br> * @param description The description to transform to a String * @return */ public static String render( LoadableSchemaObject description ) { StringBuffer buf = new StringBuffer(); buf.append( "( " ).append( description.getOid() ); if ( description.getDescription() != null ) { buf.append( " DESC " ); renderQDString( buf, description.getDescription() ); } buf.append( " FQCN " ).append( description.getFqcn() ); if ( !StringTools.isEmpty( description.getBytecode() ) ) { buf.append( " BYTECODE " ).append( description.getBytecode() ); } buf.append( " X-SCHEMA '" ); buf.append( getSchemaName( description ) ); buf.append( "' )" ); return buf.toString(); }
renderQDString( buf, dsr.getDescription() );
renderQDString( buf, mru.getDescription() );
renderQDString( buf, syntax.getDescription() );
renderQDString( buf, nf.getDescription() );
renderQDString( buf, dcr.getDescription() );
renderQDString( buf, mr.getDescription() );
renderQDString( buf, oc.getDescription() );
renderQDString( buf, at.getDescription() );