Package hec.data.rating
Class JDomRatingSpecificationCatalog
java.lang.Object
hec.data.rating.JDomRatingSpecificationCatalog
- All Implemented Interfaces:
IRatingSpecCatalog
A catalog of rating specifications.
-
Field Summary
Fields inherited from interface hec.data.rating.IRatingSpecCatalog
LOCATION_ID, OFFICE_ID, SPECIFICATION_ID, TEMPLATE_ID, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IRatingSpecification spec) Adds a rating specification to this catalog.Returns all of the specifications in this catalog.getSpecifications(LocationTemplate locRef) Returns a map of templates to specification sets for the given location.intsize()Returns a count of all of the specifications in this catalog.
-
Constructor Details
-
JDomRatingSpecificationCatalog
public JDomRatingSpecificationCatalog()
-
-
Method Details
-
getSpecifications
public NavigableMap<IRatingTemplate,NavigableSet<IRatingSpecification>> getSpecifications(LocationTemplate locRef) Returns a map of templates to specification sets for the given location.- Specified by:
getSpecificationsin interfaceIRatingSpecCatalog- Returns:
-
getSpecifications
public Map<LocationTemplate,NavigableMap<IRatingTemplate, getSpecifications()NavigableSet<IRatingSpecification>>> Returns all of the specifications in this catalog.- Specified by:
getSpecificationsin interfaceIRatingSpecCatalog- Returns:
-
add
Adds a rating specification to this catalog.- Parameters:
spec-
-
size
public int size()Returns a count of all of the specifications in this catalog.- Specified by:
sizein interfaceIRatingSpecCatalog- Returns:
-