Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.vrml.node
Class PROTO  view PROTO download PROTO.java

java.lang.Object
  extended bycom.trapezium.vrml.VrmlElement
      extended bycom.trapezium.vrml.SingleTokenElement
          extended bycom.trapezium.vrml.MultipleTokenElement
              extended bycom.trapezium.vrml.fields.Field
                  extended bycom.trapezium.vrml.node.Node
                      extended bycom.trapezium.vrml.node.PROTObase
                          extended bycom.trapezium.vrml.node.PROTO
All Implemented Interfaces:
java.io.Serializable, com.trapezium.pattern.VisitorPattern

public class PROTO
extends PROTObase

Scene graph component for a PROTO declaration.

Since:
1.0
Version:
1.1, 17 Dec 1997

Nested Class Summary
 
Nested classes inherited from class com.trapezium.vrml.fields.Field
 
Field Summary
(package private)  java.lang.String builtInNodeType
          PROTO nodes can be used in place of a particular built in type
static boolean suppressISwarning
           
 
Fields inherited from class com.trapezium.vrml.node.PROTObase
isList, protoInterface, unusedInterfaceCheckComplete, unusedInterfacesExist
 
Fields inherited from class com.trapezium.vrml.node.Node
fieldNameList
 
Fields inherited from class com.trapezium.vrml.fields.Field
 
Fields inherited from class com.trapezium.vrml.MultipleTokenElement
 
Fields inherited from class com.trapezium.vrml.SingleTokenElement
 
Fields inherited from class com.trapezium.vrml.VrmlElement
baseProfile, createCount, disableBaseProfile, errorString, noUnusedDEFwarning, nowarning
 
Constructor Summary
PROTO(int tokenOffset)
           
 
Method Summary
 void checkInUse()
          check if all the PROTO interface fields are referenced by an IS statement
 java.lang.String getBaseName()
          get the class name without package
 java.lang.String getBuiltInNodeType()
          Get the built-in type for this PROTO, i.e.
 com.trapezium.vrml.fields.Field getClosestInterfaceDeclaration(java.lang.String fieldName)
          get the PROTO interface field with the name that best matches input name.
 boolean isPROTOnode()
          template method, overrides Node.isPROTOnode() which returns false.
 void setBuiltInNodeType(java.lang.String type)
          Set the built in type that this PROTO can be substituted for.
 
Methods inherited from class com.trapezium.vrml.node.PROTObase
addInterface, addISField, checkForUnusedInterfaces, getClosestFieldId, getFieldDescriptor, getFieldNames, getId, getInterfaceCount, getInterfaceDeclaration, getInterfaceVector, getISfield, getISfields, getNodeAt, getNodeName, getNumberISfields, getPROTObody, getPROTONodeType, hasUnusedInterfaces, isValidFieldId, setId
 
Methods inherited from class com.trapezium.vrml.node.Node
addChildNode, addChildNode, addChildNode, ddump, generatedParent, getBoolean, getBoolValue, getChildNode, getDefaultFieldValue, getDEFparent, getField, getFieldAt, getFieldType, getFieldValue, getFloatArray, getFloatValue, getInterfaceType, getIntValue, getISfield, getLastField, getMFfield, getNode, getNodeValue, getNumberFields, getParent, isBindable, isDEF, isDEForUSE, isFieldUsedByROUTE, isImplicitFieldId, isSensor, isUSE, removeChildNode, removeField, setError, setField, setField, setField, setField, vrmlClone
 
Methods inherited from class com.trapezium.vrml.fields.Field
cloneFieldValue, fieldValueTraverse, getFieldId, getFieldType, getFieldValue, getFloat, getInterfaceType, getNodeParent, getNodeValue, isInUse, isISfield, markInUse, setFieldId, setFieldType, setFieldType, setFieldValue
 
Methods inherited from class com.trapezium.vrml.MultipleTokenElement
adjust, getLastTokenOffset, getText, isTraversable, setLastTokenOffset
 
Methods inherited from class com.trapezium.vrml.SingleTokenElement
getFirstTokenOffset, getName, setFirstTokenOffset
 
Methods inherited from class com.trapezium.vrml.VrmlElement
addChild, addWarning, contains, containsErrors, deregisterSelf, dump, dump, dumpUserDefined, getChildAt, getError, getLastChild, getParent, getRoot, getScene, getTokenEnumerator, isScene, numberChildren, removeChild, removeVrmlElement, setParent, traverse, twoPassTraverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suppressISwarning

public static boolean suppressISwarning

builtInNodeType

java.lang.String builtInNodeType
PROTO nodes can be used in place of a particular built in type

Constructor Detail

PROTO

public PROTO(int tokenOffset)
Method Detail

isPROTOnode

public boolean isPROTOnode()
template method, overrides Node.isPROTOnode() which returns false.

Overrides:
isPROTOnode in class Node

getBuiltInNodeType

public java.lang.String getBuiltInNodeType()
Get the built-in type for this PROTO, i.e. the type of the first Node in the PROTO.

Specified by:
getBuiltInNodeType in class PROTObase

getBaseName

public java.lang.String getBaseName()
Description copied from class: com.trapezium.vrml.VrmlElement
get the class name without package


setBuiltInNodeType

public void setBuiltInNodeType(java.lang.String type)
Set the built in type that this PROTO can be substituted for.


getClosestInterfaceDeclaration

public com.trapezium.vrml.fields.Field getClosestInterfaceDeclaration(java.lang.String fieldName)
get the PROTO interface field with the name that best matches input name. This is used when a PROTO instance has an unknown field name. We assume this is a typo, and search for a valid field name that matches.


checkInUse

public void checkInUse()
check if all the PROTO interface fields are referenced by an IS statement