Examples of Category


Examples of org.jboss.resteasy.plugins.providers.atom.Category

       marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
     
       AppCategories appCategories = new AppCategories();
       appCategories.setFixed(true);
       appCategories.setScheme("http://example.com/cats/big3");
       Category category1 = new Category();
       category1.setTerm("animal");
       appCategories.getCategory().add(category1);
       Category category2 = new Category();
       category2.setTerm("vegetable");
       appCategories.getCategory().add(category2);
       Category category3 = new Category();
       category3.setTerm("mineral");
       appCategories.getCategory().add(category3);
      
       StringWriter writer = new StringWriter();
       JAXBElement<AppCategories> element = new JAXBElement<AppCategories>(new QName("","app:categories","app"),AppCategories.class,appCategories);
      
View Full Code Here

Examples of org.jboss.seam.rest.example.tasks.entity.Category

        return taskCollectionSubresource;
    }

    @PUT
    public void putCategory(@PathParam("category") String categoryName) {
        Category category = new Category(categoryName);
        em.persist(category);
    }
View Full Code Here

Examples of org.jclouds.abiquo.domain.config.Category

      assertNotNull(datacenter);
      assertEquals(datacenter.getId(), env.datacenter.getId());
   }

   public void testGetCategory() {
      Category category = env.virtualMachine.getTemplate().getCategory();
      assertNotNull(category);
   }
View Full Code Here

Examples of org.jconfig.Category

                    if ( tmp.indexOf(" extends ") != -1 ) {
                        extend = name.substring(name.indexOf(" extends ")+9);
                        extend = extend.trim();
                        name = name.substring(0,name.indexOf(" extends "));                           
                    }
                    Category ec = new DefaultCategory(name);
                    if ( extend != null ) {
                        ec.setExtendsCategory(extend);
                    }
                    cfg.setCategory(ec);
                    currentCategoryName = name;
                }
            }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.project.info.ProjectConsoleAction.Category

    public ActionControlPanel(Action downloadAction, ProjectConsoleAction... consoleActions) {
        this.downloadAction = downloadAction;
        this.consoleActions = ArrayListMultimap.create();
        for (ProjectConsoleAction a : consoleActions) {
            try {
                Category cat = Category.fromId(a.getCategory());
                this.consoleActions.put(cat, a.getAction());
            } catch (RuntimeException ex) {
                ErrorLog.log(ActionControlPanel.class, "Invalid action category in the Project Console configuration: "
                                + a.getCategory(), ex);
            }
View Full Code Here

Examples of org.jitterbit.integration.uidelegate.entity.EntityIcons.Category

        @Override
        protected Icon getIcon(IntegrationEntityTreeNode node) {
            IntegrationEntity entity = node.getUserObject();
            ValidationStatus status = model.getStatus(entity, true);
            Category category = Category.fromValidationStatus(status);
            return EntityIcons.forType(entity.getEntityType()).getIcon(category, Size.SMALL);
        }
View Full Code Here

Examples of org.jruby.util.cli.Category

* of the built-in structure.
*/
public class Options {
    public static String dump() {
        StringBuilder sb = new StringBuilder("# JRuby configuration options with current values\n");
        Category category = null;
        for (Option option : _loadedOptions) {
            if (category != option.category) {
                category = option.category;
                sb.append('\n').append(category.desc()).append('\n');
            }
            sb
                    .append(option.name)
                    .append('=')
                    .append(option.load())
View Full Code Here

Examples of org.junit.experimental.categories.Category

        private Collection<Class<?>> findSuperclassCategories( Class<?> clazz )
        {
            if ( clazz != null && clazz.getSuperclass() != null )
            {
                Category cat = clazz.getSuperclass().getAnnotation( Category.class );
                if ( cat != null )
                {
                    return new HashSet<Class<?>>( Arrays.asList( cat.value() ) );
                }
                else
                {
                    return findSuperclassCategories( clazz.getSuperclass() );
                }
View Full Code Here

Examples of org.junitext.Category

  }

  @Override
  public void testStarted(Description description) {
    super.testStarted(description);
    Category c = CategoryResolver.getCategory(description);
    if (c != null) {
      forceInitialize(c);
      results.get(c).get("Success").add(description);
    }
  }
View Full Code Here

Examples of org.languagetool.rules.Category

      i++;
    }
  }

  public void testOverlapFilter() throws IOException {
    final Category category = new Category("test category");
    final List<Element> elements1 = Arrays.asList(new Element("one", true, false, false));
    final PatternRule rule1 = new PatternRule("id1", new English(), elements1, "desc1", "msg1", "shortMsg1");
    rule1.setSubId("1");
    rule1.setCategory(category);
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.