Get the URI for the given property in the given context.

@param propertyIdValue
the property id for which to create a URI
@param propertyContext
the context for which the URI will be needed
@return the URI
330186
public static String getPropertyUri(PropertyIdValue propertyIdValue,
			PropertyContext propertyContext) {
		switch (propertyContext) {
		case DIRECT:
			return PREFIX_PROPERTY_DIRECT + propertyIdValue.getId();
		case STATEMENT:
			return PREFIX_PROPERTY + propertyIdValue.getId();
		case VALUE_SIMPLE:
			return PREFIX_PROPERTY_STATEMENT + propertyIdValue.getId();
		case VALUE:
			return PREFIX_PROPERTY_STATEMENT_VALUE + propertyIdValue.getId();
		case QUALIFIER:
			return PREFIX_PROPERTY_QUALIFIER_VALUE + propertyIdValue.getId();
		case QUALIFIER_SIMPLE:
			return PREFIX_PROPERTY_QUALIFIER + propertyIdValue.getId();
		case REFERENCE:
			return PREFIX_PROPERTY_REFERENCE_VALUE + propertyIdValue.getId();
		case REFERENCE_SIMPLE:
			return PREFIX_PROPERTY_REFERENCE + propertyIdValue.getId();
		case NO_VALUE:
			return PREFIX_WIKIDATA_NO_VALUE + propertyIdValue.getId();
		case NO_QUALIFIER_VALUE:
			return PREFIX_WIKIDATA_NO_QUALIFIER_VALUE + propertyIdValue.getId();
		default:
			return null;
		}
	}
1090688
public Object convertFormValueToModelValue(Object propertyValue) {
    if (propertyValue==null || "".equals(propertyValue)) {
      return null;
    }
    return Boolean.valueOf(propertyValue.toString());
  }
518233
public static <Q> Object getPropertyValue(Q bean, String propertyName) {

        return ObjectUtils.getPropertyValue(bean, propertyName, Object.class);
    }
84271
public Object convertFormValueToModelValue(Object propertyValue) {
    if (propertyValue==null || "".equals(propertyValue)) {
      return null;
    }
    return new Long(propertyValue.toString());
  }
270257
public URI documentUri(String documentId, String key, Object value)  {
        return this.documentId(documentId).query(key, value).build();
    }
367155
@SuppressWarnings({ "rawtypes", "unchecked" })
    protected Object calculatePropertyValue(Object propertyValue) {
        if (propertyValue instanceof CharSequence) {
            return propertyValue.toString();
        }
        if (propertyValue instanceof QueryableCriteria) {
            propertyValue = convertToHibernateCriteria((QueryableCriteria<?>) propertyValue);
        }
        else if (propertyValue instanceof Closure) {
            propertyValue = convertToHibernateCriteria(
                    new grails.gorm.DetachedCriteria(targetClass).build((Closure<?>) propertyValue));
        }
        return propertyValue;
    }
1262352
protected ArrayList<Snak> getSnakList(PropertyIdValue propertyIdValue) {
		ArrayList<Snak> result = this.snaks.get(propertyIdValue);
		if (result == null) {
			result = new ArrayList<Snak>();
			this.snaks.put(propertyIdValue, result);
		}
		return result;
	}
21013
public static String getContextProperty(Root root, String propertyName) {
        String result = "";
        List<Context> contexts = root.getContexts();
        for (Context context : contexts) {
            String key = context.getKey();
            if (key != null && key.equals(propertyName)) {
                result = (String) context.getValue();
                break;
            }
        }
        return result;
    }
1287316
public PropertyConstraint gt(String propertyName, Comparable propertyValue) {
        return new ParameterizedPropertyConstraint(propertyName, gt(propertyValue));
    }
932612
private PropertyRecord getPropertyRecord(PropertyIdValue property) {
		if (!this.propertyRecords.containsKey(property)) {
			PropertyRecord propertyRecord = new PropertyRecord();
			this.propertyRecords.put(property, propertyRecord);
			return propertyRecord;
		} else {
			return this.propertyRecords.get(property);
		}
	}
788023
public static String setProperty(ArgumentUnit argumentUnit, String propertyName,
            String propertyValue)
    {
        Properties properties = ArgumentUnitUtils.getProperties(argumentUnit);
        String result = (String) properties.setProperty(propertyName, propertyValue);
        ArgumentUnitUtils.setProperties(argumentUnit, properties);

        return result;
    }
889804
@Nullable
  public static String searchPropertiesFile(String propertiesFile,
      String[] confPathList) {
    if (propertiesFile == null || confPathList == null) {
      return null;
    }
    for (String path : confPathList) {
      String file = PathUtils.concatPath(path, propertiesFile);
      Properties properties = loadPropertiesFromFile(file);
      if (properties != null) {
        // If a site conf is successfully loaded, stop trying different paths.
        return file;
      }
    }
    return null;
  }
1106501
public String getProperty(String key, String defaultValue) {
        return mProperties.getProperty(key, defaultValue);
    }
887913
public org.grails.datastore.mapping.query.api.Criteria eq(String propertyName, Object propertyValue) {
        return eq(propertyName, propertyValue, Collections.emptyMap());
    }
701225
protected String getResourceTypeFromProperties(Map<String, PropertyData<?>> properties, String defaultValue) {

        PropertyData<?> typeProp = properties.get(CmsCmisTypeManager.PROPERTY_RESOURCE_TYPE);
        String resTypeName = defaultValue;
        if (typeProp != null) {
            resTypeName = (String)typeProp.getFirstValue();
        }
        return resTypeName;
    }
890405
public static String getPropertyValue( AbstractBlockHolder holder, String propertyName ) {
		BlockProperty p = holder.findPropertyBlockByName( propertyName );
		return p == null ? null : p.getValue();
	}
85591
public static CmsPathValue getPathValue(CmsClientProperty property, Mode mode) {

        if (property != null) {
            return property.getPathValue(mode);
        }
        switch (mode) {
            case resource:
                return new CmsPathValue("", PATH_RESOURCE_VALUE);
            case structure:
                return new CmsPathValue("", PATH_STRUCTURE_VALUE);
            case effective:
                return new CmsPathValue("", PATH_STRUCTURE_VALUE);
            default:
                throw new IllegalArgumentException();
        }
    }