You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Davide Rossi <d....@libero.it> on 2001/08/18 00:14:44 UTC

retrieving properties given a namespace

Which is the right way to extract from a node a collection of properies that
belongs to a specific namespace?

Thanks,
    Davide.



RE: retrieving properties given a namespace

Posted by Raj Kumar <ko...@intalio.com>.
hi,
  If objectNode is the ObjectNode object and token is the SlideToken
  then the following piece of code should fetch you the collection of
properties


		 Uri uri = namespace.getUri(token,objectNode.getUri());
	       NodeRevisionDescriptors revisionDescriptors =
			     uri.getStore().retrieveRevisionDescriptors(uri);
             // get the latest revision
		 NodeRevisionDescriptor revisionDescriptor =
			     uri.getStore().retrieveRevisionDescriptor(uri,revisionDescriptors );
		 Enumeration properties = revisionDescriptor.enumerateProperties() ;

The enumerate properties fetches all the properties of all namespaces.There
is no method currently to fetch the properties
belonging to one namespace.You would have to fetch each individual property
and check the namespace yourself
    rajkumar

-----Original Message-----
From: Davide Rossi [mailto:d.r@libero.it]
Sent: Friday, August 17, 2001 3:15 PM
To: slide-dev@jakarta.apache.org
Subject: retrieving properties given a namespace


Which is the right way to extract from a node a collection of properies that
belongs to a specific namespace?

Thanks,
    Davide.