Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes

Subject: perfsonar development work

List archive

Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes


Chronological Thread 
  • From: Jason Zurawski <>
  • To: ulisses <>
  • Cc:
  • Subject: Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes
  • Date: Fri, 28 Jul 2006 09:53:13 -0400

Ulisses;

# Question #1


in my case:

// I have Links wich have interfaces, this interfaces will be referenced
afterwards by nodes
// that have the same interfaces

Interface iface;
iface.setTypeElement(type);
iface.setCapacityElement(capacity);
// etc... fill the rest of elements, and finally set a reference to it in hope
// I can reference it again in other parts of the XML document without
describing the interface again

iface.setInterfaceIdRef(interface_ref);

// Afterwards I want to describe a node that has the elements Node node= new Node();

// In this case I attach another Interface object with just the IdRef
attribute filled

Interface iface;

iface.setInterfaceIdRef(interface_ref); // interface_ref is the same string
as before
node.setInterface(iface);

is this right?

Yes, this is the proper way to use the reference.
-jason





Archive powered by MHonArc 2.6.16.

Top of Page