Examples of adapt()


Examples of ar.com.AmberSoft.iEvenTask.server.utils.Compatibilizable.adapt()

        while (keys.hasNext()) {
          Object key = (Object) keys.next();
          Object fieldValue = toReturn.get(key);
          GWTCompatibilityEvaluatorTypes evaluatorTypes = new GWTCompatibilityEvaluatorTypes(fieldValue);
          Compatibilizable compatibilizable = evaluatorTypes.getCompatibilizableAdapter();
          fieldValue = compatibilizable.adapt(fieldValue);
          map.put(key, fieldValue);
        }
        return map;
      }
      return null;
View Full Code Here

Examples of com.netfever.verify.api.IPropertyAdapter.adapt()

      IPropertyAdapter property;
     
      this.map = new HashMap<String, IPropertyAdapter>();
    for (Entry<String, String> entry: System.getenv().entrySet()) {
      property = new SystemProperty();
      property.adapt("system." + entry.getKey(), entry.getValue());
     
      this.map.put("system." + entry.getKey(), property);     
    }
   
    for (Entry<Object, Object> entry: System.getProperties().entrySet()) {
View Full Code Here

Examples of com.sun.xml.bind.v2.runtime.reflect.Accessor.adapt()

        super(classInfo,seed);
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(getAdapter());
        this.acc = rawAcc;
    }

    public Set<? extends RuntimeElement> getElements() {
        return (Set<? extends RuntimeElement>)super.getElements();
View Full Code Here

Examples of com.sun.xml.fastinfoset.tools.StAX2SAXReader.adapt()

            StAXDocumentParser parser = new StAXDocumentParser();
            parser.setInputStream(document);
            SAXEventSerializer ses = new SAXEventSerializer(events);
            StAX2SAXReader reader = new StAX2SAXReader(parser, ses);
            reader.setLexicalHandler(ses);
            reader.adapt();
        } else {
            SAXParserFactory parserFactory = SAXParserFactory.newInstance();
            parserFactory.setNamespaceAware(true);
            SAXParser parser = parserFactory.newSAXParser();
            SAXEventSerializer ses = new SAXEventSerializer(events);
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.runtime.reflect.Accessor.adapt()

        if(this instanceof RuntimePropertyInfo) {
            Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
            if(getAdapter()!=null && !isCollection())
                // adapter for a single-value property is handled by accessor.
                // adapter for a collection property is handled by lister.
                rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
            this.acc = rawAcc;
        } else
            this.acc = null;
    }
View Full Code Here

Examples of com.sun.xml.internal.fastinfoset.tools.StAX2SAXReader.adapt()

            StAXDocumentParser parser = new StAXDocumentParser();
            parser.setInputStream(document);
            SAXEventSerializer ses = new SAXEventSerializer(events);
            StAX2SAXReader reader = new StAX2SAXReader(parser, ses);
            reader.setLexicalHandler(ses);
            reader.adapt();
        } else {
            SAXParserFactory parserFactory = SAXParserFactory.newInstance();
            parserFactory.setNamespaceAware(true);
            SAXParser parser = parserFactory.newSAXParser();
            SAXEventSerializer ses = new SAXEventSerializer(events);
View Full Code Here

Examples of io.fabric8.api.FabricService.adapt()

            Map<String, String> dockerProviderConfig = new HashMap<>();

            List<Profile> profileOverlays = new ArrayList<>();
            Version version = null;
            if (profileIds != null && versionId != null) {
                ProfileService profileService = service.adapt(ProfileService.class);
                version = profileService.getVersion(versionId);
                if (version != null) {
                    for (String profileId : profileIds) {
                        Profile profile = version.getRequiredProfile(profileId);
                        if (profile != null) {
View Full Code Here

Examples of nz.govt.natlib.adapter.DataAdapter.adapt()

    pContext.addListener(listener);
   
    // Attempt to harvest the metadata.
    try {       
      // Extract the metadata.
      adapter.adapt(file, pContext);

      //transformer to convert raw output to nlnz_presmet format
      //TransformProcessor transformer = TransformProcessor.getInstance(outDTD, "nlnz_presmet.xsd");
           
      //get the adapter output as a byte array
View Full Code Here

Examples of org.apache.felix.framework.Felix.adapt()

        properties.setProperty("org.osgi.framework.system.capabilities.extra",
                        "osgi.service;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin," +
                        "osgi.service;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel," +
                        "osgi.service;effective:=active;objectClass=org.osgi.service.url.URLHandlers");
        Framework felix = new Felix(properties);
        Collection<Resource> resources = builder.resolve(felix.adapt(BundleRevision.class), false);

        for (Resource resource : resources) {
            System.out.println("Resource: " + getUri(resource));
        }
View Full Code Here

Examples of org.apache.stanbol.rules.adapters.AdaptableAtom.adapt()

                        System.out.println("Class equals");
                    }

                    jenaAtom.setRuleAdapter(this);

                    return (T) jenaAtom.adapt(ruleAtom);

                } catch (InstantiationException e) {
                    log.error(e.getMessage(), e);
                } catch (IllegalAccessException e) {
                    log.error(e.getMessage(), e);
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.