@Test public void testSubschemSubentryRendererDitStructureRule() { String actual = SchemaObjectRenderer.SUBSCHEMA_SUBENTRY_RENDERER.render( ditStructureRule ); String expected = "( 1234 NAME ( 'name1' 'name2' ) DESC 'description with \\27quotes\\27' OBSOLETE FORM form1 SUP ( 111 222 333 ) X-SCHEMA 'dummy' )"; assertEquals( expected, actual ); ditStructureRule.setSuperRules( null ); String actual2 = SchemaObjectRenderer.SUBSCHEMA_SUBENTRY_RENDERER.render( ditStructureRule ); String expected2 = "( 1234 NAME ( 'name1' 'name2' ) DESC 'description with \\27quotes\\27' OBSOLETE FORM form1 X-SCHEMA 'dummy' )"; assertEquals( expected2, actual2 ); }
public String render( ObjectClass oc ) { StringBuilder buf = renderStartOidNamesDescObsolete( oc, "objectclass" ); renderOids( buf, "SUP", oc.getSuperiorOids() ); if ( oc.getType() != null ) { prettyPrintIndent( buf ); buf.append( oc.getType() ); prettyPrintNewLine( buf ); } renderOids( buf, "MUST", oc.getMustAttributeTypeOids() ); renderOids( buf, "MAY", oc.getMayAttributeTypeOids() ); renderXSchemaName( oc, buf ); renderClose( buf ); return buf.toString(); }
SchemaObjectRenderer { public String render( ObjectClass oc ) { StringBuilder buf = renderStartOidNamesDescObsolete( oc, "objectclass" ); renderOids( buf, "SUP", oc.getSuperiorOids() ); if ( oc.getType() != null ) { prettyPrintIndent( buf ); buf.append( oc.getType() ); prettyPrintNewLine( buf ); } renderOids( buf, "MUST", oc.getMustAttributeTypeOids() ); renderOids( buf, "MAY", oc.getMayAttributeTypeOids() ); renderXSchemaName( oc, buf ); renderClose( buf ); return buf.toString(); } }
SchemaObjectRenderer { public String render( ObjectClass oc ) { StringBuilder buf = renderStartOidNamesDescObsolete( oc, "objectclass" ); renderOids( buf, "SUP", oc.getSuperiorOids() ); if ( oc.getType() != null ) { prettyPrintIndent( buf ); buf.append( oc.getType() ); prettyPrintNewLine( buf ); } renderOids( buf, "MUST", oc.getMustAttributeTypeOids() ); renderOids( buf, "MAY", oc.getMayAttributeTypeOids() ); renderXSchemaName( oc, buf ); renderClose( buf ); return buf.toString(); } private  SchemaObjectRenderer( Style style ); }
SchemaObjectRenderer { public String render( ObjectClass oc ) { StringBuilder buf = renderStartOidNamesDescObsolete( oc, "objectclass" ); renderOids( buf, "SUP", oc.getSuperiorOids() ); if ( oc.getType() != null ) { prettyPrintIndent( buf ); buf.append( oc.getType() ); prettyPrintNewLine( buf ); } renderOids( buf, "MUST", oc.getMustAttributeTypeOids() ); renderOids( buf, "MAY", oc.getMayAttributeTypeOids() ); renderXSchemaName( oc, buf ); renderClose( buf ); return buf.toString(); } private  SchemaObjectRenderer( Style style ); String render( ObjectClass oc ); String render( AttributeType at ); String render( MatchingRule mr ); String render( LdapSyntax syntax ); String render( MatchingRuleUse mru ); String render( DitContentRule dcr ); String render( DitStructureRule dsr ); String render( NameForm nf ); }
SchemaObjectRenderer { public String render( ObjectClass oc ) { StringBuilder buf = renderStartOidNamesDescObsolete( oc, "objectclass" ); renderOids( buf, "SUP", oc.getSuperiorOids() ); if ( oc.getType() != null ) { prettyPrintIndent( buf ); buf.append( oc.getType() ); prettyPrintNewLine( buf ); } renderOids( buf, "MUST", oc.getMustAttributeTypeOids() ); renderOids( buf, "MAY", oc.getMayAttributeTypeOids() ); renderXSchemaName( oc, buf ); renderClose( buf ); return buf.toString(); } private  SchemaObjectRenderer( Style style ); String render( ObjectClass oc ); String render( AttributeType at ); String render( MatchingRule mr ); String render( LdapSyntax syntax ); String render( MatchingRuleUse mru ); String render( DitContentRule dcr ); String render( DitStructureRule dsr ); String render( NameForm nf ); static final SchemaObjectRenderer SUBSCHEMA_SUBENTRY_RENDERER; static final SchemaObjectRenderer OPEN_LDAP_SCHEMA_RENDERER; }