mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/ConfigurationWrapperImpl.java
private boolean checkAttributeValue(final String key, final Object value, final MetaTypeModel metaTypeModel)
    {
        for (AttributeModel attribute: metaTypeModel.getAttributes())
        {
            if (!attribute.getDefaultValues().isEmpty() 
                    && attribute.getDefaultValues().size() == 1
                    && key.equals(attribute.getId()))
            {
                final String modelValue = value.toString();
                final String defaultValue = attribute.getDefaultValues().get(0);
                if (modelValue.equals(defaultValue))
                {
                    return true;
                }
            }
        }
        return false;
    }
/**
     * Method that checks if the configuration property value is equal to the meta type default value.
     * 
     * @param key
     *          Key of the property to be checked.
     * @param value
     *          Value to be checked.
     * @param metaTypeModel
     *          The meta type model that represents the meta type information currently stored by the meta type service
     *          for the specified configuration.
     * @return
     *          True if the property model value matches the meta type default value. Otherwise false is returned.
     */
Method that checks if the configuration property value is equal to the meta type default value.

@param key
Key of the property to be checked.
@param value
Value to be checked.
@param metaTypeModel
The meta type model that represents the meta type information currently stored by the meta type service
for the specified configuration.
@return
True if the property model value matches the meta type default value. Otherwise false is returned.
Method that checks if the configuration property value is equal to the meta type default value . @param key Key of the property to be checked . @param value Value to be checked . @param metaTypeModel The meta type model that represents the meta type information currently stored by the meta type service for the specified configuration . @return True if the property model value matches the meta type default value . Otherwise false is returned .
private boolean checkAttributeValue(final String key, final Object value, final MetaTypeModel metaTypeModel)
    {
        for (AttributeModel attribute: metaTypeModel.getAttributes())
        {
            if (!attribute.getDefaultValues().isEmpty() 
                    && attribute.getDefaultValues().size() == 1
                    && key.equals(attribute.getId()))
            {
                final String modelValue = value.toString();
                final String defaultValue = attribute.getDefaultValues().get(0);
                if (modelValue.equals(defaultValue))
                {
                    return true;
                }
            }
        }
        return false;
    }
private boolean checkAttributeValue ( final String key , final Object value , final MetaTypeModel metaTypeModel ) { for ( AttributeModel attribute : metaTypeModel . getAttributes ( ) ) { if ( ! attribute . getDefaultValues ( ) . isEmpty ( ) && attribute . getDefaultValues ( ) . size ( ) == 1 && key . equals ( attribute . getId ( ) ) ) { final String modelValue = value . toString ( ) ; final String defaultValue = attribute . getDefaultValues ( ) . get ( 0 ) ; if ( modelValue . equals ( defaultValue ) ) { return true ; } } } return false ; }
Method that checks if the configuration property value is equal to the meta type default value.
Method that checks if the configuration property value is equal to the meta type default value .