}
}
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& match( node.getNodeData().getSequence().getName(), query, case_sensitive, partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& match( node.getNodeData().getSequence().getSymbol(), query, case_sensitive, partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match
+ && node.getNodeData().isHasSequence()
&& ( node.getNodeData().getSequence().getAccession() != null )
&& match( node.getNodeData().getSequence().getAccession().getValue(),
query,
partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& ( node.getNodeData().getSequence().getDomainArchitecture() != null ) ) {
final DomainArchitecture da = node.getNodeData().getSequence().getDomainArchitecture();
I: for( int i = 0; i < da.getNumberOfDomains(); ++i ) {
}
}
}
- else if ( node.getNodeData().getBinaryCharacters() != null ) {
- final String[] bc_ary = node.getNodeData().getBinaryCharacters().getPresentCharactersAsStringArray();
- I: for( final String bc : bc_ary ) {
+ if ( !match && ( node.getNodeData().getBinaryCharacters() != null ) ) {
+ final String[] bcp_ary = node.getNodeData().getBinaryCharacters().getPresentCharactersAsStringArray();
+ I: for( final String bc : bcp_ary ) {
+ if ( match( bc, query, case_sensitive, partial ) ) {
+ match = true;
+ break I;
+ }
+ }
+ final String[] bcg_ary = node.getNodeData().getBinaryCharacters().getGainedCharactersAsStringArray();
+ I: for( final String bc : bcg_ary ) {
if ( match( bc, query, case_sensitive, partial ) ) {
match = true;
break I;
}
}
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& match( node.getNodeData().getSequence().getName(), query, case_sensitive, partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& match( node.getNodeData().getSequence().getSymbol(), query, case_sensitive, partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match
+ && node.getNodeData().isHasSequence()
&& ( node.getNodeData().getSequence().getAccession() != null )
&& match( node.getNodeData().getSequence().getAccession().getValue(),
query,
partial ) ) {
match = true;
}
- else if ( node.getNodeData().isHasSequence()
+ if ( !match && node.getNodeData().isHasSequence()
&& ( node.getNodeData().getSequence().getDomainArchitecture() != null ) ) {
final DomainArchitecture da = node.getNodeData().getSequence().getDomainArchitecture();
I: for( int i = 0; i < da.getNumberOfDomains(); ++i ) {
}
}
}
- else if ( node.getNodeData().getBinaryCharacters() != null ) {
- final String[] bc_ary = node.getNodeData().getBinaryCharacters()
+ if ( !match && ( node.getNodeData().getBinaryCharacters() != null ) ) {
+ final String[] bcp_ary = node.getNodeData().getBinaryCharacters()
.getPresentCharactersAsStringArray();
- I: for( final String bc : bc_ary ) {
+ I: for( final String bc : bcp_ary ) {
+ if ( match( bc, query, case_sensitive, partial ) ) {
+ match = true;
+ break I;
+ }
+ }
+ final String[] bcg_ary = node.getNodeData().getBinaryCharacters()
+ .getGainedCharactersAsStringArray();
+ I: for( final String bc : bcg_ary ) {
if ( match( bc, query, case_sensitive, partial ) ) {
match = true;
break I;