org.apache.oodt.xmlps.profile
Class XMLPSProfileHandler
java.lang.Object
org.apache.oodt.xmlps.product.XMLPSProductHandler
org.apache.oodt.xmlps.profile.XMLPSProfileHandler
All Implemented Interfaces: QueryHandler , ProfileHandler
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.
.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
XMLPSProfileHandler
public XMLPSProfileHandler ()
throws InstantiationException
Throws:
InstantiationException
findProfiles
public List <Profile > findProfiles (XMLQuery query)
throws ProfileException
Description copied from interface: ProfileHandler
Find a set of profiles that match the given query .
This method searchs the profiles provided by this profile service provider
based on criteria in the query . It returns an XML document
describing the profiles and profile elements that match.
Specified by: findProfiles in interface ProfileHandler
Parameters: query - Search criteria.
Returns: List of matching Profile objects.
Throws:
ProfileException - If any other error occurs.
get
public Profile get (String id)
throws ProfileException
Description copied from interface: ProfileHandler
Get a profile.
Specified by: get in interface ProfileHandler
Parameters: id - ID of the profile to get.
Returns: The profile with the given profID , or null if it's not found.
Throws:
ProfileException - If any error occurs.
getID
public String getID ()
Description copied from interface: ProfileHandler
Get my ID.
Specified by: getID in interface ProfileHandler
Returns: A string that identifies this profile handler in some way.
queryAndPackageProfiles
protected List <Profile > queryAndPackageProfiles (XMLQuery query)
translateToDomain
protected void translateToDomain (List <QueryElement > elemSet,
boolean selectSet)
throws Exception
Overrides: translateToDomain in class XMLPSProductHandler
Throws:
Exception
Copyright © 1999-2012 Apache OODT . All Rights Reserved.