<?php
/**
 * This file is part of the set of the DDR Simple API definition. It contains the
 * definition of the {@link PropertyValues} interface.
 * 
 * @author Sylvain Lequeux
 * @author Francois Daoust <fd@w3.org>
 * @package AskPythia
 * @subpackage Interface
 * @version $Revision: 1.12 $
 * @license http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231.html W3C Software Notice and License
 * @copyright Copyright (c) 2009, W3C (MIT, ERCIM, Keio)
 */

/**
 * {@link http://www.w3.org/TR/DDR-Simple-API/#sec-PropertyValues PropertyValues}
 * interface as defined in the {@link http://www.w3.org/TR/DDR-Simple-API/
 * DDR Simple API} standard.
 * 
 * A set of {@link PropertyValue}.
 * 
 * @author Sylvain Lequeux
 * @package AskPythia
 * @author Francois Daoust <fd@w3.org>
 * @subpackage Interface
 * @link http://www.w3.org/TR/DDR-Simple-API/ Device Description Repository Simple API
 * @version $Revision: 1.12 $
 * @license http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231.html W3C Software Notice and License
 * @copyright Copyright (c) 2009, W3C (MIT, ERCIM, Keio)
 */
interface propertyValues {
	/**
	 * Returns all the properties of the set.
	 * 
	 * @return array(PropertyValue) The list of PropertyValue.
	 */
	public function getAll();
	
	/**
	 * Returns the property value in the set that matches the given named property.
	 * 
	 * @param PropertyRef $prop The Property reference to retrieve
	 * @return PropertyValue The corresponding property value.
	 * @exception NameException The property reference is not supported
	 */
	public function getValue($prop);
}

?>