[x3d-public] X3DJSAIL fieldObject.validate() should not call both setValue and setChildren. One or the other. Can check size of children, to avoid setValue I think.
yottzumm at gmail.com
yottzumm at gmail.com
Tue Feb 21 14:04:37 PST 2017
@Override
public String validate()
{
validationResult = new StringBuilder(); // prepare for updated results
setAccessType(getAccessType()); // exercise field checks, simple types
setAppinfo(getAppinfo()); // exercise field checks, simple types
setDocumentation(getDocumentation()); // exercise field checks, simple types
setName(getName()); // exercise field checks, simple types
setType(getType()); // exercise field checks, simple types
setValue(getValue()); // exercise field checks, simple types
for (X3DNode element : children) // MFNode
{
((X3DConcreteElement) element).validate(); // exercise field checks, MFNode element
validationResult.append(((X3DConcreteElement) element).getValidationResult());
}
setChildren(getChildren()); // also test getter/setter validation
return validationResult.toString();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170221/8e52da11/attachment.html>
More information about the x3d-public
mailing list