public void addSpec ( String sectionName , String objectName , String specText ) { PageSection pageSection = findSection ( sectionName ) ; if ( pageSection == null ) { pageSection = new PageSection ( sectionName ) ; sections . add ( pageSection ) ; } ObjectSpecs objectSpecs = new ObjectSpecs ( objectName ) ; objectSpecs . addSpec ( new SpecReader ( ) . read ( specText ) ) ; pageSection . addObjects ( objectSpecs ) ; }
Parses the spec from specText and adds it to the page spec inside specified section . If section does not exit it will create it