/** * Retrieve ith String value; only call if isString() is true. * * @param index which index * @return ith String value (if this is a String valued attribute and index in range), else null. * @see Attribute#isString */ public String getStringValue(int index) { if (dataType != DataType.STRING) return null; if ((svalue != null) && (index == 0)) return svalue; return _getStringValue(index); }
/** * Retrieve String value; only call if isString() is true. * * @return String if this is a String valued attribute, else null. * @see Attribute#isString */ public String getStringValue() { if (dataType != DataType.STRING) return null; return (svalue != null) ? svalue : _getStringValue(0); }
/** * Retrieve ith String value; only call if isString() is true. * * @param index which index * @return ith String value (if this is a String valued attribute and index in range), else null. * @see Attribute#isString */ public String getStringValue(int index) { if (dataType != DataType.STRING) return null; if ((svalue != null) && (index == 0)) return svalue; return _getStringValue(index); }
/** * Retrieve String value; only call if isString() is true. * * @return String if this is a String valued attribute, else null. * @see Attribute#isString */ public String getStringValue() { if (dataType != DataType.STRING) return null; return (svalue != null) ? svalue : _getStringValue(0); }
/** * Retrieve ith String value; only call if isString() is true. * * @param index which index * @return ith String value (if this is a String valued attribute and index in range), else null. * @see Attribute#isString */ public String getStringValue(int index) { if (dataType != DataType.STRING) return null; if ((svalue != null) && (index == 0)) return svalue; return _getStringValue(index); }
/** * Retrieve String value; only call if isString() is true. * * @return String if this is a String valued attribute, else null. * @see Attribute#isString */ public String getStringValue() { if (dataType != DataType.STRING) return null; return (svalue != null) ? svalue : _getStringValue(0); }