public class XMLPSProfileHandler extends XMLPSProductHandler implements ProfileHandler
An implementation of a ProfileHandler
that extends the capabilities
of the XMLPSProductHandler
, and uses the XML Specification defined
by the mapping file to represent its field mapping information.
mapping
Constructor and Description |
---|
XMLPSProfileHandler() |
Modifier and Type | Method and Description |
---|---|
List<Profile> |
findProfiles(XMLQuery query)
Find a set of profiles that match the given query.
|
Profile |
get(String id)
Get a profile.
|
String |
getID()
Get my ID.
|
protected List<Profile> |
queryAndPackageProfiles(XMLQuery query) |
protected void |
translateToDomain(List<QueryElement> elemSet,
boolean selectSet) |
getConstElemNamesFromQueryElemSet, getElemNamesFromQueryElemSet, getRequiredTables, main, query, queryAndPackageResults
public XMLPSProfileHandler() throws InstantiationException
InstantiationException
public List<Profile> findProfiles(XMLQuery query) throws ProfileException
ProfileHandler
findProfiles
in interface ProfileHandler
query
- Search criteria.Profile
objects.ProfileException
- If any other error occurs.public Profile get(String id) throws ProfileException
ProfileHandler
get
in interface ProfileHandler
id
- ID of the profile to get.ProfileException
- If any error occurs.public String getID()
ProfileHandler
getID
in interface ProfileHandler
protected void translateToDomain(List<QueryElement> elemSet, boolean selectSet) throws Exception
translateToDomain
in class XMLPSProductHandler
Exception
Copyright © 1999-2014 Apache OODT. All Rights Reserved.