Short description of method getUniquePropertyValue

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Property property
@throws common_Exception
@throws core_kernel_classes_EmptyProperty
@return core_kernel_classes_Container
189025
public function getUniquePropertyValue( core_kernel_classes_Property $property)
    {
        $returnValue = null;

        $collection = $this->getPropertyValuesCollection($property);

        if($collection->isEmpty()){
        	throw new core_kernel_classes_EmptyProperty($this, $property);
        }
        if($collection->count() == 1 ) {
            $returnValue= $collection->get(0);
        }
        else {
            throw new core_kernel_classes_MultiplePropertyValuesException($this,$property);
        }
        return $returnValue;
    }
1012469
@Override
	public Object getProperty(String property) {
		if (property.equals(PROPERTY_XMLDECL_VERSION)) {
			return version;
		} else if (property.equals(PROPERTY_XMLDECL_STANDALONE)) {
			return standalone;
		} else if (property.equals(PROPERTY_LOCATION)) {
			return location != null ? location : reader.toString();
		} else {
			return null;
		}
	}
945622
public static Class getPropertyType(Class<?> beanClass, String property){
        Method getter = getGetterMethod(beanClass, property);
        if(getter==null)
            return null;
        else
            return getter.getReturnType();
    }
310982
public String getFirstPropertyValue(String property) {
        Iterator<String> it = getValues(property).iterator();
        return it.hasNext() ? it.next() : null;
    }
803753
public function getPropertyValuesCollection( core_kernel_classes_Property $property, $options=array())
    {
        $returnValue = new core_kernel_classes_ContainerCollection($this);
		foreach ($this->getPropertyValues($property, $options) as $value){
			$returnValue->add(common_Utils::toResource($value));
		}
        return $returnValue;
    }
1147247
public function getPropertyValuesByLg( core_kernel_classes_Resource $resource,  core_kernel_classes_Property $property, $lg)
    {
        $returnValue = null;

        
        
        $options = array (
        	'lg' => $lg
        );
        
        $returnValue = new core_kernel_classes_ContainerCollection($resource);
        foreach ($this->getPropertyValues($resource, $property, $options) as $value){
            $returnValue->add(common_Utils::toResource($value));
        }
        
        

        return $returnValue;
    }
1253798
public String getProperty(final String property) {
        if (System.getSecurityManager() == null)
            return System.getProperty(property);
        return AccessController.doPrivileged(new PrivilegedAction<String>() {
            @Override
            public String run() {
                return System.getProperty(property);
            }
        }, controlContext);
    }
1327241
public static String getRuntimeProperty(String property, String defaultValue)
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeProperty", new Object[] {property, defaultValue});
                                           
      String runtimeProp = RuntimeInfo.getPropertyWithMsg(property, defaultValue);
                                           
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getRuntimeProperty", runtimeProp);
      
      return runtimeProp;
   }
43522
public static Object getValue(final Object current, final String property) {
        return getDefinedValue(current, property).getValueResult().getOrElse(null);
    }
62166
public Object getProperty(String property) {
        /** @todo we should check if we have the property with the metaClass instead of try/catch  */
        try {
            return super.getProperty(property);
        }
        catch (MissingPropertyException e) {
            return getVariable(property);
        }
    }
1034312
public String getProperty(String key, String defaultValue) {
        String value = getProperty(key, String.class);
        return StringUtils.isEmpty(value) ? defaultValue : value;
    }
544257
public Object getProperty(String property) {
        try {
            return getProxyBuilder().doGetProperty(property);
        } catch (MissingPropertyException mpe) {
            if ((getContext() != null) && (getContext().containsKey(property))) {
                return getContext().get(property);
            } else {
                try {
                    return getMetaClass().getProperty(this, property);
                } catch(MissingPropertyException mpe2) {
                    if(mpe2.getProperty().equals(property) && propertyMissingDelegate != null) {
                        return propertyMissingDelegate.call(new Object[]{property});
                    }
                    throw mpe2;
                }
            }
        }
    }
203504
public static String getProperty(String base, String property) {
		return getProperty(base, property, true);
	}
1345004
public function getProperty($property)
    {
        $values = array();
        foreach ($this->columns as $key => $col) {
            if (isset($col[$property])) {
                $values[$key] = $col[$property];
            } else {
                $values[$key] = null;
            }
        }
    }
593485
private function getValue($object, $property)
    {
        if (is_array($object)) {
            if (!isset($object[$property]) && 0 === strpos($property, 'get')) {
                $property = lcfirst(substr($property, 3));

            }

            return isset($object[$property]) ? $object[$property] : null;
        }

        $getter = 0 === strpos($property, 'get') ? $property : 'get' . ucfirst($property);

        if (method_exists($object, $getter)) {
            return call_user_func([$object, $getter]);
        }

        $reflection = new \ReflectionProperty(get_class($object), $property);
        $reflection->setAccessible(true);

        return $reflection->getValue($object);
    }
622653
protected function getFieldValue(core_kernel_classes_Property $property, $range = null)
    {
        $propertyValues = [];

        /** @var core_kernel_classes_Resource $resource */
        $values = $this->resource->getPropertyValuesCollection($property);
        foreach ($values->getIterator() as $value) {

            if (is_null($value)) {
                continue;
            }

            if ($value instanceof core_kernel_classes_Resource) {
                if (!is_null($range)) {
                    $propertyValues[] = $value->getUri();
                } else {
                    $propertyValues[] = $value->getLabel();
                }
            } elseif ($value instanceof core_kernel_classes_Literal) {
                $propertyValues[] = (string)$value;
            }

        }

        if (!empty($propertyValues)) {
            if (count($propertyValues) == 1) {
                return $propertyValues[0];
            } else {
                return $propertyValues;
            }
        }

        return null;
    }
601980
public JsonNode getPropertyValue(final JsiiObjectRef objRef, final String property) {
        ObjectNode req = makeRequest("get", objRef);
        req.put("property", property);

        return this.runtime.requestResponse(req).get("value");
    }