You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This page should document all validation rules that should be performed on a schema (OXM + edgerules) in order to verify if it is valid.

  1. each node from edgerules has to be present in OXM
  2. ?

OXM Containment to TREE EdgeRules

In the OXM schema definition, the containment relationship looks like the example below, which describes:

  • "PNF contains VRFs"
  • "VRFs is an array of VRF"
  • "VRF depends on PNF"


        <java-type name="Pnf">
            <xml-root-element name="pnf"/>
            <java-attributes>
...
                <xml-element java-attribute="vrfs" name="vrfs" type="inventory.aai.onap.org.v16.Vrfs"/>
            </java-attributes>
...
        </java-type>

        <java-type name="Vrfs">
            <xml-root-element name="vrfs"/>
            <java-attributes>
                <xml-element container-type="java.util.ArrayList" java-attribute="vrf" name="vrf" type="inventory.aai.onap.org.v16.Vrf"/>
            </java-attributes>
            <xml-properties>
            </xml-properties>
        </java-type>

        <java-type name="Vrf">
            <xml-root-element name="vrf"/>
...
            <xml-properties>
...
                <xml-property name="dependentOn" value="pnf"/>
...
            </xml-properties>
        </java-type>

These OXM containments must be matched by TREE EdgeRules.

tbc




  • No labels