Post

MetadataBoolean

Overview

MetadataBoolean contains a typed list of values providing metadata information about its parent node. Further information about this specific Metadata* node may be provided by a single child Metadata* node with containerField='metadata'.

The MetadataBoolean node belongs to the Core component and requires at least level 1, its default container field is value. It is available from X3D version 3.3 or higher.

Hierarchy

1
2
+ X3DNode
  + MetadataBoolean (X3DMetadataObject)*

* Derived from multiple interfaces.

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFString [in, out] name “”

Depending on the metadata vocabulary, the attribute name is usually required for metadata nodes.

Hints

Warning

  • name field is not included if this instance is a USE node, in order to avoid potential mismatches.

SFString [in, out] reference “”

Reference to the metadata standard or definition defining this particular metadata value.

MFBool [in, out] value [ ]

The value attribute is a strictly typed data array providing relevant metadata information.

Warning

  • Use lower-case values (“true false”) for .x3d XML encoding, and upper-case values (“TRUE FALSE”) for .x3dv ClassicVRML encoding.

Advice

Hints

Warnings

  • Default containerField='metadata' in X3D 3 changed to default containerField='value' in X3D 4.0, allowing construction of much terser MetadataSet vocabulary structures.
  • Metadata nodes can only contain other Metadata nodes.

See Also

This post is licensed under CC BY 4.0 by the author.