Package com.onpositive.semantic.model.api.property.java

Examples of com.onpositive.semantic.model.api.property.java.ClassAdapterFactory


      String chId = f.getName();
      Class type = f.getType();

      Binding binding = bnd.getBinding(chId);
      binding.setName(chId);
      Object adapter = new ClassAdapterFactory().getAdapter(type,
          IValidator.class);
      if (adapter != null) {
        binding.setAdapter(IValidator.class, (IValidator) adapter);
      }
      binding.setAutoCommit(false);
View Full Code Here


      } else {
        Class<?> type = f.getType();
        if (type != null) {
          final Binding binding = bnd.getBinding(f.name);
          binding.setValue(e.getProperty(f.name), null);
          Object adapter = new ClassAdapterFactory().getAdapter(type,
              IValidator.class);
          if (adapter != null) {
            binding.setAdapter(IValidator.class,
                (IValidator) adapter);
          }
          adapter = new ClassAdapterFactory().getAdapter(type,
              ILabelLookup.class);
          if (adapter != null) {
            binding.setAdapter(ILabelLookup.class,
                (ILabelLookup) adapter);
          }
          adapter = new ClassAdapterFactory().getAdapter(type,
              IRealmProvider.class);
          if (adapter != null) {

            binding.setAdapter(IRealmProvider.class,
                (IRealmProvider) adapter);
View Full Code Here

    } else {
      final Class<?> type = f.getType();
      if (type != null) {
        final Binding binding = bnd.getBinding(f.name);
        binding.setValue(e.getProperty(f.name), null);
        Object adapter = new ClassAdapterFactory().getAdapter(type,
            IValidator.class);
        if (adapter != null) {
          binding.setAdapter(IValidator.class, (IValidator) adapter);
        }
        adapter = new ClassAdapterFactory().getAdapter(type,
            ILabelLookup.class);
        if (adapter != null) {
          binding.setAdapter(ILabelLookup.class,
              (ILabelLookup) adapter);
        }
        adapter = new ClassAdapterFactory().getAdapter(type,
            IRealmProvider.class);
        if (adapter != null) {

          binding.setAdapter(IRealmProvider.class,
              (IRealmProvider) adapter);
View Full Code Here

TOP

Related Classes of com.onpositive.semantic.model.api.property.java.ClassAdapterFactory

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.