|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.lang.VRMLFieldDeclaration
Base representation of any field in the VRML system.
Each node contains a collection of fields. Each field has a fixed index for all instances of this node.
This class represents the declaration of a field rather than the complete field instance. For this reason it is immutable. You should not be allowed to change items of a field declaration on the fly.
FieldConstants| Field Summary | |
static java.lang.String |
UNKNOWN_IMPORT
Definition of a field type that we don't know yet because it came from an unresolved IMPORT statement. |
| Constructor Summary | |
VRMLFieldDeclaration(int accessType,
java.lang.String type,
java.lang.String name)
Create an instance of a field declaration. |
|
| Method Summary | |
int |
getAccessType()
Get the access type of the field. |
int |
getFieldSize()
Get the size of the raw element. |
int |
getFieldType()
Get the field type. |
java.lang.String |
getFieldTypeString()
Get the field type. |
java.lang.String |
getName()
Get the name of this field. |
java.lang.String |
toString()
Create a pretty string version of this field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String UNKNOWN_IMPORT
| Constructor Detail |
public VRMLFieldDeclaration(int accessType,
java.lang.String type,
java.lang.String name)
throws InvalidFieldTypeException
accessType - The type of access that this node hastype - The type of the node (eg SFInt32)name - The name of this field
InvalidFieldTypeException - The type is not a recognised type in
either X3D or VRML97.FieldConstants| Method Detail |
public java.lang.String getName()
public int getAccessType()
FieldConstantspublic int getFieldType()
FieldConstantspublic int getFieldSize()
public java.lang.String getFieldTypeString()
FieldConstantspublic java.lang.String toString()
access_type field_type field_name
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||