private boolean convertNeeded(StructureMembers smData) { for (Variable v : getVariables()) { if (v instanceof VariableDS) { VariableDS vds = (VariableDS) v; if (vds.needConvert()) return true; } else if (v instanceof StructureDS) { StructureDS nested = (StructureDS) v; if (nested.convertNeeded(null)) return true; } // a variable with no data in the underlying smData if ((smData != null) && !varHasData(v, smData)) return true; } return false; }
private boolean convertNeeded(StructureMembers smData) { for (Variable v : getVariables()) { if (v instanceof VariableDS) { VariableDS vds = (VariableDS) v; if (vds.needConvert()) return true; } else if (v instanceof StructureDS) { StructureDS nested = (StructureDS) v; if (nested.convertNeeded(null)) return true; } // a variable with no data in the underlying smData if ((smData != null) && !varHasData(v, smData)) return true; } return false; }
private boolean convertNeeded(StructureMembers smData) { for (Variable v : getVariables()) { if (v instanceof VariableDS) { VariableDS vds = (VariableDS) v; if (vds.needConvert()) return true; } else if (v instanceof StructureDS) { StructureDS nested = (StructureDS) v; if (nested.convertNeeded(null)) return true; } // a variable with no data in the underlying smData if ((smData != null) && !varHasData(v, smData)) return true; } return false; }
protected ArrayStructure convert(Array data, Section section) throws IOException { ArrayStructure orgAS = (ArrayStructure) data; if (!convertNeeded(orgAS.getStructureMembers())) { if (innerStruct.convertNeeded(null)) {
protected ArrayStructure convert(Array data, Section section) throws IOException { ArrayStructure orgAS = (ArrayStructure) data; if (!convertNeeded(orgAS.getStructureMembers())) { if (innerStruct.convertNeeded(null)) {
protected ArrayStructure convert(Array data, Section section) throws IOException { ArrayStructure orgAS = (ArrayStructure) data; if (!convertNeeded(orgAS.getStructureMembers())) { if (innerStruct.convertNeeded(null)) {
protected StructureData convert(StructureData sdata, int recno) throws IOException { if (!convertNeeded(sdata.getStructureMembers())) {
protected StructureData convert(StructureData orgData, int recno) throws IOException { if (!convertNeeded(orgData.getStructureMembers())) {
protected StructureData convert(StructureData orgData, int recno) throws IOException { if (!convertNeeded(orgData.getStructureMembers())) {