[Cosmo-dev] Cosmo Jackrabbit nodes

Vinubalaji Gopal vinu at osafoundation.org
Wed Jul 5 09:38:32 PDT 2006


> > After going through the code I realized that most of the properties are
> > set using setProperty (which creates a property if the property does not
> > exist) since some of the properties of a ical may be optional. I would
> > like to add vcard properties in a similar fashion.
> 
> do you mean javax.jcr.Node.setProperty? which cosmo code are you referencing?

Yes. I thought that defining the property in the schema file was the
only way to define the property. But after going through the code
realized that a property can be set (or created) using the
javax.jcr.Node.setProperty method and that could be the preferred way
since some of the properties can be optional and so cannot be defined in
the schema file. 



More information about the cosmo-dev mailing list