X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fproject%2FJalview2XML.java;fp=src%2Fjalview%2Fproject%2FJalview2XML.java;h=c4ad897d4a04f9769d849454461ca7b1d1e8748c;hb=0c805692348a8a45c279ee5f4702c7bd5a393c5e;hp=5106e45652eb37f6342ef9408e688d9c9acfb60f;hpb=587d42166f0f5febf2e1c3f14d11540e3cb1452f;p=jalview.git diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index 5106e45..c4ad897 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -4815,7 +4815,7 @@ public class Jalview2XML if (filters != null) { FeatureMatcherSetI filter = Jalview2XML - .unmarshalFilter(featureType, filters); + .parseFilter(featureType, filters); if (!filter.isEmpty()) { fr.setFeatureFilter(featureType, filter); @@ -5873,7 +5873,7 @@ public class Jalview2XML * @param fcol * @return */ - protected static Colour marshalColour( + public static Colour marshalColour( String featureType, FeatureColourI fcol) { Colour col = new Colour(); @@ -5930,7 +5930,7 @@ public class Jalview2XML * @param and * if true, conditions are and-ed, else or-ed */ - protected static jalview.xml.binding.jalview.FeatureMatcherSet marshalFilter( + public static jalview.xml.binding.jalview.FeatureMatcherSet marshalFilter( FeatureMatcherI firstMatcher, Iterator filters, boolean and) { @@ -5996,14 +5996,14 @@ public class Jalview2XML * @param matcherSetModel * @return */ - protected static FeatureMatcherSetI unmarshalFilter( + public static FeatureMatcherSetI parseFilter( String featureType, jalview.xml.binding.jalview.FeatureMatcherSet matcherSetModel) { FeatureMatcherSetI result = new FeatureMatcherSet(); try { - unmarshalFilterConditions(result, matcherSetModel, true); + parseFilterConditions(result, matcherSetModel, true); } catch (IllegalStateException e) { // mixing AND and OR conditions perhaps @@ -6027,7 +6027,7 @@ public class Jalview2XML * @throws IllegalStateException * if AND and OR conditions are mixed */ - protected static void unmarshalFilterConditions( + protected static void parseFilterConditions( FeatureMatcherSetI matcherSet, jalview.xml.binding.jalview.FeatureMatcherSet matcherSetModel, boolean and) @@ -6080,13 +6080,12 @@ public class Jalview2XML * compound condition */ List matchers = matcherSetModel - .getCompoundMatcher() - .getMatcherSet(); + .getCompoundMatcher().getMatcherSet(); boolean anded = matcherSetModel.getCompoundMatcher().isAnd(); if (matchers.size() == 2) { - unmarshalFilterConditions(matcherSet, matchers.get(0), anded); - unmarshalFilterConditions(matcherSet, matchers.get(1), anded); + parseFilterConditions(matcherSet, matchers.get(0), anded); + parseFilterConditions(matcherSet, matchers.get(1), anded); } else { @@ -6101,7 +6100,7 @@ public class Jalview2XML * @param colourModel * @return */ - protected static FeatureColourI unmarshalColour(Colour colourModel) + public static FeatureColourI parseColour(Colour colourModel) { FeatureColourI colour = null;