Examples of Category


Examples of org.apache.howl.data.schema.HowlFieldSchema.Category

            i++;
        }
    }
    private void pretty_print(PrintStream pout, HowlFieldSchema hfsch, String prefix) throws HowlException {

        Category tcat = hfsch.getCategory();
        if (Category.STRUCT == tcat){
            pretty_print(pout,hfsch.getStructSubSchema(),prefix);
        }else if (Category.ARRAY == tcat){
            pretty_print(pout,hfsch.getArrayElementSchema(),prefix);
        }else if (Category.MAP == tcat){
View Full Code Here

Examples of org.apache.jetspeed.om.registry.Category

                PortletEntry feeder = (PortletEntry) portlets.elementAt(3);
                assertNotNull(feeder);
                assertTrue(feeder.getName().equals("Feeder"));
                assertTrue(feeder.getType().equals("ref"));
                Iterator fi = feeder.listCategories();
                Category cat = (Category) fi.next();
                assertTrue(cat.getName().equals("news.world.politics"));
                assertTrue(cat.getGroup().equals("news"));
                assertTrue(feeder.hasCategory("news.world.politics", "news"));
                feeder.addCategory("news.us.economy");
                assertTrue(feeder.hasCategory("news.us.economy"));
                feeder.removeCategory("news.us.economy");
                assertTrue(!feeder.hasCategory("news.us.economy"));
View Full Code Here

Examples of org.apache.log.Category

        throws Exception
    {
        String targetName = "velocity";
        String priority = "DEBUG";
               
        Category category = LogKit.createCategory(
            targetName, LogKit.getPriorityForName( priority ) );
       
        /*
         * Just create a FileOutputLogTarget, this is taken
         * from the SAR deployer in Avalon.
View Full Code Here

Examples of org.apache.log4j.Category

     
      // convert the JMS message in the Oracle type TLogQueue
      adtmsg = (AdtMessage) JmsMsg;
        datalog =(TLogQueue)(adtmsg.getAdtPayload());
         
          Category logger = Logger.getLogger(datalog.getLuser()+ "." +datalog.getLsection());
         
          // convert the PL/SQL log level in LOG4J level
          Level level = (DynamicLevel)htLevels.get(new Integer (datalog.getLlevel().intValue()));
 
          if (level != null) {
             priority = level;
          } else {
            priority = Level.toLevel("UNDEFINED",  Level.ERROR );
          }   
         
          // create the LOG4J event
          NDC.push("DatabaseLoginDate:"+datalog.getLdate()) ;
          event = new LoggingEvent(fqnOfCategoryClass,
                                   logger,
                                   priority,
                                   datalog.getLtext(),
                                   myThrowable);
 
 
          logger.callAppenders(event);
          NDC.remove();
          Thread.yield();
        }
    catch (JMSException JMSex) {
      logger.fatal("JMS error during receiving message - " +
                    " JMSException" + JMSex);
    }
    catch (SQLException SQLex) {
      logger.fatal("SQL error during receiving message - " +
                    " SQLException" + SQLex);
    }
    catch (Exception ex) {
      logger.fatal("Error during receiving message - " +
                    " Exception" + ex);
    }

  }
View Full Code Here

Examples of org.apache.rave.model.Category

    @Autowired
    private JpaCategoryConverter categoryConverter;

    @Test
    public void noConversion() {
        Category category = new JpaCategory();
        assertThat(categoryConverter.convert(category), is(sameInstance(category)));
    }
View Full Code Here

Examples of org.apache.rave.portal.model.Category

        controller.setPreferenceService(preferenceService);
        categoryService = createMock(CategoryService.class);
        controller.setCategoryService(categoryService);

        categories = new ArrayList<Category>();
        categories.add(new Category());
        categories.add(new Category());

        webDataBinder = createMock(WebDataBinder.class);
        categoryEditor = new CategoryEditor(categoryService);
        controller.setCategoryEditor(categoryEditor);
    }
View Full Code Here

Examples of org.apache.rave.rest.model.Category

    @Override
    public Response getCategories() {
        CategoryList categoryList = new CategoryList();
        for (org.apache.rave.model.Category category : categoryService.getAll()) {
            categoryList.getCategories().add(new Category((category)));
        }

        return Response.ok(categoryList).build();
    }
View Full Code Here

Examples of org.apache.syncope.common.types.AuditElements.Category

        String[] splitted = loggerName.split("\\.");
        if (splitted == null || splitted.length < 5) {
            throw new ParseException("Unparsable logger name", 0);
        }

        Category category = Category.valueOf(splitted[2]);
        Enum<?> subcategory = Enum.valueOf(category.getSubCategory(), splitted[3]);
        Result result = Result.valueOf(splitted[4]);

        return new AuditLoggerName(category, subcategory, result);
    }
View Full Code Here

Examples of org.apache.syncope.types.AuditElements.Category

        String[] splitted = loggerName.split("\\.");
        if (splitted == null || splitted.length < 5) {
            throw new ParseException("Unparsable logger name", 0);
        }

        Category category = Category.valueOf(splitted[2]);
        Enum<?> subcategory = Enum.valueOf(category.getSubCategory(), splitted[3]);
        Result result = Result.valueOf(splitted[4]);

        return new AuditLoggerName(category, subcategory, result);
    }
View Full Code Here

Examples of org.apache.uima.alchemy.ts.categorization.Category

public class CategorizationProcessor implements AlchemyOutputProcessor {

  public void process(JCas cas, Results results) throws Exception {
    try {
      FeatureStructure fs = new Category(cas);
      Type type = fs.getType();
      fs.setFeatureValueFromString(type.getFeatureByBaseName("score"),
              ((CategorizationResults) results).getScore());
      fs.setFeatureValueFromString(type.getFeatureByBaseName("text"),
              ((CategorizationResults) results).getCategory());
      cas.addFsToIndexes(fs);
    } catch (Exception e) {
      e.printStackTrace();
      throw new MappingException(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.