/** * Returns the value of a specific property that is included in this Profile instance. * @see Profile#getProperties() */ public String getPropertyValue(String propertyName) { return getProperties().get(propertyName); } }
@Override protected void onProfileEndingLine(String prevProfileName) { // Check whether we need to insert new properties into this profile Profile modifiedProfile = newProfiles.get(prevProfileName); if (modifiedProfile != null) { for (Entry<String, String> entry : modifiedProfile.getProperties().entrySet()) { String propertyKey = entry.getKey(); String propertyValue = entry.getValue(); if ( !existingProfileProperties.get(prevProfileName).contains(propertyKey) ) { writeProperty(propertyKey, propertyValue); } } } // flush all the buffered comments and empty lines flush(); }
private void writeProfile(Profile profile) { writeProfileName(profile.getProfileName()); for (Entry<String, String> entry : profile.getProperties().entrySet()) { writeProperty(entry.getKey(), entry.getValue()); } }
/** * Returns the value of a specific property that is included in this Profile instance. * @see Profile#getProperties() */ public String getPropertyValue(String propertyName) { return getProperties().get(propertyName); } }
@Override protected void onProfileEndingLine(String prevProfileName) { // Check whether we need to insert new properties into this profile Profile modifiedProfile = newProfiles.get(prevProfileName); if (modifiedProfile != null) { for (Entry<String, String> entry : modifiedProfile.getProperties().entrySet()) { String propertyKey = entry.getKey(); String propertyValue = entry.getValue(); if ( !existingProfileProperties.get(prevProfileName).contains(propertyKey) ) { writeProperty(propertyKey, propertyValue); } } } // flush all the buffered comments and empty lines flush(); }
private void writeProfile(Profile profile) { writeProfileName(profile.getProfileName()); for (Entry<String, String> entry : profile.getProperties().entrySet()) { writeProperty(entry.getKey(), entry.getValue()); } }
/** * Returns the value of a specific property that is included in this Profile instance. * @see Profile#getProperties() */ public String getPropertyValue(String propertyName) { return getProperties().get(propertyName); } }
@Override protected void onProfileEndingLine(String prevProfileName) { // Check whether we need to insert new properties into this profile Profile modifiedProfile = newProfiles.get(prevProfileName); if (modifiedProfile != null) { for (Entry<String, String> entry : modifiedProfile.getProperties().entrySet()) { String propertyKey = entry.getKey(); String propertyValue = entry.getValue(); if ( !existingProfileProperties.get(prevProfileName).contains(propertyKey) ) { writeProperty(propertyKey, propertyValue); } } } // flush all the buffered comments and empty lines flush(); }
private void writeProfile(Profile profile) { writeProfileName(profile.getProfileName()); for (Entry<String, String> entry : profile.getProperties().entrySet()) { writeProperty(entry.getKey(), entry.getValue()); } }