public String get(Axis a) { return get(a.getName()); }
public String get(Axis a) { return get(a.getName()); }
public String get(Axis a) { return get(a.getName()); }
public String get(Axis a) { return get(a.getName()); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
public Combination(AxisList axisList, List<String> values) { for(int i=0; i<axisList.size(); i++) super.put(axisList.get(i).getName(),values.get(i)); }
/** * Previously we used to persist {@link Axis}, but now those are divided * into subtypes. So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass() != Axis.class) { return this; } if (getName().equals("jdk")) { return new JDKAxis(getValues()); } if (getName().equals("label")) { return new LabelAxis(getName(), getValues()); } return new TextAxis(getName(), getValues()); }
public Combination(AxisList axisList, List<String> values) { for(int i=0; i<axisList.size(); i++) super.put(axisList.get(i).getName(),values.get(i)); }
public Combination(AxisList axisList, List<String> values) { for (int i = 0; i < axisList.size(); i++) { super.put(axisList.get(i).getName(), values.get(i)); } }
public Combination(AxisList axisList, List<String> values) { for(int i=0; i<axisList.size(); i++) super.put(axisList.get(i).getName(),values.get(i)); }
/** * Verifies that Axis names are valid and unique. */ private void checkAxisNames(Iterable<Axis> newAxes) throws FormException { HashSet<String> axisNames = new HashSet<String>(); for (Axis a : newAxes) { FormValidation fv = a.getDescriptor().doCheckName(a.getName()); if (fv.kind!=Kind.OK) throw new FormException(Messages.MatrixProject_DuplicateAxisName(),fv,"axis.name"); if (axisNames.contains(a.getName())) throw new FormException(Messages.MatrixProject_DuplicateAxisName(),"axis.name"); axisNames.add(a.getName()); } }
public Combination(AxisList axisList, List<String> values) { for(int i=0; i<axisList.size(); i++) super.put(axisList.get(i).getName(),values.get(i)); }
/** * Verifies that Axis names are valid and unique. */ private void checkAxisNames(Iterable<Axis> newAxes) throws FormException { HashSet<String> axisNames = new HashSet<String>(); for (Axis a : newAxes) { FormValidation fv = a.getDescriptor().doCheckName(a.getName()); if (fv.kind != Kind.OK) { throw new FormException(Messages.MatrixProject_DuplicateAxisName(), fv, "axis.name"); } if (axisNames.contains(a.getName())) { throw new FormException(Messages.MatrixProject_DuplicateAxisName(), "axis.name"); } axisNames.add(a.getName()); } }
@Override public String getName() { initPython(); if (pexec.isImplemented(6)) { return (String) pexec.execPython("get_name"); } else { return super.getName(); } }