Story #7422: Invalid system metadata with some CN system metadata entries
JibX generated classes need additional logic to prohibit empty elements
AccessPolicy should not be serialized as an empty element.
Also, AccessPolicy should not be serialized unless it is valid. Thus if an AccessPolicy contains an element AccessRule, it will not be serialized unless AccessRule has at least one Subject and Permission element.
Replication Policy may not be an empty element.
Replica may not be an empty element.
#2 Updated by Robert Waltz about 6 years ago
- Description updated (diff)
In order to maintain the current functionality of getAccessPolicy, getReplicationPolicy, and getReplica, I created new JibX specific get-methods in SysemMetadata:
Classes AccessPolicy, AccessRule, Node also have JibX specific get-methods implemented as well:
each of these JibX specific get-methods are declared in binding_v1.xml to inform JibX of the correct get-methods to use during serialization.