private PropertyType processPropertyType ( ) { final PropertyType pt = new PropertyType ( ) ; pt . setValue ( currentText . toString ( ) ) ; if ( currentAttributes != null && currentAttributes . getLength ( ) > 0 ) { final String regex = currentAttributes . getValue ( "regex" ) ; if ( regex != null ) { pt . setRegex ( Boolean . parseBoolean ( regex ) ) ; } final String caseSensitive = currentAttributes . getValue ( "caseSensitive" ) ; if ( caseSensitive != null ) { pt . setCaseSensitive ( Boolean . parseBoolean ( caseSensitive ) ) ; } } return pt ; }
Processes field members that have been collected during the characters and startElement method to construct a PropertyType object .