Get values of all properties in specified object and returns them as a map.
an object to get properties from.
a map, containing the names of the object's properties and their values.
Gets value of object property specified by its name.
an object to read property from.
a name of the property to get.
the property value or null if property doesn't exist or introspection failed.
Gets names of all properties implemented in specified object.
an objec to introspect.
a list with property names.
Checks if object has a property with specified name..
an object to introspect.
a name of the property to check.
true if the object has the property and false if it doesn't.
Sets values of some (all) object properties.
If some properties do not exist or introspection fails they are just silently skipped and no errors thrown.
an object to write properties to.
a map, containing property names and their values.
Sets value of object property specified by its name.
If the property does not exist or introspection fails this method doesn't do anything and doesn't any throw errors.
an object to write property to.
a name of the property to set.
a new value for the property to set.
Generated using TypeDoc
Helper class to perform property introspection and dynamic reading and writing.
This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.
Because all languages have different casing and case sensitivity rules, this PropertyReflector treats all property names as case insensitive.
Example
let myObj = new MyObject(); let properties = PropertyReflector.getPropertyNames(); PropertyReflector.hasProperty(myObj, "myProperty"); let value = PropertyReflector.getProperty(myObj, "myProperty"); PropertyReflector.setProperty(myObj, "myProperty", 123);