org.apache.oodt.xmlps.profile
Class XMLPSProfileHandler

java.lang.Object
  extended by org.apache.oodt.xmlps.product.XMLPSProductHandler
      extended by 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.

.


Field Summary
 
Fields inherited from class org.apache.oodt.xmlps.product.XMLPSProductHandler
mapping
 
Constructor Summary
XMLPSProfileHandler()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.oodt.xmlps.product.XMLPSProductHandler
getConstElemNamesFromQueryElemSet, getElemNamesFromQueryElemSet, getRequiredTables, main, query, queryAndPackageResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPSProfileHandler

public XMLPSProfileHandler()
                    throws InstantiationException
Throws:
InstantiationException
Method Detail

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-2013
Apache OODT. All Rights Reserved.