Examples of supports()


Examples of org.springframework.validation.Validator.supports()

     * @param errors A registry where validation errors are registered.
     */
    public void validate(Object obj, Errors errors) {
        for (Iterator i = validators.iterator(); i.hasNext();) {
            Validator validator = (Validator)i.next();
            if (validator.supports(obj.getClass())) {
                validator.validate(obj, errors);
            }
        }
    }

Examples of org.springframework.ws.transport.WebServiceMessageSender.supports()

        URI messageId = new URI("uid:1234");
        expect(strategyMock.newMessageId((SoapMessage) context.getResponse())).andReturn(messageId);

        URI uri = new URI("http://example.com/business/client1");
        expect(senderMock.supports(uri)).andReturn(true);
        expect(senderMock.createConnection(uri)).andReturn(connectionMock);
        connectionMock.send(response);
        connectionMock.close();

        replay(strategyMock, senderMock, connectionMock);

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.ClassValidationElementHandler.supports()

     * @see org.springmodules.validation.bean.conf.loader.xml.ValidationRuleElementHandlerRegistry#findClassHandler(org.w3c.dom.Element, Class)
     */
    public ClassValidationElementHandler findClassHandler(Element element, Class clazz) {
        for (Iterator iter = classHandlers.iterator(); iter.hasNext();) {
            ClassValidationElementHandler handler = (ClassValidationElementHandler) iter.next();
            if (handler.supports(element, clazz)) {
                return handler;
            }
        }
        return null;
    }

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.ClassValidationElementHandler.supports()

     * @see org.springmodules.validation.bean.conf.loader.xml.ValidationRuleElementHandlerRegistry#findClassHandler(org.w3c.dom.Element, Class)
     */
    public ClassValidationElementHandler findClassHandler(Element element, Class clazz) {
        for (Iterator iter = classHandlers.iterator(); iter.hasNext();) {
            ClassValidationElementHandler handler = (ClassValidationElementHandler)iter.next();
            if (handler.supports(element, clazz)) {
                return handler;
            }
        }
        return null;
    }

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.PropertyValidationElementHandler.supports()

     * @see org.springmodules.validation.bean.conf.loader.xml.ValidationRuleElementHandlerRegistry#findPropertyHandler(org.w3c.dom.Element, Class, java.beans.PropertyDescriptor)
     */
    public PropertyValidationElementHandler findPropertyHandler(Element element, Class clazz, PropertyDescriptor descriptor) {
        for (Iterator iter = propertyHandlers.iterator(); iter.hasNext();) {
            PropertyValidationElementHandler handler = (PropertyValidationElementHandler) iter.next();
            if (handler.supports(element, clazz, descriptor)) {
                return handler;
            }
        }
        return null;
    }

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.PropertyValidationElementHandler.supports()

     * @see org.springmodules.validation.bean.conf.loader.xml.ValidationRuleElementHandlerRegistry#findPropertyHandler(org.w3c.dom.Element, Class, java.beans.PropertyDescriptor)
     */
    public PropertyValidationElementHandler findPropertyHandler(Element element, Class clazz, PropertyDescriptor descriptor) {
        for (Iterator iter = propertyHandlers.iterator(); iter.hasNext();) {
            PropertyValidationElementHandler handler = (PropertyValidationElementHandler)iter.next();
            if (handler.supports(element, clazz, descriptor)) {
                return handler;
            }
        }
        return null;
    }

Examples of org.switchyard.policy.Policy.supports()

        List<Policy> implToAdd = new LinkedList<Policy>();
        List<Policy> interactToAdd = new LinkedList<Policy>();
        for (int i=0; i<interaction.size(); i++) {
            Policy required = interaction.get(i).getPolicyDependency();
            if (required != null) {
                if (required.supports(PolicyType.INTERACTION) && !interaction.contains(required) && !interactToAdd.contains(required)) {
                    BaseDeployLogger.ROOT_LOGGER.enforcingInteractionPolicyDependency(required.toString(), interaction.get(i).toString());
                    interactToAdd.add(required);
                } else if (required.supports(PolicyType.IMPLEMENTATION) && !implementation.contains(required) && !implToAdd.contains(required)) {
                    BaseDeployLogger.ROOT_LOGGER.enforcingImplementationPolicyDependency(required.toString(), interaction.get(i).toString());
                    implToAdd.add(required);

Examples of org.switchyard.serial.graph.Factory.supports()

            return null;
        }
        final Class clazz = (Class)graph.decomposeReference(getClazz());
        final Factory factory = Factory.getFactory(clazz);
        final Object obj;
        if (factory.supports(clazz)) {
            obj = factory.create(clazz, this);
        } else {
            final String className = clazz != null ? clazz.getName() : "null";
            SerialLogger.ROOT_LOGGER.classUnsupportedByFactoryReturningNull(className, factory.getClass().getName());
            obj = null;

Examples of weka.core.Capabilities.supports()

        if (filter != null && currentCapabilitiesFilter != null &&
            (filter instanceof CapabilitiesHandler)) {
          currentFilterCapabilities = ((CapabilitiesHandler)filter).getCapabilities();
         
          if (!currentFilterCapabilities.supportsMaybe(currentCapabilitiesFilter) &&
              !currentFilterCapabilities.supports(currentCapabilitiesFilter)) {
            m_ApplyFilterBut.setEnabled(false);
          }
        }
      }
    });

Examples of weka.core.Capabilities.supports()

    if (currentFilter != null && currentCapabilitiesFilter != null &&
        (currentFilter instanceof CapabilitiesHandler)) {
      currentFilterCapabilities = ((CapabilitiesHandler)currentFilter).getCapabilities();
     
      if (!currentFilterCapabilities.supportsMaybe(currentCapabilitiesFilter) &&
          !currentFilterCapabilities.supports(currentCapabilitiesFilter)) {
        m_ApplyFilterBut.setEnabled(false);
      }
    }
  }
 
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.