Examples of Property


Examples of org.exoplatform.container.xml.Property

         }
      });
      Iterator properties = param.getPropertyIterator();
      while (properties.hasNext())
      {
         Property p = (Property)properties.next();

         //
         String name = p.getName();
         String value = p.getValue();

         // Julien: Don't remove that unless you know what you are doing
         if (name.equals("hibernate.dialect") && !value.equalsIgnoreCase(AUTO_DIALECT))
         {
            Package pkg = Dialect.class.getPackage();
View Full Code Here

Examples of org.fcrepo.server.storage.types.Property

        // API-A interface requires user-supplied parameters to be of type
        // Property[] so create Property[] from hashtable of user parameters.
        int userParmCounter = 0;
        userParms = new Property[h_userParms.size()];
        for (Enumeration<String> e = h_userParms.keys(); e.hasMoreElements();) {
            Property userParm = new Property();
            userParm.name = e.nextElement();
            userParm.value = h_userParms.get(userParm.name);
            userParms[userParmCounter] = userParm;
            userParmCounter++;
        }
View Full Code Here

Examples of org.fcrepo.server.types.gen.Property

    @Test
    public void testGetDisseminationUserInput() throws Exception {
        MIMETypedStream diss = null;
        Parameters params = new Parameters();
        Property prop = new Property();
        prop.setName("convertTo");
        prop.setValue("gif");
        params.getParameter().add(prop);
        diss =
                apia.getDissemination("demo:29",
                                      "demo:27",
                                      "convertImage",
View Full Code Here

Examples of org.foray.fotree.Property

            throws PropertyException {
        final String basePropertyName = Property.getBasePropertyName(
                propertyFullName);
        final XmlProperty enumeration = enumeratePropertyName(
                basePropertyName);
        final Property property = checkCompoundProperty(fobj,
                enumeration, propertyFullName, attributeValue);
        if (property != null) {
            return property;
        }
        if (enumeration == null) {
View Full Code Here

Examples of org.freerealm.property.Property

            xml.append("</workers>\n");
        }
        xml.append("<Properties>\n");
        Iterator<Property> propertyIterator = cityImprovement.getPropertiesIterator();
        while (propertyIterator.hasNext()) {
            Property property = propertyIterator.next();
            String xMLWrapperName = TagManager.getXMLConverterName(property.getName());
            Class c;
            try {
                c = Class.forName(xMLWrapperName);
                XMLConverter<Property> xMLConverter = (XMLConverter<Property>) c.newInstance();
                xml.append(xMLConverter.toXML(property) + "\n");
View Full Code Here

Examples of org.ftlines.metagen.eclipse.model.Property

        }

        if (property) {
          ITypeBinding fieldType = field.getType();
          String fieldTypeName = new TypeResolver(fieldType).resolve();
          Property prop = new Property(getVisibility(field.getModifiers()), field.getDeclaringClass().getQualifiedName(),
              fieldTypeName, field.getName());
          prop.setDeprecated(deprecated);
          prop.setFieldName(field.getName());
          bean.addProperty(prop);
        }
      }

      // discover getters that can be properties

      for (IMethodBinding method : type.getDeclaredMethods()) {

        String name = method.getName();

        // we are only interested in getters

        if (method.getParameterTypes().length > 0) {
          continue;
        }

        boolean set = name.length() > 3 && name.startsWith("get") && Character.isUpperCase(name.charAt(3));
        boolean is = name.length() > 2 && name.startsWith("is") && Character.isUpperCase(name.charAt(2));

        if (!set && !is) {
          continue;
        }

        name = set ? Character.toLowerCase(name.charAt(3)) + name.substring(4) : Character.toLowerCase(name.charAt(2))
            + name.substring(3);

        // scan annotations of the method

        boolean property = false;
        boolean deprecated = false;
        for (IAnnotationBinding annotation : method.getAnnotations()) {
          String annot = annotation.getAnnotationType().getQualifiedName();
          if (Constants.PROPERTY.equals(annot)) {
            property = true;
          } else if (Constants.DEPRECATED.equals(annot)) {
            deprecated = true;
          }
        }

        if (autobean || property) {

          // add a property for this method

          Property prop = bean.getProperty(name);
          ITypeBinding returnType = method.getReturnType();
          String typeName = new TypeResolver(returnType).resolve();
          if (prop == null) {
            prop = new Property(getVisibility(method.getModifiers()), method.getDeclaringClass().getQualifiedName(), typeName,
                name);
            bean.addProperty(prop);
          } else {
            prop.relaxVisibility(getVisibility(method.getModifiers()));
            // prefer type of the getter
            prop.setType(typeName);
          }
          prop.setDeprecated(deprecated);
          prop.setGetterName(method.getName());

        }
      }

      // discover property setters

      for (IMethodBinding method : type.getDeclaredMethods()) {

        String name = method.getName();

        // we are only interested in setters

        if (!(name.length() > 3 && name.startsWith("set") && Character.isUpperCase(name.charAt(3)))) {
          continue;
        }

        if (method.getParameterTypes().length != 1) {
          continue;
        }

        name = Character.toLowerCase(name.charAt(3)) + name.substring(4);
        Property property = bean.getProperty(name);
        if (property != null) {

          String typeName = new TypeResolver(method.getParameterTypes()[0]).resolve();
          if (typeName.equals(property.getType())) {
            property.setSetterName(method.getName());
            property.relaxVisibility(getVisibility(method.getModifiers()));
          }
        }
      }

      return true;
View Full Code Here

Examples of org.geoserver.wfs.request.Property

            FeatureTypeInfo meta = typeInfos.values().iterator().next();
            FeatureType featureType = meta.getFeatureType();

            List<Property> props = update.getUpdateProperties();
            for (Iterator<Property> prop = props.iterator(); prop.hasNext();) {
                Property property = prop.next();

                //check that valus that are non-nillable exist
                if (property.getValue() == null) {
                    String propertyName = property.getName().getLocalPart();
                    AttributeDescriptor attributeType = null;
                    PropertyDescriptor pd = featureType.getDescriptor(propertyName);
                    if(pd instanceof AttributeDescriptor) {
                        attributeType = (AttributeDescriptor) pd;
                    }
                    if ((attributeType != null) && (attributeType.getMinOccurs() > 0)) {
                        String msg = "Property '" + attributeType.getLocalName()
                            + "' is mandatory but no value specified.";
                        throw new WFSException(element, msg, "MissingParameterValue");
                    }
                }
               
                //check that property names are actually valid
                QName name = property.getName();
                PropertyName propertyName = null;
               
                if ( name.getPrefix() != null && !"".equals( name.getPrefix() )) {
                    propertyName = ff.property( name.getPrefix() + ":" + name.getLocalPart() );
                }
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.Property

            // we treat this as an error and instead of throwing exception return false;
            return null;
        }

        final Map<String,Property>  props = adminFileAuthRealm.childrenMap(Property.class);
        final Property keyfileProp = props.get("file");
        if ( keyfileProp == null ) {
            throw new IllegalStateException( "Cannot find property 'file'" );
        }
        //System.out.println( "############### keyFileProp: " + keyfileProp.getName() + " = " + keyfileProp.getValue() );
        final String keyFile = keyfileProp.resolveAttribute( "Value" );
        //System.out.println( "############### keyFile: " + keyfileProp.getValue() + " ===> " + keyFile);
        if (keyFile == null) {
            throw new IllegalStateException( "Cannot find key file" );
        }
       
View Full Code Here

Examples of org.glassfish.loadbalancer.admin.cli.beans.Property

      PropertyReader[] pRdrs = lbRdr.getProperties();

      if ((pRdrs != null) && (pRdrs.length > 0)) {
        Property[] props = new Property[pRdrs.length];
        for (int i = 0; i < pRdrs.length; i++) {
          props[i] = new Property();
          pRdrs[i].accept(new PropertyVisitor(props[i]));
        }
        _lb.setProperty2(props);
      }
View Full Code Here

Examples of org.goda.time.MutableDateTime.Property

                }
                Object[] array = (Object[]) innerMap.get(iFieldType);
                if (array == null) {
                    validValues = new HashSet<String>(32);
                    MutableDateTime dt = new MutableDateTime(0L, DateTimeZone.UTC);
                    Property property = dt.property(iFieldType);
                    int min = property.getMinimumValueOverall();
                    int max = property.getMaximumValueOverall();
                    if (max - min > 32) {  // protect against invalid fields
                        return ~position;
                    }
                    maxLength = property.getMaximumTextLength(locale);
                    for (int i = min; i <= max; i++) {
                        property.set(i);
                        validValues.add(property.getAsShortText(locale));
                        validValues.add(property.getAsShortText(locale).toLowerCase());
                        validValues.add(property.getAsShortText(locale).toUpperCase());
                        validValues.add(property.getAsText(locale));
                        validValues.add(property.getAsText(locale).toLowerCase());
                        validValues.add(property.getAsText(locale).toUpperCase());
                    }
                    if ("en".equals(locale.getLanguage()) && iFieldType == DateTimeFieldType.era()) {
                        // hack to support for parsing "BCE" and "CE" if the language is English
                        validValues.add("BCE");
                        validValues.add("bce");
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.