|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.markers.CompareByProperties
public class CompareByProperties
This class is a MarkerDuplicateComparator that compares two markers by type and property value. The property names that are compared are defined by the propertyNamesToCheck array.
Each property is compared using object.equals().
To return true both markers must be of the same type and all the compared properties must be equal.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
java.lang.String[] |
mPropertiesToCompare
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
CompareByProperties()
|
Method Summary | |
---|---|
java.lang.String[] |
getPropertiesToCompare()
Returns the the property names to compare |
boolean |
isDuplicateMarker(RepositoryItem pMarker1,
RepositoryItem pMarker2)
This method determines if the two markers are duplicates of each other. |
void |
setPropertiesToCompare(java.lang.String[] pPropertiesToCompare)
Sets the property names to compare |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public java.lang.String[] mPropertiesToCompare
Constructor Detail |
---|
public CompareByProperties()
Method Detail |
---|
public void setPropertiesToCompare(java.lang.String[] pPropertiesToCompare)
public java.lang.String[] getPropertiesToCompare()
public boolean isDuplicateMarker(RepositoryItem pMarker1, RepositoryItem pMarker2) throws MarkerException
isDuplicateMarker
in interface MarkerDuplicateComparator
pMarker1
- marker 1 to use in comparisonpMarker2
- marker 2 to use in comparison
MarkerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |