AnsweredAssumed Answered

[Resolved] How to know if a nodeRef has the property

Question asked by dranakan on Oct 23, 2009
Latest reply on Oct 26, 2009 by dranakan
Hello,

I would like to test if a nodeRef has the property "myProperty". If I do this :

QName PROP_QNAME_MY_PROPERTY = QName.createQName("http://www.custom.ch/model/custom/1.0", "myProperty");
Object value = nodeService.getProperty(destination, PROP_QNAME_MY_PROPERTY);
if (value==null){
  …
}else{
  …
}
Will be null if the nodeRef has not the property in the model but also null is this value has not been setted.

How can I know if the nodeRef has this property  :?:
It's possible to set a property to a nodeRef which has not this property in the model… is it normal  :?:

Thanks

Outcomes