Examples of asClass()


Examples of com.googlecode.mjorm.convert.JavaType.asClass()

      throw new ConversionException(
        "Unable to determine componentType of "+targetType);
    }

    // create array
    Object ret = Array.newInstance(componentType.asClass(), source.size());

    // iterate and convert
    for (int i=0; i<source.size(); i++) {
      Object value = source.get(i);
      if (value!=null) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

            log.debug("ObjectProperty {} not found, creating new one...", propertyURI);
        } else {
            // Add domains to union class
            OntResource domain = objectProperty.getDomain();
            if (domain != null) {
                if (domain.isClass() && domain.asClass().isUnionClass()) {
                    UnionClass unclass = domain.asClass().asUnionClass();
                    for (Resource newDomain : domains) {
                        unclass.addOperand(newDomain);
                    }
                } else {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

        } else {
            // Add domains to union class
            OntResource domain = objectProperty.getDomain();
            if (domain != null) {
                if (domain.isClass() && domain.asClass().isUnionClass()) {
                    UnionClass unclass = domain.asClass().asUnionClass();
                    for (Resource newDomain : domains) {
                        unclass.addOperand(newDomain);
                    }
                } else {
                    List<Resource> resources = new ArrayList<Resource>(domains);
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

            // Add ranges to union class

            OntResource range = objectProperty.getRange();
            if (range != null) {
                if (range.isClass() && range.asClass().isUnionClass()) {
                    UnionClass unclass = range.asClass().asUnionClass();
                    for (Resource newRange : ranges) {
                        unclass.addOperand(newRange);
                    }
                } else {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

            // Add ranges to union class

            OntResource range = objectProperty.getRange();
            if (range != null) {
                if (range.isClass() && range.asClass().isUnionClass()) {
                    UnionClass unclass = range.asClass().asUnionClass();
                    for (Resource newRange : ranges) {
                        unclass.addOperand(newRange);
                    }
                } else {
                    List<Resource> resources = new ArrayList<Resource>(ranges);
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

            datatypeProperty.addRange(range);
        } else {
            // Add domains to union class
            OntResource domain = datatypeProperty.getDomain();
            if (domain != null) {
                if (domain.isClass() && domain.asClass().isUnionClass()) {
                    UnionClass unclass = domain.asClass().asUnionClass();
                    for (Resource newDomain : domains) {
                        unclass.addOperand(newDomain);
                    }
                } else {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

        } else {
            // Add domains to union class
            OntResource domain = datatypeProperty.getDomain();
            if (domain != null) {
                if (domain.isClass() && domain.asClass().isUnionClass()) {
                    UnionClass unclass = domain.asClass().asUnionClass();
                    for (Resource newDomain : domains) {
                        unclass.addOperand(newDomain);
                    }
                } else {
                    List<Resource> resources = new ArrayList<Resource>(domains);
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntResource.asClass()

      OntProperty s_p = this.getOntModel().getOntProperty(subject);
      if (s_p != null) {
        QueryResult qr = new QueryResult(OntologyElement.ONTCLASS);
        OntResource range = s_p.getRange();
        if (range != null) {
          qr.add(wrap(range.asClass()));
          return qr;
        }
        return null;
      }
      return null;
View Full Code Here

Examples of org.gradle.api.internal.plugins.PotentialPluginWithId.asClass()

        PotentialPluginWithId lookup = pluginRegistry.lookup(pluginId.toString());
        if (lookup == null) {
            throw new UnknownPluginException("Plugin with id '" + pluginId + "' not found.");

        }
        return lookup.asClass();
    }
}
View Full Code Here

Examples of org.jboss.errai.codegen.meta.MetaClass.asClass()

          result.add(mc.getErased());
        }
      }
    }

    final Class<?> cls = root.asClass();
    if (cls != null && !cls.equals(NullType.class)) {
      for (final Class<?> c : ScannerSingleton.getOrCreateInstance().getSubTypesOf(cls)) {
        if (!c.isAnonymousClass() && !c.isSynthetic()) {
          result.add(MetaClassFactory.get(c));
        }
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.