private static boolean setName ( String ns , String name , Schema property ) { boolean apply = false ; final String cleanName = StringUtils . trimToNull ( name ) ; final String useName ; if ( ! isEmpty ( cleanName ) && ! cleanName . equals ( ( ( SchemaImpl ) property ) . getName ( ) ) ) { useName = cleanName ; apply = true ; } else { useName = null ; } final String cleanNS = StringUtils . trimToNull ( ns ) ; final String useNS ; if ( ! isEmpty ( cleanNS ) ) { useNS = cleanNS ; apply = true ; } else { useNS = null ; } // Set everything or nothing if ( apply ) { getXml ( property ) . name ( useName ) . namespace ( useNS ) ; } return apply ; }
Puts name space and name for XML node or attribute .