if(isAssoc)
{
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" class is an association");
CIMProperty srcProperty=associationClass.getProperty(role);
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" check to see if the role played by src class is correct");
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" src RefClassName(),className::"+
srcProperty.getOriginClass()+" "+className);
//check to see if the role played by src class is correct
if(_classNameMatchesString(srcProperty.getType().getRefClassName().trim(), classPath, className))
{
CIMProperty resultProperty=associationClass.getProperty(resultRole);
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" check to see if role played by result class is corrrect");
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" result RefClassName(),className::"+
resultProperty.getType().getRefClassName()+" "+resultClass);
//check to see if role played by result class is corrrect
if(_classNameMatchesString(resultProperty.getType().getRefClassName().trim(), classPath, resultClass))
{
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" associationExists returning true");
logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "associationExists");
return true;
}
else
{
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" associationExists returning false " +
"because of resultClass "+resultClass+ " "+resultProperty.getType().getRefClassName());
logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "associationExists");
return false;
}
}