AnsweredAssumed Answered

How to get the properties defined in custom content model?

Question asked by debi on Jun 17, 2008
Latest reply on Jun 20, 2008 by debi
I have registered my content model. But the problem I am facing is when I use the following piece of code I am unable to see the model which I have registered.

QName name = QName.createQName("demo.model","newModel");
System.out.println("Models "+registry.getDictionaryService().getAllModels());

What I am trying to do is to get the properties defined in my custom content model. I use the following code:

QName name = QName.createQName("demo.model","newModel");
Set<QName> set = (Set<QName>)registry.getDictionaryService().getProperties(name);

It throws an exception mentioning that the content model doesnot exist.
Am I missing something?
Plz help.
Thanks in advance,