public class XMLRepositoryManager extends Object implements RepositoryManager
 A RepositoryManager that manages Product policy based on an
 xml file called product-types.xml.
 
X_POINT_ID| Constructor and Description | 
|---|
| XMLRepositoryManager(List<String> uris) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addProductType(ProductType productType)
 Adds a ProductType to the RepositoryManager. | 
| ProductType | getProductTypeById(String productTypeId)
 Gets a {link ProductType} from the RepositoryManager identified by its
  productTypeId. | 
| ProductType | getProductTypeByName(String productTypeName)
 Gets a  ProductTypespecified by itsproductTypeName,
 from the RepositoryManager. | 
| List<ProductType> | getProductTypes()
 Gets all the  ProductTypes from the repository. | 
| void | modifyProductType(ProductType productType)
 Modifies a ProductType in the RepositoryManager with the specified ID
 field of the  productType. | 
| void | removeProductType(ProductType productType)
 Removes a ProductType from the RepositoryManager | 
public XMLRepositoryManager(List<String> uris) throws InstantiationException
InstantiationExceptionpublic void addProductType(ProductType productType) throws RepositoryManagerException
RepositoryManagerAdds a ProductType to the RepositoryManager.
addProductType in interface RepositoryManagerproductType - The ProductType to add.RepositoryManagerExceptionpublic void modifyProductType(ProductType productType) throws RepositoryManagerException
RepositoryManager
 Modifies a ProductType in the RepositoryManager with the specified ID
 field of the productType.
 
modifyProductType in interface RepositoryManagerproductType - The new ProductType information.RepositoryManagerException - If any error occurs.public void removeProductType(ProductType productType) throws RepositoryManagerException
RepositoryManagerRemoves a ProductType from the RepositoryManager
.removeProductType in interface RepositoryManagerproductType - The productType to remove.RepositoryManagerException - If any error occurs during the removal.public ProductType getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManager
 Gets a {link ProductType} from the RepositoryManager identified by its
 productTypeId.
 
getProductTypeById in interface RepositoryManagerproductTypeId - The ID of the ProductType to retrieve.ProductType corresponding to the specified
         productTypeId.RepositoryManagerException - If any error occurs.public ProductType getProductTypeByName(String productTypeName) throws RepositoryManagerException
RepositoryManager
 Gets a ProductType specified by its productTypeName,
 from the RepositoryManager.
 
getProductTypeByName in interface RepositoryManagerproductTypeName - The name of the ProductType to get.ProductType, with the specified name.RepositoryManagerException - If any error occurs.public List<ProductType> getProductTypes() throws RepositoryManagerException
RepositoryManager
 Gets all the ProductTypes from the repository.
 
getProductTypes in interface RepositoryManagerList of ProductTypes from the repository.RepositoryManagerException - If any error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.