OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [cgmo-webcgm] getAppStructuresByName returns null if nothing is found.


Hi,

  I think we should review all the methods and attributes that return
  a WebCGMNodeList and check what makes more sense: null or empty
  list.

  Can we add this as an issue.

-- 
 Benoit   mailto:benoit@itedo.com
  

Wednesday, May 4, 2005, 4:05:56 PM, Stuart wrote:

GSA> Hello,

GSA> In the spec it says:
GSA> getAppStructuresByName
GSA> Returns the list of Application Structures whose names are given by
GSA> apsName in the order in which they are encountered in a preorder
GSA> traversal of the WebCGMPicture tree. If no such Application
GSA> Structures exists, returns null.
GSA> Only WebCGM Application Structures may be retrieved using
GSA> getAppStructuresByName. 

GSA> I was having problems with one of my test cases and Benoit pointed out
GSA> that my problem was using the wrong name in my getAppStructuresByName()
GSA> call and was getting a null value.  Should it return null if the
GSA> application strucutre does not exist.  Or would it be better for
GSA> an empty NodeList to be returned?

GSA> I think that an empty list would make it easier on the script writers.

GSA> Stuart.

GSA> --
GSA> Stuart Galt
GSA> SGML Resource Group
GSA> stuart.a.galt@boeing.com
GSA> (206) 544-9925 





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]