com.ge.research.acuity.ui.helpers
Class ParameterLookupInfo

java.lang.Object
  extended bycom.ge.research.acuity.ui.helpers.ParameterLookupInfo

public class ParameterLookupInfo
extends java.lang.Object

This class encapsulates the information necessary to uniquely identify a PresentationParameterMap for the purpose of updating the ontology after a user edit.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:50 $
Author:
garbiras

Constructor Summary
ParameterLookupInfo(PresentationParameterMap ppm)
          Constructs a new ParameterLookupInfo object for ppm
ParameterLookupInfo(PresentationParameterMap ppm, boolean isShared)
          Constructs a new ParameterLookupInfo object for ppm
 
Method Summary
 java.lang.String getId()
          Returns the unique id of this lookup information
 PresentationParameterMap getParameterPPM()
          Returns the PresentationParameterMap of the lookup info object
 boolean isSameAs(ParameterLookupInfo pli)
          Compares one ParameterLookupInfo object to another.
 void setParameterPPM(PresentationParameterMap paramPPM)
          Sets the PresentationParameterMap for this lookup object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterLookupInfo

public ParameterLookupInfo(PresentationParameterMap ppm)
Constructs a new ParameterLookupInfo object for ppm

Parameters:
ppm - the presentation parameter map to generate a lookup information object and id for

ParameterLookupInfo

public ParameterLookupInfo(PresentationParameterMap ppm,
                           boolean isShared)
Constructs a new ParameterLookupInfo object for ppm

Parameters:
ppm - the presentation parameter map to generate a lookup information object and id for
isShared - flag indicating whether or not to generate the unique lookup id based upon the parameter map, or upon this object. If isShared is true, then the unique id is generated from parameter map, else it is generated from this lookup object.
Method Detail

getId

public final java.lang.String getId()
Returns the unique id of this lookup information

Returns:
The autogenerated unique id.

getParameterPPM

public final PresentationParameterMap getParameterPPM()
Returns the PresentationParameterMap of the lookup info object

Returns:
The PresentationParameterMap of this lookup information.

isSameAs

public boolean isSameAs(ParameterLookupInfo pli)
Compares one ParameterLookupInfo object to another. If the two objects share the same parameter map then they are considered the same object.

Returns:
true if the two objects share the same parameter map, false otherwise

setParameterPPM

public void setParameterPPM(PresentationParameterMap paramPPM)
Sets the PresentationParameterMap for this lookup object.

Parameters:
paramPPM - the PresentationParameterMap of this lookup information.