question: public boolean isSegmentBalanced ( ) { if ( m_lines . size ( ) == 0 || m_doc . isMultiCurrency ( ) ) return true ; MAcctSchemaElement [ ] elements = m_acctSchema . getAcctSchemaElements ( ) ; for ( int i = 0 ; i < elements . length ; i ++ ) { MAcctSchemaElement ase = elements [ i ] ; if ( ase . isBalanced ( ) && ! isSegmentBalanced ( ase . getElementType ( ) ) ) return false ; } return true ; }
target:  Are all segments balanced