protected CharSequence getDataLine ( final Classification _clazz , final IClassificationFilter _filter ) throws EFapsException { final StringBuilder js = new StringBuilder ( ) ; if ( _clazz . hasAccess ( null , AccessTypeEnums . SHOW . getAccessType ( ) ) ) { js . append ( ",\n{id:'" ) . append ( _clazz . getUUID ( ) ) . append ( "', name:'" ) . append ( StringEscapeUtils . escapeEcmaScript ( _clazz . getLabel ( ) ) ) . append ( "', parent:'" ) . append ( _clazz . isRoot ( ) ? "root" : _clazz . getParentClassification ( ) . getUUID ( ) ) . append ( "', selected:" ) . append ( _filter . contains ( _clazz . getUUID ( ) ) ) . append ( "}" ) ; for ( final Classification childClazz : _clazz . getChildClassifications ( ) ) { js . append ( getDataLine ( childClazz , _filter ) ) ; } } return js ; }
Gets the data line .