Examples of Property


Examples of com.avaje.ebean.OrderBy.Property

        }
        for (int i = 0; i < properties.size(); i++) {
            if (i > 0){
                sb.append(", ");
            }
            Property p = properties.get(i);
            String expression = parseProperty(p);
            sb.append(expression);
        }
        return sb.toString();
    }
View Full Code Here

Examples of com.avaje.ebeaninternal.util.SortByClause.Property

   
    SortByClause sortBy = new SortByClause();
   
    String[] sections = rawSortBy.split(",");
    for (int i = 0; i < sections.length; i++) {
      Property p = parseSection(sections[i].trim());
      if (p == null){
        break;
      } else {
        sortBy.add(p);
      }
View Full Code Here

Examples of com.blazebit.web.monitor.quartz.model.Property

      Class<? extends GenericJob> jobClass) {
    List<Property> copyList = new ArrayList<Property>();

    if (jobTypes.contains(jobClass)) {
      for (JobParameter p : propertyMap.get(jobClass)) {
        copyList.add(new Property(p.getName(), "", p.isRequired(), p
            .getType(), p.getDescription()));
      }
    }

    return copyList;
View Full Code Here

Examples of com.buschmais.cdo.neo4j.api.annotation.Property

        return null;
    }

    @Override
    public PrimitivePropertyMetadata createPrimitvePropertyMetadata(PropertyMethod propertyMethod) {
        Property property = propertyMethod.getAnnotationOfProperty(Property.class);
        String name = property != null ? property.value() : propertyMethod.getName();
        return new PrimitivePropertyMetadata(name);
    }
View Full Code Here

Examples of com.buschmais.xo.neo4j.api.annotation.Property

        return null;
    }

    @Override
    public PropertyMetadata createPropertyMetadata(PropertyMethod propertyMethod) {
        Property property = propertyMethod.getAnnotationOfProperty(Property.class);
        String name = property != null ? property.value() : propertyMethod.getName();
        return new PropertyMetadata(name);
    }
View Full Code Here

Examples of com.byteslounge.cdi.annotation.Property

     */
    @Override
    public void inject(T instance, CreationalContext<T> ctx) {
        injectionTarget.inject(instance, ctx);
        for (Field field : annotatedType.getJavaClass().getDeclaredFields()) {
            Property annotation = field.getAnnotation(Property.class);
            if (annotation != null) {
                String key = annotation.value();
                String bundleName = annotation.resourceBundleBaseName().length() > 0 ? annotation.resourceBundleBaseName() : ExtensionConfiguration.INSTANCE
                        .getResourceBundleDefaultBaseName();
                if (bundleName == null) {
                    String errorMessage = "Property bundle name must have a configured default value (see github project instructions) or it must be configured in @"
                            + Property.class.getSimpleName() + " annotation.";
                    logger.error(errorMessage);
                    throw new PropertyResolverException(errorMessage);
                }
                field.setAccessible(true);
                try {
                    Object value = propertyResolverBean.resolveProperty(key, bundleName, ctx);
                    if (logger.isDebugEnabled()) {
                        logger.debug("Resolved property with key " + key + " to " + value);
                    }
                    if (annotation.parameters().length > 0) {
                        if (field.getType().equals(String.class)) {
                            value = MessageUtils.formatMessage((String) value, (Object[]) annotation.parameters());
                        } else {
                            logger.warn("Found property with defined parameters for formatting but property type is not of type "
                                    + String.class.getSimpleName() + ". Skipping message format... [" + field.getDeclaringClass().getSimpleName() + "."
                                    + field.getName() + "]");
                        }
View Full Code Here

Examples of com.carma.swagger.doclet.model.Property

                + typeRef.max);
          }
        }
      }

      Property property = new Property(typeRef.rawName, typeRef.paramCategory, propertyType, propertyTypeFormat.getFormat(), typeRef.description,
          itemsRef, itemsType, uniqueItems, allowableValues, typeRef.min, typeRef.max, typeRef.defaultValue);
      elements.put(typeName, property);
    }
    return elements;
  }
View Full Code Here

Examples of com.caucho.jaxb.property.Property

    for (XmlElement element : elements.value()) {
      if (XmlElement.DEFAULT.class.equals(element.type()))
        throw new JAXBException(L.l("@XmlElement annotations in @XmlElements must specify a type"));

      QName qname = qnameFromXmlElement(element);
      Property property = _context.createProperty(element.type());

      qnameToPropertyMap.put(qname, property);
      classToPropertyMap.put(element.type(), property);
      _qnameMap.put(element.type(), qname);

      if (! property.isXmlPrimitiveType())
        _context.createSkeleton(element.type());
    }

    _property = new MultiProperty(qnameToPropertyMap, classToPropertyMap);
View Full Code Here

Examples of com.codiform.moo.property.Property

  private Set<Property> getPropertiesForClass( Class<?> clazz ) {
    Map<String, Property> properties = new HashMap<String, Property>();
    Access access = clazz.getAnnotation( Access.class );
    AccessMode mode = access == null ? configuration.getDefaultAccessMode() : access.value();
    for ( Field item : clazz.getDeclaredFields() ) {
      Property property = PropertyFactory.createProperty( item, mode );
      if ( property != null ) {
        properties.put( property.getName(), property );
      }
    }
    for ( Method item : clazz.getDeclaredMethods() ) {
      Property property = PropertyFactory.createProperty( item, mode );
      if ( property != null ) {
        if ( properties.containsKey( property.getName() ) ) {
          Property current = properties.get( property.getName() );
          if ( current.isExplicit() && property.isExplicit() ) {
            throw new InvalidPropertyException(
                property.getName(),
                property.getDeclaringClass(),
                "Property %s (in %s) is explicitly defined with @Property as both field and method properties; Moo expects no more than one annotation per property name per class." );
          } else if ( !current.isExplicit() && property.isExplicit() ) {
            properties.put( property.getName(), property );
          }
        } else {
          properties.put( property.getName(), property );
        }
View Full Code Here

Examples of com.consol.citrus.admin.model.Property

                }
            }

            if (value != null) {
                if (field.isAnnotationPresent(XmlAttribute.class)) {
                    return new Property(field.getAnnotation(XmlAttribute.class).name(), fieldName, displayName, resolvePropertyExpression(value));
                } else {
                    return new Property(fieldName, fieldName, displayName, resolvePropertyExpression(value));
                }
            } else {
                return new Property(fieldName, fieldName, displayName, null);
            }
        } else {
            log.warn(String.format("Unknown field %s on endpoint type %s", fieldName, definition.getClass()));
            return null;
        }
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.