Examples of IClass


Examples of com.adobe.ac.pmd.nodes.IClass

            + "RaoulTest.as" ) );
      final IParserNode bug888Ast = FileSetUtils.buildAst( getTestFiles().get( "bug."
            + "FlexPMD88.as" ) );
      final IParserNode pngEncoderAst = FileSetUtils.buildAst( getTestFiles().get( "PngEncoder.as" ) );

      final IClass radonDataGrid = NodeFactory.createPackage( dataGridAst ).getClassNode();
      final IClass nonBindableModelLocator = NodeFactory.createPackage( modelLocatorAst ).getClassNode();
      final IClass flexUnit4TestCase = NodeFactory.createPackage( flexUnit4TestCaseAst ).getClassNode();
      final IClass bug88 = NodeFactory.createPackage( bug888Ast ).getClassNode();
      final IClass pngEncoder = NodeFactory.createPackage( pngEncoderAst ).getClassNode();

      constructor = radonDataGrid.getFunctions().get( 0 );
      drawHighlightIndicator = radonDataGrid.getFunctions().get( 1 );
      drawSelectionIndicator = radonDataGrid.getFunctions().get( 2 );
      drawRowBackground = radonDataGrid.getFunctions().get( 3 );
      placeSortArrow = radonDataGrid.getFunctions().get( 4 );
      isTrueGetter = radonDataGrid.getFunctions().get( 5 );
      isTrueSetter = radonDataGrid.getFunctions().get( 6 );
      getHeight = nonBindableModelLocator.getFunctions().get( 2 );
      flexunit4Test = flexUnit4TestCase.getFunctions().get( 1 );
      flexunit4TestSetUp = flexUnit4TestCase.getFunctions().get( 0 );
      bug88Constructor = bug88.getConstructor();
      fDCTQuant = pngEncoder.getFunctions().get( 9 );
   }
View Full Code Here

