// }
private static Vector _getPropertiesOfClass(CIMClass cimClass ,String classPath ) throws CIMException
{
logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "getPropertiesOfClass");
CIMClass cimclass=cimClass;
Vector propertyNames=new Vector();
Vector properties=cimclass.getAllProperties();
Iterator it=properties.iterator();
String superClass=cimclass.getSuperClass();
while(it.hasNext())
{
CIMProperty cimProp=(CIMProperty)it.next();
//System.out.println("cimProp "+cimProp.toString());
String propName=cimProp.getName();
//System.out.println("propName "+propName);
propertyNames.add(propName);
}
superClass=cimclass.getSuperClass();
while((superClass!= null)&&(superClass!= "")&&(superClass.length()!=0))
{
CIMObjectPath cop=new CIMObjectPath(superClass,classPath);
cimclass=_handle.getClass(cop, true, true, true, null);
Vector propertiesSuper=cimclass.getAllProperties();
Iterator proppertiesSuperIt=propertiesSuper.iterator();
while(proppertiesSuperIt.hasNext())
{
CIMProperty cimProp=(CIMProperty)proppertiesSuperIt.next();
if (!propertyNames.contains(cimProp.getName()))
{
properties.add(cimProp);
String propName=cimProp.getName();
propertyNames.add(propName);
if(logger.isLoggable(Level.FINE))
logger.fine(cimProp.getName()+"new superclass property found "+cimProp.getName());
}
else
{
if(logger.isLoggable(Level.FINE))
logger.fine(cimProp.getName()+"already exists ,Super class variable ignored");
}
}
superClass=cimclass.getSuperClass();
}
logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "getPropertiesOfClass");
return properties;
}