Examples of supports()


Examples of net.sf.jportlet.portlet.descriptor.PortletDescriptor.supports()

        assertTrue( "portlet.supports(html,configure)", portlet.supports( Portlet.Mode.CONFIGURE, Portlet.Markup.HTML ) );

        assertTrue( "portlet.supports(html,view)", portlet.supports( Portlet.Mode.VIEW, Portlet.Markup.WML ) );
        assertFalse( "portlet.supports(wml,edit)", portlet.supports( Portlet.Mode.EDIT, Portlet.Markup.WML ) );
        assertFalse( "portlet.supports(wml,help)", portlet.supports( Portlet.Mode.HELP, Portlet.Markup.WML ) );
        assertFalse( "portlet.supports(wml,configure)", portlet.supports( Portlet.Mode.CONFIGURE, Portlet.Markup.WML ) );

        /* Language */
        LanguageDescriptor lang = portlet.getLanguageDescriptor( Locale.ENGLISH );
        assertNotNull( "lang[en]", lang );
        assertEquals( "lang[en].title", "Portlet #1", lang.getTitle(  ) );

Examples of org.apache.axis2.jaxws.feature.ClientConfigurator.supports()

        Set<String> ids = ClientConfiguratorRegistry.getIds();
       
        for (String id : ids) {
            ClientConfigurator configurator = ClientConfiguratorRegistry.getConfigurator(id);
           
            if (configurator.supports(this))
                framework.addConfigurator(id, configurator);
        }
    }

    public List<Handler> getHandlerChain() {

Examples of org.apache.axis2.jaxws.feature.ServerConfigurator.supports()

        Set<String> ids = ServerConfiguratorRegistry.getIds();
       
        for (String id : ids) {
            ServerConfigurator configurator = ServerConfiguratorRegistry.getConfigurator(id);
           
            if (configurator.supports(bindingType))
                framework.addConfigurator(id, configurator);
        }
     
        // The feature instances are stored on the composite from either the
        // Java class or from something else building the list and setting it there.

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigStatsOutputSizeReader.supports()

                PigStatsOutputSizeReader.OUTPUT_SIZE_READER_KEY,
                FileBasedOutputSizeReader.class.getCanonicalName());

        for (String className : readerNames.split(",")) {
            reader = (PigStatsOutputSizeReader) PigContext.instantiateFuncFromSpec(className);
            if (reader.supports(sto, conf)) {
                LOG.info("using output size reader: " + className);
                try {
                    return reader.getOutputSize(sto, conf);
                } catch (FileNotFoundException e) {
                    LOG.warn("unable to find the output file", e);

Examples of org.apache.shindig.social.core.util.JsonObjectToMapMorpher.supports()

   * {@link org.apache.shindig.social.core.util.JsonObjectToMapMorpher#supports(java.lang.Class)}.
   */
  @Test
  public void testSupports() {
    Morpher m = new JsonObjectToMapMorpher();
    assertTrue(m.supports(JSONObject.class));
    assertFalse(m.supports(JSON.class));
    assertFalse(m.supports(List.class));
  }

  /**
 

Examples of org.eclipse.jst.jsf.context.symbol.source.AbstractContextSymbolFactory.supports()

                final IStructuredDocumentContext context =
                    IStructuredDocumentContextFactory.INSTANCE.
                        getContext(model.getStructuredDocument(),
                           attribute);

                if (factory.supports(context))
                {
                    final List problems = new ArrayList();
                    final ISymbol symbol =
                        factory.create(symbolName,
                                      ISymbolConstants.SYMBOL_SCOPE_REQUEST, //TODO:

Examples of org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration.supports()

        return true;
      CMElementDeclaration decl = getElementDeclaration((Element) node);
      if (decl != null) {
        if (decl.getContentType() == CMElementDeclaration.CDATA)
          return false;
        if (decl.supports(HTMLCMProperties.SHOULD_KEEP_SPACE)) {
          boolean shouldKeepSpace = ((Boolean) decl.getProperty(HTMLCMProperties.SHOULD_KEEP_SPACE)).booleanValue();
          if (shouldKeepSpace)
            return false;
        }
      }

Examples of org.geoserver.security.GeoServerAuthenticationProvider.supports()

        getSecurityManager().saveAuthenticationProvider(config);
        GeoServerAuthenticationProvider provider = getSecurityManager().loadAuthenticationProvider("jdbc1");
       
        UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("sa","");
        token.setDetails("details");
        assertTrue(provider.supports(token.getClass()));
        assertTrue(!provider.supports(RememberMeAuthenticationToken.class));
       
        Authentication auth = provider.authenticate(token);
        assertNotNull(auth);
        assertEquals("sa", auth.getPrincipal());

Examples of org.geotools.filter.FilterCapabilities.supports()

  public void testNoSupportedFunctionExpression() throws Exception {
    Map hints=new HashMap();
    InputStream in = TestData.openStream("xml/capabilities/WFSGetCapsNoFunctionExpressions.xml");
        WFSCapabilities obj=(WFSCapabilities) DocumentFactory.getInstance(in, hints, Level.WARNING);
        FilterCapabilities filterCapabilities = obj.getFilterCapabilities();
    assertFalse(filterCapabilities.supports(FilterCapabilities.FUNCTIONS));
   
    assertTrue(filterCapabilities.supports(FilterCapabilities.SPATIAL_DISJOINT));
    assertTrue(filterCapabilities.supports(FilterCapabilities.SPATIAL_EQUALS));
    assertTrue(filterCapabilities.supports(FilterCapabilities.SPATIAL_DWITHIN));
    assertTrue(filterCapabilities.supports(FilterCapabilities.SPATIAL_BEYOND));

Examples of org.grails.validation.GrailsDomainClassValidator.supports()

        Class<?> persistentClass = getBean(ctx, "TestPersistentClass");
        assertEquals(dc,persistentClass);

        GrailsDomainClassValidator validator = getBean(ctx, "TestValidator");
        assertTrue(validator.supports(dc));

        GroovyObject controller = getBean(ctx, "TestController");
        assertEquals(c,controller.getClass());
    }
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.