mil.dod.th.ose.config/src/mil/dod/th/ose/config/loading/impl/OSGiConfigLoaderImpl.java
private AttributeDefinition findDefinition(final String propId, final List<AttributeDefinition> attributes)
    {
        for (AttributeDefinition definition: attributes)
        {
            if (definition.getID().equals(propId))
            {
                return definition;
            }
        }
        throw new IllegalArgumentException(String.format("Property with ID %s does not exist.", propId));
    }
/**
     * Method that finds the attribute definition for the property with the specified name.
     * 
     * @param propId
     *      The id of the property to find the attribute definition for.
     * @param attributes
     *      List of attribute definitions to be searched.
     * @return
     *      The attribute definition the corresponds to the property with the specified name.
     */
Method that finds the attribute definition for the property with the specified name.

@param propId
The id of the property to find the attribute definition for.
@param attributes
List of attribute definitions to be searched.
@return
The attribute definition the corresponds to the property with the specified name.
Method that finds the attribute definition for the property with the specified name . @param propId The id of the property to find the attribute definition for . @param attributes List of attribute definitions to be searched . @return The attribute definition the corresponds to the property with the specified name .
private AttributeDefinition findDefinition(final String propId, final List<AttributeDefinition> attributes)
    {
        for (AttributeDefinition definition: attributes)
        {
            if (definition.getID().equals(propId))
            {
                return definition;
            }
        }
        throw new IllegalArgumentException(String.format("Property with ID %s does not exist.", propId));
    }
private AttributeDefinition findDefinition ( final String propId , final List < AttributeDefinition > attributes ) { for ( AttributeDefinition definition : attributes ) { if ( definition . getID ( ) . equals ( propId ) ) { return definition ; } } throw new IllegalArgumentException ( String . format ( "Property with ID %s does not exist." , propId ) ) ; }
Method that finds the attribute definition for the property with the specified name.
Method that finds the attribute definition for the property with the specified name .