Examples of Property


Examples of org.olat.properties.Property

  public String getAnonymizedUserName(Identity identity) {
    synchronized (anonymizerMap) {
      String anonymizedName = (String) anonymizerMap.get(identity.getName());
      if (anonymizedName == null) {
        // try to fetch from course properties
        Property anonymizedProperty = pm.findProperty(identity, null, "Anonymizing", "AnonymizedUserName");
        if (anonymizedProperty == null) {
          // not found - create a new anonymized name
          anonymizedName = "RANDOM-" + random.nextInt(100000000);
          // add as course properties
          anonymizedProperty = pm.createPropertyInstance(identity, null, "Anonymizing", "AnonymizedUserName", null, null, anonymizedName,
              null);
          pm.saveProperty(anonymizedProperty);
        } else {
          // property found - use property value from there
          anonymizedName = anonymizedProperty.getStringValue();
        }
        anonymizerMap.put(identity.getName(), anonymizedName);
      }
      return anonymizedName;
    }
View Full Code Here

Examples of org.omg.CosNotification.Property

        if (filterableHeader_ == null)
        {
            filterableHeader_ = new Property[parameters_.length + 1];
            Any _operationAny = sORB.create_any();
            _operationAny.insert_string(operationName_);
            filterableHeader_[0] = new Property(OPERATION_NAME, _operationAny);

            for (int x = 0; x < parameters_.length; ++x)
            {
                filterableHeader_[1 + x] = parameters_[x];
            }
View Full Code Here

Examples of org.omg.CosTrading.Property

  }
    }

    public Property describe()
    {
  Property result = new Property();

  result.name = m_name;
  if (m_value instanceof AnyValue)
      result.value = ((AnyValue)m_value).getValue();
  else if (m_value instanceof DynPropValue)
View Full Code Here

Examples of org.omnaest.utils.propertyfile.content.element.Property

        //
        PropertyFileContent propertyFileContent = propertyFile.getPropertyFileContent();
        PropertyMap propertyMap = propertyFileContent.getPropertyMap();
       
        //
        Property property = propertyMap.get( propertyKey );
        if ( property != null )
        {
          //
          retval = new PropertyFileAndProperty();
          retval.setProperty( property );
View Full Code Here

Examples of org.openbravo.base.model.Property

    final String lowerFieldName = fieldName.toLowerCase();
    final String result;
    if ((result = valueCache.get(lowerFieldName)) != null) {
      return result;
    }
    final Property property = fieldNameToProperty.get(lowerFieldName);
    if (property == null) {
      throw new OBException("The fieldName " + fieldName
          + " can not be mapped to a property of the entity " + getObObject().getEntityName());
    }
    final Object objValue = getObObject().get(property.getName());
    final String strValue = convert(property, objValue);
    valueCache.put(lowerFieldName, strValue);
    return strValue;
  }
View Full Code Here

Examples of org.opencustomer.framework.db.util.engine.configuration.Property

    public Table(TableEngine engine) {
        this.engine = engine;
   
        columns = new Column[engine.getConfiguration().getProperties().size()];
        for(int i=0; i<columns.length; i++) {
            Property property = engine.getConfiguration().getProperties().get(i);
            columns[i] = new Column(i, property.getMessageKey(), property.isSortable());
            columns[i].setFormatter(property.getFormatter());
            columns[i].setSearch(property.getSearch());
           
            order.add(columns.length-1-i, true);
        }
    }
View Full Code Here

Examples of org.opengis.feature.Property

        return createDefaultLabel( feature, options );
      }
      else
      {
        String format = options.getLabelFormat();
        Property property = feature.getProperty( format );
       
        if (property == null)
        {
          return this.undefinedPropertyLabel;
        }
        else
        {
          Object propertyValue = property.getValue();
         
          if (propertyValue == null)
          {
            return this.undefinedValueLabel;
          }
View Full Code Here

Examples of org.openide.nodes.Node.Property

     * to make Java reflexion working.
     * @return the created property
     * @throws NoSuchMethodException if the getter or setter methods cannot be found
     */
    public static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException {
        Property property = new PropertySupport.Reflection(
                layout, valueType, getMethod, setMethod);

        property.setName(propertyName);
        property.setShortDescription(propertyDescription);

        return new LayoutProperty(property, propertyCategory);
    }
View Full Code Here

Examples of org.osgi.service.component.annotations.Property

    final Field[] fieldArray = type.getDeclaredFields();

    for (final Field field : fieldArray) {

      final Property anno = field.getAnnotation(Property.class);

      if (anno == null) {
        continue;
      }

      field.setAccessible(true);

      final String fieldName = field.getName();

      final int modifiers = field.getModifiers();

      if (!Modifier.isStatic(modifiers)) {
        throw new IllegalArgumentException(
            "property field must be static : " + fieldName);
      }

      if (!Modifier.isFinal(modifiers)) {
        throw new IllegalArgumentException(
            "property field must be final : " + fieldName);
      }

      if (!String.class.equals(field.getType())) {
        throw new IllegalArgumentException(
            "property field must be java.lang.String : "
                + fieldName + " / " + field.getType());
      }

      //

      final String name = Util.isValidText(anno.name()) ? anno.name()
          : fieldName;

      final String value;
      try {
        value = (String) field.get(null);
View Full Code Here

Examples of org.osoa.sca.annotations.Property

        Method method = null;
        Field field = JavaIntrospectionHelper.findClosestMatchingField(propertyName, type, fields);
        if (field == null) {
            // hack for TUSCANY-322
            for (Field current : fields) {
                Property annot = current.getAnnotation(Property.class);
                if (annot != null) {
                    if (propertyName.equals(annot.name())) {
                        field = current;
                        break;
                    }
                }
            }
            method = JavaIntrospectionHelper.findClosestMatchingMethod(propertyName, new Class[]{type}, methods);
            if (method == null) {
                // hack for TUSCANY-322
                for (Method current : methods) {
                    Property annot = current.getAnnotation(Property.class);
                    if (annot != null) {
                        if (propertyName.equals(annot.name())) {
                            method = current;
                            break;
                        }
                    }
                }
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.