Xj3D VRML/X3D Code API

org.web3d.vrml.renderer.norender
Class NRExternProtoBuilder

java.lang.Object
  extended byorg.web3d.vrml.renderer.CRExternProtoBuilder
      extended byorg.web3d.vrml.renderer.norender.NRExternProtoBuilder
All Implemented Interfaces:
BinaryContentHandler, ContentHandler, ProtoHandler, RouteHandler, ScriptHandler, StringContentHandler

public class NRExternProtoBuilder
extends CRExternProtoBuilder

A SAV interface for dealing with building a single extern proto.

The builder is designed to create a single proto. However, that single proto may well have nested protos as part of it, so we must deal with that too.

Version:
$Revision: 1.6 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.web3d.vrml.renderer.CRExternProtoBuilder
errorReporter
 
Constructor Summary
NRExternProtoBuilder(VRMLNodeFactory fac)
          Create a new default instance of the scene builder.
 
Method Summary
 CRExternPrototypeDecl createDecl(java.lang.String name, VRMLNodeFactory fac, int majorVersion, int minorVersion, NodeTemplateToInstanceCreator creator)
          Create a declaration suitable for filling in as a new proto.
 
Methods inherited from class org.web3d.vrml.renderer.CRExternProtoBuilder
componentDecl, endDocument, endExternProtoDecl, endField, endNode, endProtoBody, endProtoDecl, endScriptDecl, exportDecl, externProtoURI, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, getPrototype, importDecl, metaDecl, newProto, profileDecl, protoFieldDecl, protoIsDecl, reset, routeDecl, scriptFieldDecl, setDocumentLocator, setErrorReporter, setFrameStateManager, setGlobals, setLoadRequirements, startDocument, startExternProtoDecl, startField, startNode, startProtoBody, startProtoDecl, startScriptDecl, useDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NRExternProtoBuilder

public NRExternProtoBuilder(VRMLNodeFactory fac)
                     throws java.lang.NullPointerException
Create a new default instance of the scene builder. This uses the default factory for nodes non-renderable nodes.

Parameters:
fac - The factory to use for creating the instances
Throws:
java.lang.NullPointerException - The factory reference is null
Method Detail

createDecl

public CRExternPrototypeDecl createDecl(java.lang.String name,
                                        VRMLNodeFactory fac,
                                        int majorVersion,
                                        int minorVersion,
                                        NodeTemplateToInstanceCreator creator)
Create a declaration suitable for filling in as a new proto.

Specified by:
createDecl in class CRExternProtoBuilder
Parameters:
name - The name applied to the proto decl in the file
fac - The factory to use for creating the instances
majorVersion - The major version number of this scene
minorVersion - The minor version number of this scene
creator - The node creator for generating instances of ourself

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium