Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] missing ggf method for nmwg?

Subject: perfsonar development work

List archive

Re: [pS-dev] missing ggf method for nmwg?


Chronological Thread 
  • From: ulisses <>
  • To: Jason Zurawski <>
  • Cc:
  • Subject: Re: [pS-dev] missing ggf method for nmwg?
  • Date: Tue, 21 Nov 2006 16:51:35 +0100

Ok Jason

thanks for your fast! clarification

regards

Ulisses

On 2006-11-21 10:17:11, Jason Zurawski wrote:
> Ulisses wrote:
> >I wanted to know how to add to the BaseLinkContent element, defined in
> >nmtopo_ver3.rnc.
> >the attribute type of the nmwgtopo3:name child:
> >
> >
>
> BaseLinkContent is not an element, it is a pattern.
>
> >please note that I do not refer to element nmwgtopo3:type
> >
> >BaseLinkContent =
> > Identifier? &
> > BaseLinkIdRef? &
> > element nmwgtopo3:index { xsd:string }? &
> > element nmwgtopo3:type { xsd:string }? &
> > element nmwgtopo3:name {
> > attribute type { xsd:string }? &
> > xsd:string
> > }? &
> >
> >
> >
>
> Are you referring to how you would use this in java? It would look
> something like this:
>
> org.ggf.ns.nmwg.topology.base.v3_0.Link link = new
> org.ggf.ns.nmwg.topology.base.v3_0.Link();
> org.ggf.ns.nmwg.topology.base.v3_0.Name name = new
> org.ggf.ns.nmwg.topology.base.v3_0.Name();
> name.setType("sometype");
> name.setName("somename");
> link.addChild(name);
>
> Which gives you something like this:
>
> <nmwgt:link xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/base/3.0/";>
> <nmwgt:name type="sometype">somename</nmwgt:name>
> </nmwgt:link>
>
> -jason
>



Archive powered by MHonArc 2.6.16.

Top of Page