Class SAIProtoDeclaration
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAIProtoDeclaration
- All Implemented Interfaces:
X3DProtoDeclaration
Implementation wrapper of the X3DProtoDeclaration interface
Based to a significant amount on the ProtoDeclaration implementation for the EcmaScript scripting.
- Version:
- $Revision: 1.6 $
- Author:
- Brad Vender
-
Method Summary
Modifier and TypeMethodDescriptionCreate an instance of this proto that may be used at runtime.void
dispose()
Dispose of this node's resources.Get the list of fields that this node contains.int[]
Fetch the type of this proto.Get the type of this node.
-
Method Details
-
getProtoName
Description copied from interface:X3DProtoDeclaration
Get the type of this node. The string returned should be the name of the VRML node or the name of the proto instance this node represents.- Specified by:
getProtoName
in interfaceX3DProtoDeclaration
- Returns:
- The type of this node.
- Throws:
InvalidNodeException
- The node has had it's resources disposed of- See Also:
-
getNodeType
Description copied from interface:X3DProtoDeclaration
Fetch the type of this proto. The proto's type is defined by the first child node in the body, in accordance with the X3D specification.The types values are provided in the array of values. There is no specific order of the returned types. It is expected that most node types, which only descend from a single parent type would return an array of length 1.
- Specified by:
getNodeType
in interfaceX3DProtoDeclaration
- Returns:
- The primary type(s) of this node
- Throws:
InvalidNodeException
- The node has had it's resources disposed of- See Also:
-
getFieldDefinitions
Description copied from interface:X3DProtoDeclaration
Get the list of fields that this node contains. This will return one definition for each field regardless of whether it is eventIn/Out, exposedField or field access type.- Specified by:
getFieldDefinitions
in interfaceX3DProtoDeclaration
- Returns:
- The definitions for all fields of this node
- Throws:
InvalidNodeException
- The node has had it's resources disposed of- See Also:
-
createInstance
Description copied from interface:X3DProtoDeclaration
Create an instance of this proto that may be used at runtime.- Specified by:
createInstance
in interfaceX3DProtoDeclaration
- Returns:
- An instance of this proto to work with
- Throws:
InvalidNodeException
- The node has had it's resources disposed of- See Also:
-
dispose
Description copied from interface:X3DProtoDeclaration
Dispose of this node's resources. This is used to indicate to the browser that the java side of the application does not require the resources represented by this node. The browser is now free to do what it likes with the node.This in no way implies that the browser is to remove this node from the scene graph, only that the java code is no longer interested in this particular node through this reference.
Once this method has been called, any further calls to methods of this instance of the class is shall generate an InvalidNodeException.
- Specified by:
dispose
in interfaceX3DProtoDeclaration
- Throws:
InvalidNodeException
- The node is no longer valid and can't be disposed of again.- See Also:
-