perfsonar-dev - adding references to other nodes/rnc schema definitions cannot be matched to classes
Subject: perfsonar development work
List archive
adding references to other nodes/rnc schema definitions cannot be matched to classes
Chronological Thread
- From: ulisses <>
- To: Jason Zurawski <>, Loukik Kudarimoti <>
- Cc:
- Subject: adding references to other nodes/rnc schema definitions cannot be matched to classes
- Date: Thu, 27 Jul 2006 08:40:31 +0200
Hi Jason, Loukik
I have two questions, both are related
# Question #1
The first is about adding a reference to a node in an XML document using nmwg
classes
imagine an XML document that has two completly different branches, let's say:
/--- Node class A ---- Node class C
Root --/
\
\--- Node class B ---- Node class C
imagine now that I have defined in branch that begins with Node class A, a
Node class C child,
lets say "a" and I want to have the same node "a" in the branch that begins
with the Node class B.
The proper way to do it is:
1- new Node class C "c"
2- add attributes to node "c"
3- set the linkref attribute of "c", lets say to "cref"
4- attach "c" to class A
and then, when filling the branch that begins with the node class B...
5- new Node class C
6- just set the linkref attribute to be "cref"
7- do not set any other attribute to the newly created node class C
8- attach this new node class C to the node of class B
is this the way?
# Question #2
The second one is about the impossibility of adding an L3 Interface to the
Node class:
The XML/RNC definition of a Node says that it can have an L3Interface child:
Node =
element nmwgtopo3:node { NodeContent }
NodeContent =
Identifier? &
BaseNodeIdRef? &
BaseRole? &
element nmwgtopo3:name {
attribute type { xsd:string }? &
xsd:string
}? &
element nmwgtopo3:type { xsd:string }? &
element nmwgtopo3:hostName { xsd:string }? &
element nmwgtopo3:description { xsd:string }? &
element nmwgtopo3:cpu { xsd:string }? &
element nmwgtopo3:operSys { xsd:string }? &
element nmwgtopo3:location { xsd:string }? &
element nmwgtopo3:country { xsd:string }? &
element nmwgtopo3:city { xsd:string }? &
element nmwgtopo3:latitude { xsd:string }? &
element nmwgtopo3:longitude { xsd:string }? &
element nmwgtopo3:institution { xsd:string }? &
(
BaseInterface |
L2Interface |
L3Interface
)*
but the class Node, in the method setInterface only accepts
org.ggf.ns.nmwg.topology.base.v3_0.Interface
and not org.ggf.ns.nmwg.topology.l3.v3_0.Interface.
How can I add an L3Interface?
Thanks so much
Ulisses
- adding references to other nodes/rnc schema definitions cannot be matched to classes, ulisses, 07/27/2006
- Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, Jason Zurawski, 07/27/2006
- Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, ulisses, 07/28/2006
- Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, Jason Zurawski, 07/28/2006
- Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, ulisses, 07/28/2006
- Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, Jason Zurawski, 07/27/2006
Archive powered by MHonArc 2.6.16.