Examples of com.change_vision.jude.api.inf.model.IClass

    }
    IElement model = presentations[0].getModel();
    if (!this.codeTools.isClass(model)) {
      return;
    }
    IClass clazz = (IClass) model;
    if (StringUtils.isEmpty(clazz.getName())) {
      return;
    }
    try {
      String str = this.exports.get(this.comboBox.getSelectedItem().toString()).createSkeletonCode(clazz);
      this.sourceView.setText(str.replace("\t", "  "));
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass

    throw new IOntologyError("Operation Not Supported");
  }

  public boolean evaluate(Object obj) {
    if(obj instanceof IClass){
      IClass c2 = (IClass) obj;
      return equals(c2) || hasSubClass(c2);
    }else if(obj instanceof IInstance){
      IInstance i2 = (IInstance) obj;
      return i2.hasType(this);
    }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass

    load();
   
    // load list of classes
    Set<IClass> list = new LinkedHashSet<IClass>();
    for(String s: getList(key)){
      IClass c = ontology.getClass(s);
      if(c != null)
        list.add(c);
    }
    return list;
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass

    // if we got a uri as a code
    int i = name.lastIndexOf("#");
    if(i > -1)
      name = name.substring(i+1);
    // fetch class
    IClass cls = classMap.get(name);
   
    // try some derivative of a name
    if(cls == null){
      cls = classMap.get(deriveName(name));
    }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass

  public IRepository getRepository() {
    return repository;
  }

  public IResource getResource(String name) {
    IClass c = getClass(name);
    // search if not in caseh, can't rely on lookup
    // cause class name and location are not always the same things
    if(c == null){
      try{
        Concept [] result = search(BioPortalHelper.getName(name));
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass

    partOf.setInverseProperty(hasPart);
   
    // now that we have all classes, build a tree, since classes only have the superclasses set
    IResourceIterator it = target.getAllClasses();
    while(it.hasNext()){
      IClass cls = (IClass) it.next();
     
      long time = System.currentTimeMillis();
     
      // now copy equivalent classes classes
      IProperty p = target.getProperty(EQUIVALENT_CLASS);
      if(p != null){
        for(IClass sibling: getClassList(target,cls.getPropertyValues(p))){
          cls.addEquivalentClass(sibling);
        }
        // remove temporary property
        cls.removePropertyValues(p);
      }
     
      // setup direct subclasses and superclasses
      p = target.getProperty(SUPER_CLASS);
      if(p != null){
        for(IClass parent: getClassList(target,cls.getPropertyValues(p))){
          if(!cls.hasDirectSuperClass(parent)){ 
            // add string as a true superclass
            cls.addSuperClass(parent);
            // if superclass is not root, then add this class
            // as a child and remove root as parent
            if(!parent.equals(target.getRoot())){
              parent.addSubClass(cls);
             
              // since everything was added as root, cleanup
              cls.removeSuperClass(target.getRoot());
            }
          }     
        }
       
        // remove temporary property
        cls.removePropertyValues(p);
      }
     
      // setup direct subclasses and superclasses
      p = target.getProperty(SUB_CLASS);
      if(p != null){
        for(IClass child: getClassList(target,cls.getPropertyValues(p))){
          if(!cls.hasDirectSubClass(child)){
            // add string as a true superclass
            cls.addSubClass(child);
            child.addSuperClass(cls);
           
            // if superclass is not root, then add this class
            // as a child and remove root as parent
            if(child.hasDirectSuperClass(target.getRoot())){
              // since everything was added as root, cleanup
              child.removeSuperClass(target.getRoot());
            }
          }
        }
       
        // remove temporary property
        cls.removePropertyValues(p);
      }
     
     
      // now copy disjoint classes
      p = target.getProperty(DISJOINT_CLASS);
      if(p != null){
        for(IClass sibling: getClassList(target,cls.getPropertyValues(p))){
          cls.addDisjointClass(sibling);
        }
        // remove temporary property
        cls.removePropertyValues(p);
      }
   
      // now copy other relationships relationships
      for(String relation: new String [] {PART_OF, HAS_PART}){
        p = target.getProperty("annotation_"+relation);
        if(p != null){
          for(IClass sibling: getClassList(target,cls.getPropertyValues(p))){
           
            IRestriction r = target.createRestriction(IRestriction.SOME_VALUES_FROM);
            r.setProperty(target.getProperty(relation));
            r.setParameter(sibling.getLogicExpression());
            cls.addNecessaryRestriction(r);
          }
          // remove temporary property
          cls.removePropertyValues(p);
        }
      }
     
     
     
View Full Code Here

Examples of edu.pitt.ontology.IClass

   */
  public static boolean isOfParent(IClass cls,String parent){
    if(cls == null)
      return false;
    IOntology o = cls.getOntology();
    IClass p = o.getClass(parent);
    return cls.equals(p) || cls.hasSuperClass(p);
  }
View Full Code Here

Examples of org.codehaus.janino.IClass

            if (className.startsWith("java.")) return null;

            // Check the already-parsed compilation units.
            for (int i = 0; i < JGrep.this.parsedCompilationUnits.size(); ++i) {
                UnitCompiler uc = (UnitCompiler) JGrep.this.parsedCompilationUnits.get(i);
                IClass res = uc.findClass(className);
                if (res != null) {
                    this.defineIClass(res);
                    return res;
                }
            }
View Full Code Here

Examples of org.jibx.util.IClass

            service.getPortName(), "tns", wns);
        def.setServiceLocation(service.getServiceAddress());
       
        // add service documentation if available
        IClassLocator locator = m_generationParameters.getLocator();
        IClass info = locator.getClassInfo(service.getClassName());
        if (info != null) {
            List nodes = m_generationParameters.getWsdlCustom().getFormatter(service).docToNodes(info.getJavaDoc());
            def.setPortTypeDocumentation(nodes);
        }
       
        // find or create the schema element and namespace
        String sns = service.getNamespace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.