/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String data = super.getString(); if (m_properties.getProperty((String)data) != null) data = m_properties.getProperty(data); return data; } };
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) string = this.decodeString(string); return string; } public String decodeString(String string)
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) string = this.decodeString(string); return string; } public String decodeString(String string)
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) string = this.decodeString(string); return string; } public String decodeString(String string)
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { // By default, get the data as-is String string = this.stripNonNumeric(super.getString()); int dataLength = string.length(); if (dataLength > 4) string = string.substring(0, 4) + "-" + string.substring(4); return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { // By default, get the data as-is String string = this.stripNonNumeric(super.getString()); int dataLength = string.length(); if (dataLength > 4) string = string.substring(0, 4) + "-" + string.substring(4); return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { // By default, get the data as-is String string = this.stripNonNumeric(super.getString()); int dataLength = string.length(); if (dataLength > 4) string = string.substring(0, 4) + "-" + string.substring(4); return string; } /**
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) { StringBuffer sb = new StringBuffer(string); if (sb.length() > m_iUnmaskedChars) { String strFiller = "" + FILLER; for (int i = 0; i < sb.length() - m_iUnmaskedChars; i++) { sb.replace(i, i+1, strFiller); } string = sb.toString(); } } return string; } protected int m_iUnmaskedChars = 4;
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) { StringBuffer sb = new StringBuffer(string); if (sb.length() > m_iUnmaskedChars) { String strFiller = "" + FILLER; for (int i = 0; i < sb.length() - m_iUnmaskedChars; i++) { sb.replace(i, i+1, strFiller); } string = sb.toString(); } } return string; } protected int m_iUnmaskedChars = 4;
/** * Retrieve (in string format) from this field. * @return This field as a percent string. */ public String getString() { String string = super.getString(); if ((string != null) && (string.length() > 0)) { StringBuffer sb = new StringBuffer(string); if (sb.length() > m_iUnmaskedChars) { String strFiller = "" + FILLER; for (int i = 0; i < sb.length() - m_iUnmaskedChars; i++) { sb.replace(i, i+1, strFiller); } string = sb.toString(); } } return string; } protected int m_iUnmaskedChars = 4;
/** * Retrieve (in string format) from this field. * @return The current string of the current next converter. */ public String getString() { if (this.getNextConverter() != null) return this.getNextConverter().getString(); else return super.getString(); } /**
/** * Retrieve (in string format) from this field. * @return The current string of the current next converter. */ public String getString() { if (this.getNextConverter() != null) return this.getNextConverter().getString(); else return super.getString(); } /**
/** * Retrieve (in string format) from this field. * @return The current string of the current next converter. */ public String getString() { if (this.getNextConverter() != null) return this.getNextConverter().getString(); else return super.getString(); } /**
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**