void writeConfigPropsXml ( List < ConfigPropType > props , Writer out , int indent ) throws IOException { if ( props == null || props . size ( ) == 0 ) return ; for ( ConfigPropType prop : props ) { writeIndent ( out , indent ) ; out . write ( "<config-property>" ) ; writeEol ( out ) ; writeIndent ( out , indent + 1 ) ; out . write ( "<config-property-name>" + prop . getName ( ) + "</config-property-name>" ) ; writeEol ( out ) ; writeIndent ( out , indent + 1 ) ; out . write ( "<config-property-type>java.lang." + prop . getType ( ) + "</config-property-type>" ) ; writeEol ( out ) ; writeIndent ( out , indent + 1 ) ; out . write ( "<config-property-value>" + prop . getValue ( ) + "</config-property-value>" ) ; writeEol ( out ) ; writeIndent ( out , indent ) ; out . write ( "</config-property>" ) ; writeEol ( out ) ; writeEol ( out ) ; } }
Output config props xml part