Examples of Facet


Examples of org.codehaus.enunciate.contract.Facet

    this.statusCodes = statusCodes;
    this.warnings = warnings;
    this.representationMetadata = outputPayload;
    this.declaredEntityParameters = declaredEntityParameters;
    this.facets.addAll(Facet.gatherFacets(delegate));
    this.facets.add(new Facet("org.codehaus.enunciate.contract.jaxrs.Resource", parent.getSimpleName(), parent.getJavaDoc().toString())); //resource methods have an implicit facet for their declaring resource.
    this.facets.addAll(parent.getFacets());
  }
View Full Code Here

Examples of org.elasticsearch.search.facet.Facet

      NamedList<Object> queryFacets = new SimpleOrderedMap<Object>();

      // loop though all the facets populating the NamedLists we just created
      Iterator<Facet> facetIter = response.facets().iterator();
      while (facetIter.hasNext()) {
        Facet facet = facetIter.next();
        if (facet.type().equals(TermsFacet.TYPE)) {
          // we have term facet, create NamedList to store terms
          TermsFacet termFacet = (TermsFacet) facet;
          NamedList<Object> termFacetObj = new SimpleOrderedMap<Object>();
          for (TermsFacet.Entry tfEntry : termFacet.entries()) {
            termFacetObj.add(tfEntry.term(), tfEntry.count());
          }

          termFacets.add(facet.getName(), termFacetObj);
        } else if (facet.type().equals(QueryFacet.TYPE)) {
          QueryFacet queryFacet = (QueryFacet) facet;
          queryFacets.add(queryFacet.getName(), queryFacet.count());
        }
      }
View Full Code Here

Examples of org.exolab.castor.xml.schema.Facet

                            schema.getBuiltInTypeName(SimpleTypesFactory.NOTATION_TYPE),
                                                                        "restriction");
           Iterator values = dtdAttribute.getValues();
           FacetFactory facetFactory = FacetFactory.getInstance();
           while (values.hasNext()) {
            Facet facet = facetFactory.createFacet(
                       Facet.ENUMERATION, (String) values.next());
            facet.setOwningType(type);
            type.addFacet(facet);
           }

       }
       else if (dtdAttribute.isEnumerationType())
       {
          type = schema.createSimpleType(null,
                            schema.getBuiltInTypeName(SimpleTypesFactory.NMTOKEN_TYPE),
                                                                        "restriction");
          Iterator values = dtdAttribute.getValues();
          FacetFactory facetFactory = FacetFactory.getInstance();
          while (values.hasNext()) {
            Facet facet = facetFactory.createFacet(
                     Facet.ENUMERATION, (String)values.next());
            facet.setOwningType(type);
            type.addFacet(facet);
          }
       }
       else
       {
View Full Code Here

Examples of org.geotools.xml.schema.Facet

        }
       
        public boolean canEncode( Element element, Object value, Map hints ) {
            if (element.getType() != null && getName().equals(element.getType().getName())) {
                for (int i = 0; i < ogcSimpleTypes.CapabilitiesSectionType.getInstance().getFacets().length; i++) {
                    Facet facet = ogcSimpleTypes.CapabilitiesSectionType.getInstance().getFacets()[i];
                    if (facet.getValue().equals(value)) {
                        return true;
                    }
                }
               
                if (value == null || value == "") { //$NON-NLS-1$
View Full Code Here

Examples of org.hibernate.search.query.facet.Facet

  private List<Facet> createRangeFacetList(Collection<Entry<String, Integer>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

Examples of org.jboss.forge.project.Facet

      {
         Iterator<? extends Facet> iterator = instances.iterator();
         List<Facet> result = new ArrayList<Facet>();
         while (iterator.hasNext())
         {
            Facet element = iterator.next();
            result.add(element);
         }
         facets = result;
      }
      return facets;
View Full Code Here

Examples of org.jboss.forge.project.Facet

      return result;
   }

   public Facet getFacetByName(final String facetName) throws FacetNotFoundException
   {
      Facet result = null;
      for (Facet facet : getFacets())
      {
         String name = ConstraintInspector.getName(facet.getClass());
         if (name.equals(facetName))
         {
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Facet

            String id = StaticFacesUtils.unwrapExpression(setPropertyActionListener.getValue())
                     + StringUtils.SEPARATOR_DOT_CHAR + attributes.get(NAME) + StringUtils.SEPARATOR_DOT_CHAR + "Add";

            addLink.putAttribute("id", StringUtils.camelCase(id, StringUtils.SEPARATOR_DOT_CHAR));

            Facet footerFacet = new Facet();
            footerFacet.putAttribute("name", "footer");
            footerFacet.getChildren().add(addLink);
            column.getChildren().add(footerFacet);
         }
      }
   }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Facet

                        .getWidgetProcessor(RequiredAttributeProcessor.class));
               footerMetawidget.setValue(StaticFacesUtils.wrapExpression(controllerName + "Bean.add." + columnName));
               footerMetawidget.setPath(componentType + StringUtils.SEPARATOR_FORWARD_SLASH_CHAR + columnName);
               footerMetawidget.setLayout(new SimpleLayout());

               Facet footerFacet = new Facet();
               footerFacet.putAttribute("name", "footer");
               footerFacet.getChildren().add(footerMetawidget);

               ReadableIdProcessor readableIdProcessor = metawidget.getWidgetProcessor(ReadableIdProcessor.class);

               if (readableIdProcessor != null)
               {
                  readableIdProcessor.processWidget(footerMetawidget, elementName, columnAttributes, metawidget);
               }

               HtmlMessage message = new HtmlMessage();
               message.putAttribute("for", footerMetawidget.getAttribute("id"));
               message.putAttribute("styleClass", "error");
               footerFacet.getChildren().add(message);
               column.getChildren().add(footerFacet);
            }
         }
      }
   }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Facet

            String id = StaticFacesUtils.unwrapExpression(setPropertyActionListener.getValue())
                     + StringUtils.SEPARATOR_DOT_CHAR + attributes.get(NAME) + StringUtils.SEPARATOR_DOT_CHAR + "Add";

            addLink.putAttribute("id", StringUtils.camelCase(id, StringUtils.SEPARATOR_DOT_CHAR));

            Facet footerFacet = new Facet();
            footerFacet.putAttribute("name", "footer");
            footerFacet.getChildren().add(addLink);
            column.getChildren().add(footerFacet);
         }
      }
   }
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.