/** * This method calls <code>toString</code> for all it's objects and appends * them without any newline characters. * * @return brief description string */ public String getBriefDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + "=\"" + object.toString() + "\"; "); } } return str; }
/** * This method calls <code>toString</code> for all it's objects and appends * them without any newline characters. * * @return brief description string */ public String getBriefDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + "=\"" + object.toString() + "\"; "); } } return str; }
/** * This method calls <code>toString</code> for all it's objects and appends * them without any newline characters. * * @return brief description string */ public String getBriefDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + "=\"" + object.toString() + "\"; "); } } return str; }
/** * This method calls <code>toString</code> for all it's objects and appends * them. It contains new line characters and is more suited for display * purposes * * @return formatted description string */ public final String getLongDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + " = " + object.toString() + "\n"); } } return str; }
/** * Returns the datatype with the specified * <code>identifier</code> * * @param identifier * @return the datatype with the specified * <code>identifier</code> */ public final AbstractDataType getObject(String identifier) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { return object; } } return null; }
/** * This method calls <code>toString</code> for all it's objects and appends * them. It contains new line characters and is more suited for display * purposes * * @return formatted description string */ public final String getLongDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + " = " + object.toString() + "\n"); } } return str; }
/** * This method calls <code>toString</code> for all it's objects and appends * them. It contains new line characters and is more suited for display * purposes * * @return formatted description string */ public final String getLongDescription() { String str = ""; for (AbstractDataType object : objectList) { if ((object.toString() != null) && (object.toString().length() > 0)) { str += (object.getIdentifier() + " = " + object.toString() + "\n"); } } return str; }
/** * Returns the datatype with the specified * <code>identifier</code> * * @param identifier * @return the datatype with the specified * <code>identifier</code> */ public final AbstractDataType getObject(String identifier) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { return object; } } return null; }
/** * Returns the datatype with the specified * <code>identifier</code> * * @param identifier * @return the datatype with the specified * <code>identifier</code> */ public final AbstractDataType getObject(String identifier) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { return object; } } return null; }
/** * Sets all objects of identifier type to value defined by <code>obj</code> argument. * * @param identifier <code>MP3Object</code> identifier * @param value new datatype value */ public final void setObjectValue(String identifier, Object value) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { object.setValue(value); } } }
/** * Sets all objects of identifier type to value defined by <code>obj</code> argument. * * @param identifier <code>MP3Object</code> identifier * @param value new datatype value */ public final void setObjectValue(String identifier, Object value) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { object.setValue(value); } } }
/** * Sets all objects of identifier type to value defined by <code>obj</code> argument. * * @param identifier <code>MP3Object</code> identifier * @param value new datatype value */ public final void setObjectValue(String identifier, Object value) { AbstractDataType object; Iterator<AbstractDataType> iterator = objectList.listIterator(); while (iterator.hasNext()) { object = iterator.next(); if (object.getIdentifier().equals(identifier)) { object.setValue(value); } } }