/** * Attribute. * * @param indexAttribute the index Attribute * @return the attribute */ public Attribute attribute(int indexAttribute) { if (this.attributes == null) { //All attributes are numeric return defaultNumericAttribute(); } int location = locateIndex(indexAttribute); if (location == -1) { //if there is not attribute information, it is numeric return defaultNumericAttribute(); } return attributes[location]; }