/** * NOT FULLY IMPLEMENTED! * * @param dsr The DitStructureRule to render * @return The DitStructureRule as a String */ public String render( DitStructureRule dsr ) { StringBuilder buf = new StringBuilder(); if ( style.startWithSchemaType ) { buf.append( "ditstructurerule " ); } buf.append( "( " ).append( dsr.getRuleId() ); renderNames( dsr, buf ); renderDescription( dsr, buf ); renderObsolete( dsr, buf ); prettyPrintIndent( buf ); buf.append( "FORM " ).append( dsr.getForm() ); prettyPrintNewLine( buf ); renderRuleIds( buf, dsr.getSuperRules() ); renderXSchemaName( dsr, buf ); // @todo extensions are not presently supported and skipped // the extensions would go here before closing off the description renderClose( buf ); return buf.toString(); }
/** * NOT FULLY IMPLEMENTED! * * @param dsr The DitStructureRule to render * @return The DitStructureRule as a String */ public String render( DitStructureRule dsr ) { StringBuilder buf = new StringBuilder(); if ( style.startWithSchemaType ) { buf.append( "ditstructurerule " ); } buf.append( "( " ).append( dsr.getRuleId() ); renderNames( dsr, buf ); renderDescription( dsr, buf ); renderObsolete( dsr, buf ); prettyPrintIndent( buf ); buf.append( "FORM " ).append( dsr.getForm() ); prettyPrintNewLine( buf ); renderRuleIds( buf, dsr.getSuperRules() ); renderXSchemaName( dsr, buf ); // @todo extensions are not presently supported and skipped // the extensions would go here before closing off the description renderClose( buf ); return buf.toString(); }
/** * NOT FULLY IMPLEMENTED! * * @param dsr The DitStructureRule to render * @return The DitStructureRule as a String */ public String render( DitStructureRule dsr ) { StringBuilder buf = new StringBuilder(); if ( style.startWithSchemaType ) { buf.append( "ditstructurerule " ); } buf.append( "( " ).append( dsr.getRuleId() ); renderNames( dsr, buf ); renderDescription( dsr, buf ); renderObsolete( dsr, buf ); prettyPrintIndent( buf ); buf.append( "FORM " ).append( dsr.getForm() ); prettyPrintNewLine( buf ); renderRuleIds( buf, dsr.getSuperRules() ); renderXSchemaName( dsr, buf ); // @todo extensions are not presently supported and skipped // the extensions would go here before closing off the description renderClose( buf ); return buf.toString(); }