Package org.apache.imperius.spl.core

Examples of org.apache.imperius.spl.core.InstanceInfo


      _anchorData = new AnchorData();
    }

    if(instanceInfoList.size()==0)
    {
      InstanceInfo iI=new InstanceInfo(className,null);
            instanceInfoList.add(iI);
    }
    _anchorData.addInstanceInfoListForClass(className, instanceInfoList);
    _anchorData.addQualifierForClass(className, qualifier);
    if(qualifier!=null)
View Full Code Here


        Iterator instanceInfoListIt = instanceInfoList.iterator();
        if(instanceInfoList != null && !instanceInfoList.isEmpty())
        { 
          while(instanceInfoListIt.hasNext())
          { 
            InstanceInfo instanceInfo = (InstanceInfo)instanceInfoListIt.next();
            String instanceName = instanceInfo.getInstanceName();
//            _symbolMap.put(instanceName + "." + key,s);

//            _symbolMap.put(instanceName + "." + key, v);

            // xiping's test 06/19/09
View Full Code Here

  {
    String qualifierName = null;
    if(_symbolTable.getAnchorData() == null)
    {
      List instanceInfoList = new ArrayList(1);
      instanceInfoList.add(new InstanceInfo(classType, new Object()));
      _symbolTable.addAnchor(classType,qualifierName,instanceInfoList);
     
    }
   
  }
View Full Code Here

     
//        System.out.println("+++++++++++"+"Evaluating policy against instance "+instanceCount+"+++++++++++");
        auditloggerString+="+++++++++++"+"Evaluating policy against instance "+instanceCount+"+++++++++++"+"\n";
       
       
        InstanceInfo instanceOfClass = (InstanceInfo)instancesForClassIt.next();
        String instanceName = instanceOfClass.getInstanceName();
        Object instance = instanceOfClass.getInstance();
        Map instanceSymbolMap = instanceOfClass.getInstanceSymbolsMap();
        // populate the symboltable with information from the map
        _symTab.populateInstanceValuesForInstance(className, instanceName,instance, instanceSymbolMap);
      }
     } 
    //evaluate the declaration to populate the values for the constants
View Full Code Here

   
    EvaluationResults result = new EvaluationResults();
//    System.out.println("cimObjectName "+anchorClassName+" "+anchornamespace+" "+anchorInstance.toString());
    //Map keys=this.symTab.getInstance().getMapOfKeys();
    ImportStatement imp=(ImportStatement)this._importStmtList.get(0);
    InstanceInfo ii=(InstanceInfo)imp.getImportInstanceInfoList().get(0);
    String targetclassnm = ii.getInstanceName();
    List targetClassInstances = dc.getAssociatedInstanceReferences(anchorInstance, anchornamespace, targetclassnm, assocName, role1, role2);
   
    Iterator it=targetClassInstances.iterator();
//    System.out.println(">>>>>>>>>>>"+"Policy Group Evaluation - number of associated instances :"+targetClassInstances.size()+"<<<<<<<<<<<");
   
View Full Code Here

                    Iterator instanceListIt = instanceList.iterator();
                    // iterate over all the instances of this class to see if
                    // there is a match
                    while(instanceListIt.hasNext())
                    {
                        InstanceInfo iInfo = (InstanceInfo)instanceListIt.next();
                        if(iInfo.getInstanceName().equals(instanceName))
                        {
                            InstanceInfo instanceInfo = new InstanceInfo(instanceName,instance);
                           
                            String qualifier = _symTab.getQualifierForClass(anchorClassName);
                            Map symbolsForInstance = dc.getSymbolsForInstance(anchorClassName,
                                        qualifier,
                                        instance);
                            instanceInfo.setInstanceSymbolsMap(symbolsForInstance);
                            if(instMap.containsKey(anchorClassName))
                            {
                                List instanceInfoList = (List)instMap.get(anchorClassName);
                                instanceInfoList.add(instanceInfo);
                               
View Full Code Here

      String className = (String)anchorKeySetIt.next();
      List instanceInfoList = (List)_classNameToInstanceInfoListMap.get(className);
      Iterator instanceInfoListIt = instanceInfoList.iterator();
      while(instanceInfoListIt.hasNext())
      {
        InstanceInfo ii = (InstanceInfo)instanceInfoListIt.next();
        if(ii.getInstanceName().equals(instanceName))
        {
          instance = ii.getInstance();
          return instance;
        }
      }
    } 
   
View Full Code Here

    boolean instanceFound = false;
   
    Iterator instanceInfoListIt = instanceInfoList.iterator();
    while(instanceInfoListIt.hasNext())
    {
      InstanceInfo instanceInfo = (InstanceInfo) instanceInfoListIt.next();
      if(instanceInfo.getInstanceName() != null)
      { 
        if(instanceInfo.getInstanceName().equalsIgnoreCase(instanceName))
        {
          instanceInfo.setInstance(instance);
          instanceFound = true;
          break;
        }
      }
      else
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.core.InstanceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.