[x3d-public] another new X3DJSAIL feature: isNode() and isStatement() methods
Don Brutzman
brutzman at nps.edu
Sun Sep 10 21:07:14 PDT 2017
Have added boolean utility methods X3DConcreteNode.isNode(),
X3DConcreteStatement.isStatement() and CommentsBlock.isStatement() etc.
Thus you have the ability to ask any node or any statement whether it is a node
or statement. These are static methods, so you can apply them to instances or
to classes. Such tests might be helpful when you are creating schema-like files
programmatically.
As before, the validate() method for each node and statement has as many checks
as I can devise in there. Pretty much everything from object model. Haven't
cross-checked with X3D Schematron yet... identification of further gaps is
always welcome.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list