[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attr types



Hi Steve,

Sorry for the late reply, somehow I missed your e-mail ...

Unfortunately you have to deal with the String yourself because there is no canonical way to deal with the URI ... The #<stuff> is used by convention by a lot of folks (including myself) but is not part of any standard, therefore there aren't any general tools I know of that handle it.

So applications that deal with their data will need to handle the URI ... sorry.

There is some code in the data binding that does the URI processing, but I'll have to see how well I can extract it.

Let me know if you need anything else, sounds like you got really far along.

Yuzo

--On Tuesday, September 07, 2004 12:14 AM -0700 Stephen Regan <sregan@uci.edu> wrote:


Hi Yuzo,

I'm working on the gxltorsf converter and I want to get the type
attribute from Nodes and Edges.  Node method getType() returns a Type
object.  I can call toString() on that or I can do something like
node.getType().getType(), because the Type class has a getType() method
also.  The problem is Type's getType() method doesn't return what I need.
For example on this

<type
xlink:href="http://www.gupro.de/GXL/examples/schema/gxl/simpleExample/sim
pleExampleSchema.gxl#Ref"/>

what I want is the 'Ref' part at the end, but with Type's getType() what
I get is the string "simple".  What I'm currently doing is calling Node's
getType() method, which returns the whole type string, and parsing the
string to get 'Ref'.  I don't have any problem with the solution I'm
using, but I thought I should mention this to make sure that the Type
getType() method is doing what it is supposed to.

Otherwise, the data bindings are working well, and saving me an enormous
amount of time :)

Thanks
Steve