From f9910a9edd531e69f4f7003a13dc7c5c4117a537 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 28 Jul 2011 20:06:36 +0000 Subject: [PATCH] search binary characters --- .../org/forester/phylogeny/PhylogenyMethods.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java index 5b936d5..b118fb5 100644 --- a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java +++ b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java @@ -1011,6 +1011,15 @@ public class PhylogenyMethods { } } } + else if ( node.getNodeData().getBinaryCharacters() != null ) { + final String[] bc_ary = node.getNodeData().getBinaryCharacters().getPresentCharactersAsStringArray(); + I: for( final String bc : bc_ary ) { + if ( match( bc, query, case_sensitive, partial ) ) { + match = true; + break I; + } + } + } if ( match ) { nodes.add( node ); } @@ -1093,6 +1102,16 @@ public class PhylogenyMethods { } } } + else if ( node.getNodeData().getBinaryCharacters() != null ) { + final String[] bc_ary = node.getNodeData().getBinaryCharacters() + .getPresentCharactersAsStringArray(); + I: for( final String bc : bc_ary ) { + if ( match( bc, query, case_sensitive, partial ) ) { + match = true; + break I; + } + } + } if ( !match ) { all_matched = false; break; -- 1.7.10.2