if(entityInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
return true;
}
}
if (children[i] instanceof ComponentInstElement) {
ComponentInstElement componentInst = (ComponentInstElement)children[i];
//if we hit one instantiation, we've got children
//beware of recursive definitions
if(componentInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
return true;
}
}
}
return false;
}
//child instantiation
else if (element instanceof EntityInstElement) {
EntityInstElement entityInst = (EntityInstElement) element;
String entityName= entityInst.GetEntityName().toUpperCase();
//list of architectures for this entity
Vector<ArchitectureElement> archList=m_EntityArchList.get(entityName);
if(archList==null){
return false;
}
return (archList.size() != 0);
}
else if (element instanceof ComponentInstElement) {
ComponentInstElement compInst = (ComponentInstElement) element;
String componentName= compInst.GetEntityName().toUpperCase();
//list of architectures for this entity
Vector<ArchitectureElement> archList=m_EntityArchList.get(componentName);
if(archList==null){
return false;
}