Class CommonEncodable

java.lang.Object
xj3d.filter.node.CommonEncodable
All Implemented Interfaces:
Encodable
Direct Known Subclasses:
CommonScene

public class CommonEncodable extends Object implements Encodable
A generic container for X3D content parsed from a file. This representation is minimalistic. The nodes contain only the fields extracted from the file, no 'default' values are initialized. inputOnly and outputOnly fields are not supported. This container is a static representation of an X3D file and is not suited for runtime purposes.

A VRMLFieldReader instance must be set to this before initializing fields. String Field values will automatically be converted into their respective 'primitive' forms. The specific types of field data returned are:

  • Primitive type field values are returned in their respective Java wrapper.
  • Array type field values are returned in an ArrayData object.
  • SFNode type field values are returned as CommonEncodables.
  • MFNode type field values are returned in an List<CommonEncodable>.

A ContentHandler instance must be set to this to support encoding.

Version:
$Revision: 1.0 $
Author:
Rex Melton