On 16/10/16 16:59, tina sani wrote:
Hi
What is the difference between addLiteral() and setpropertyvalue() when we
want to assign values to an individual.?
For example,
//myEmployee is an instance.
myEmplyee.addliteral(property, value)
myEmployee.setpropertyvalue(property, value)
addLiteral adds a value, so if there is already a value there you will
now have multiple values.
setPropertyValue removes all existing values before adding the new value
so you will only have the new value at the end.
Dave