private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }
private JoinArray readJoinArray(NetcdfDataset ds, Element joinElement) { JoinArray.Type type = JoinArray.Type.valueOf(joinElement.getAttributeValue("type")); Element paramElem = joinElement.getChild("param"); String paramS = paramElem.getText(); Integer param = Integer.parseInt(paramS); Element varElem = joinElement.getChild("variable"); String varName = varElem.getText(); VariableDS v = (VariableDS) ds.findVariable(varName); return new JoinArray(v, type, param); }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }
private JoinArray readJoinArray(NetcdfDataset ds, Element joinElement) { JoinArray.Type type = JoinArray.Type.valueOf(joinElement.getAttributeValue("type")); Element paramElem = joinElement.getChild("param"); String paramS = paramElem.getText(); Integer param = Integer.parseInt(paramS); Element varElem = joinElement.getChild("variable"); String varName = varElem.getText(); VariableDS v = (VariableDS) ds.findVariable(varName); return new JoinArray(v, type, param); }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }
private JoinArray readJoinArray(NetcdfDataset ds, Element joinElement) { JoinArray.Type type = JoinArray.Type.valueOf(joinElement.getAttributeValue("type")); Element paramElem = joinElement.getChild("param"); String paramS = paramElem.getText(); Integer param = Integer.parseInt(paramS); Element varElem = joinElement.getChild("variable"); String varName = varElem.getText(); VariableDS v = (VariableDS) ds.findVariable(varName); return new JoinArray(v, type, param); }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }