|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface X3DProtoDeclaration
The representation of a PROTO declaration.
This is the representation of the declaration, not of a runtime node. For this reason you cannot access the internals, nor can you work with the individual field values. You can, however, perform basic introspection tasks such as looking at the available field definitions and seeing the basic node type.
| Method Summary | |
|---|---|
X3DProtoInstance |
createInstance()
Create an instance of this proto that may be used at runtime. |
void |
dispose()
Dispose of this node's resources. |
X3DFieldDefinition[] |
getFieldDefinitions()
Get the list of fields that this node contains. |
int[] |
getNodeType()
Fetch the type of this proto. |
java.lang.String |
getProtoName()
Get the type of this node. |
| Method Detail |
|---|
java.lang.String getProtoName()
throws InvalidNodeException
InvalidNodeException - The node has had it's resources
disposed of
int[] getNodeType()
throws InvalidNodeException
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.
InvalidNodeException - The node has had it's resources
disposed of
X3DFieldDefinition[] getFieldDefinitions()
throws InvalidNodeException
InvalidNodeException - The node has had it's resources
disposed of
X3DProtoInstance createInstance()
throws InvalidNodeException
InvalidNodeException - The node has had it's resources
disposed of
void dispose()
throws InvalidNodeException
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.
InvalidNodeException - The node is no longer valid and can't be
disposed of again.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||