public Discretize(Element discretize,FieldMetaInfo.Optype opType,ArrayList<Attribute> fieldDefs) throws Exception {
  super(opType,fieldDefs);
  m_fieldName=discretize.getAttribute("field");
  m_mapMissingTo=discretize.getAttribute("mapMissingTo");
  if (m_mapMissingTo != null && m_mapMissingTo.length() > 0) {
    m_mapMissingDefined=true;
  }
  m_defaultValue=discretize.getAttribute("defaultValue");
  if (m_defaultValue != null && m_defaultValue.length() > 0) {
    m_defaultValueDefined=true;
  }
  NodeList dbL=discretize.getElementsByTagName("DiscretizeBin");
  for (int i=0; i < dbL.getLength(); i++) {
    Node dbN=dbL.item(i);
    if (dbN.getNodeType() == Node.ELEMENT_NODE) {
      Element dbE=(Element)dbN;
      DiscretizeBin db=new DiscretizeBin(dbE,m_opType);
      m_bins.add(db);
    }
  }
  if (fieldDefs != null) {
    setUpField();
  }
}

public Discretize ( Element discretize , FieldMetaInfo . Optype opType , ArrayList < Attribute > fieldDefs ) throws Exception { super ( opType , fieldDefs ) ; m_fieldName = discretize . getAttribute ( "field" ) ; m_mapMissingTo = discretize . getAttribute ( "mapMissingTo" ) ; if ( m_mapMissingTo != null && m_mapMissingTo . length ( ) > 0 ) { m_mapMissingDefined = true ; } m_defaultValue = discretize . getAttribute ( "defaultValue" ) ; if ( m_defaultValue != null && m_defaultValue . length ( ) > 0 ) { m_defaultValueDefined = true ; } NodeList dbL = discretize . getElementsByTagName ( "DiscretizeBin" ) ; for ( int i = 0 ; i < dbL . getLength ( ) ; i ++ ) { Node dbN = dbL . item ( i ) ; if ( dbN . getNodeType ( ) == Node . ELEMENT_NODE ) { Element dbE = ( Element ) dbN ; DiscretizeBin db = new DiscretizeBin ( dbE , m_opType ) ; m_bins . add ( db ) ; } } if ( fieldDefs != null ) { setUpField ( ) ; } }
constructs a discretize expression
