Package org.web3d.parser.vrml97
Class VRML97FieldReader
java.lang.Object
org.web3d.parser.vrml97.VRML97FieldReader
- All Implemented Interfaces:
VRMLFieldReader
The default field parser implementation class for raw field values to turn them into Java primitive types.
- Version:
- $Revision: 1.9 $
- Author:
- Justin Couch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
Parse an MFBool value.boolean[]
Parse an MFBool value.float[]
Parse an MFColor value.float[]
Parse an MFColor value.float[]
MFColorRGBA
(String value) Parse an MFColorRGBA value.float[]
MFColorRGBA
(String[] value) Parse an MFColorRGBA value.double[]
Parse an MFDouble value.double[]
Parse an MFDouble value.float[]
Parse an MFFloat value.float[]
Parse an MFFloat value.int[]
Parse an MFImage value.int[]
Parse an MFImage value.int[]
Parse an MFInt32 value.int[]
Parse an MFInt32 value.long[]
Parse an MFLong value.long[]
Parse an MFLong value.double[]
MFMatrix3d
(String value) Parse an MFMatrix3d value.double[]
MFMatrix3d
(String[] value) Parse an MFMatrix3d value.float[]
MFMatrix3f
(String value) Parse an MFMatrix3f value.float[]
MFMatrix3f
(String[] value) Parse an MFMatrix3f value.double[]
MFMatrix4d
(String value) Parse an MFMatrix4d value.double[]
MFMatrix4d
(String[] value) Parse an MFMatrix4d value.float[]
MFMatrix4f
(String value) Parse an MFMatrix4f value.float[]
MFMatrix4f
(String[] value) Parse an MFMatrix4f value.float[]
MFRotation
(String value) Parse an MFRotation value.float[]
MFRotation
(String[] value) Parse an MFRotation value.String[]
Parse an MFString value.String[]
Parse an MFString value from an array of strings.double[]
Parse an MFTime value.double[]
Parse an MFTime value.double[]
Parse an MFVec2d value.double[]
Parse an MFVec2d value.float[]
Parse an MFVec2f value.float[]
Parse an MFVec2f value.double[]
Parse an MFVec3d value.double[]
Parse an MFVec3d value.float[]
Parse an MFVec3f value.float[]
Parse an MFVec3f value.double[]
Parse an MFVec4d value.double[]
Parse an MFVec4d value.float[]
Parse an MFVec4f value.float[]
Parse an MFVec4f value.parseUnknownField
(String value, boolean useInt) This does not use the other methods to do the field parsing.void
setCaseSensitive
(boolean lower) Set the flag to decide whether VRML field parsing should be case sensitive or not.void
Set the external locator that can be used to generate line numbers externally to the field that is being parsed.boolean
Parse an SFBool value.float[]
Parse an SFColor value.float[]
Parse an SFColorRGBA value.float[]
SFColorRGBA
(String value) Parse a SFColorRGBA value.float[]
SFColorRGBA
(String[] value) Parse a SFColorRGBA value.double
Parse an SFDouble value.float
Parse an SFFloat value.int[]
Parse an SFImage value.int[]
Parse an MFVec2f value.int
Parse an SFInt value.long
Parse an SFLong value.double[]
SFMatrix3d
(String value) Parse an SFMatrix3d value.double[]
SFMatrix3d
(String[] value) Parse an SFMatrix3d value.float[]
SFMatrix3f
(String value) Parse an SFMatrix3f value.float[]
SFMatrix3f
(String[] value) Parse an SFMatrix3f value.double[]
SFMatrix4d
(String value) Parse an SFMatrix4d value.double[]
SFMatrix4d
(String[] value) Parse an SFMatrix4d value.float[]
SFMatrix4f
(String value) Parse an SFMatrix4f value.float[]
SFMatrix4f
(String[] value) Parse an SFMatrix4f value.float[]
SFRotation
(String value) Parse an SFRotation value.float[]
SFRotation
(String[] value) Parse an SFRotation value.Parse an SFString value.double
Parse an SFTime value.double[]
Parse an SFVec2d value.double[]
Parse an SFVec2d value.float[]
Parse an SFVec2f value.float[]
Parse an SFVec2f value.double[]
Parse an SFVec3d value.double[]
Parse an SFVec3d value.float[]
Parse an SFVec3f value.float[]
Parse an SFVec3f value.double[]
Parse an SFVec4d value.double[]
Parse an SFVec4d value.float[]
Parse an SFVec4f value.float[]
Parse an SFVec4f value.
-
Constructor Details
-
VRML97FieldReader
public VRML97FieldReader()Create a new instance of the field parser ready to go
-
-
Method Details
-
setDocumentLocator
Set the external locator that can be used to generate line numbers externally to the field that is being parsed. This allows the parsers to generate information that is relevant to the entire file not just the field being processed right now.- Specified by:
setDocumentLocator
in interfaceVRMLFieldReader
- Parameters:
l
- The locator instance to be used
-
setCaseSensitive
public void setCaseSensitive(boolean lower) Set the flag to decide whether VRML field parsing should be case sensitive or not. Since the XML version uses lower case for booleans and the UTF8 format uses upper case, the flag is the simple way of toggling between the two states. The default is for upper case parsing only.- Specified by:
setCaseSensitive
in interfaceVRMLFieldReader
- Parameters:
lower
- True if we want to have lower case
-
parseUnknownField
This does not use the other methods to do the field parsing. Instead, it goes on the raw values that are presented and returns objects to represent that. We look for either single values or multiple values. For any of these we return a representative object. The return value could be one of these:- Boolean
- Integer
- Float
- String
- boolean[]
- int[]
- float[]
- String[]
- Specified by:
parseUnknownField
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parseduseInt
- A hint to use if this is a number field we are parsing to decide whether to parse number strings as an int or float for type checking. If expecting any other sort of field, has no effect.- Returns:
- objects to represent the parsed field
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFInt32
Parse an SFInt value. If there is more than one int value in the string it will be ignored.- Specified by:
SFInt32
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The int value as a primitive
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFInt32
Parse an MFInt32 value.MFInt32 ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFInt32
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of int values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFInt32
Parse an MFInt32 value. If there is more than one float value in the string it will be ignored.- Specified by:
MFInt32
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFLong
Parse an SFLong value. If there is more than one int value in the string it will be ignored.- Specified by:
SFLong
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The long value as a primitive
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFLong
Parse an MFLong value.MFLong ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFLong
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of long values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFLong
Parse an MFLong value.MFLong ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFLong
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of long values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFFloat
Parse an SFFloat value. If there is more than one float value in the string it will be ignored.- Specified by:
SFFloat
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The float value as a primitive
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFFloat
Parse an MFFloat value.MFFloat ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFFloat
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of float values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFFloat
Parse an MFFloat value. If there is more than one float value in the string it will be ignored.- Specified by:
MFFloat
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFDouble
Parse an SFDouble value. If there is more than one double value in the string it will be ignored.- Specified by:
SFDouble
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The double value as a primitive
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFDouble
Parse an MFDouble value.MFDouble ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFDouble
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of double values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFDouble
Parse an MFDouble value.MFDouble ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFDouble
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of double values as primitives
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFBool
Parse an SFBool value. If there is more than one boolean value in the string it will be ignored. Whether or not it handles the case sensitivity is determined by the flag set in thesetCaseSensitive(boolean)
method.- Specified by:
SFBool
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The primitive representation in the string
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFBool
Parse an MFBool value. Whether or not it handles the case sensitivity is determined by the flag set in thesetCaseSensitive(boolean)
method.MFBool ::= "[" ("TRUE" | "FALSE")* "]" | ("TRUE" | "FALSE")*
- Specified by:
MFBool
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- An array of primitive representations of the values
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFBool
Parse an MFBool value. Whether or not it handles the case sensitivity is determined by the flag set in thesetCaseSensitive(boolean)
method.MFBool ::= "[" ("TRUE" | "FALSE")* "]" | ("TRUE" | "FALSE")*
- Specified by:
MFBool
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- An array of primitive representations of the values
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFString
Parse an SFString value. We really shouldn't need this, but it is here for completeness. If the string starts and ends with quotes it will strips the quotes.- Specified by:
SFString
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The same string
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFString
Parse an MFString value.MFString ::= "[" ( STRING_LITERAL)* "]" | (STRING_LITERAL)*
- Specified by:
MFString
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of strings represented in the original string
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFString
Parse an MFString value from an array of strings.MFString ::= "[" ( STRING_LITERAL)* "]" | (STRING_LITERAL)*
- Specified by:
MFString
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of strings represented in the original string
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec2f
Parse an SFVec2f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec2f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The two components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec2f
Parse an SFVec2f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec2f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec2f
Parse an MFVec2f value.MFVec2f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec2f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 2 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec2f
Parse an MFVec2f value. If there is more than one float value in the string it will be ignored.- Specified by:
MFVec2f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec2d
Parse an SFVec2d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec2d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The two components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec2d
Parse an SFVec2d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec2d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The two components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec2d
Parse an MFVec2d value.MFVec2d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec2d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 2 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec2d
Parse an MFVec2d value.MFVec2d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec2d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 2 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec3f
Parse an SFVec3f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec3f
Parse an SFVec3f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec3f
Parse an MFVec3f value.MFVec3f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec3f
Parse an MFVec3f value. If there is more than one float value in the string it will be ignored.- Specified by:
MFVec3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec3d
Parse an SFVec3d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec3d
Parse an SFVec3d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec3d
Parse an MFVec3d value.MFVec3d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec3d
Parse an MFVec3d value.MFVec3d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec4f
Parse an SFVec4f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The four components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec4f
Parse an SFVec4f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The four components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec4f
Parse an MFVec4f value.MFVec4f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec4f
Parse an MFVec4f value. If there is more than one float value in the string it will be ignored.- Specified by:
MFVec4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The four components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec4d
Parse an SFVec4d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The four components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFVec4d
Parse an SFVec4d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFVec4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The four components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec4d
Parse an MFVec4d value.MFVec4d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFVec4d
Parse an MFVec4d value.MFVec4d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFVec4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 3 component vectors parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFRotation
Parse an SFRotation value. If there is more than one float value in the string it will be ignored.- Specified by:
SFRotation
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The four values of the parsed quaternion
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFRotation
Parse an SFRotation value. If there is more than one float value in the string it will be ignored.- Specified by:
SFRotation
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFRotation
Parse an MFRotation value.MFRotation ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFRotation
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of rotation quaternions parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFRotation
Parse an MFRotation value. If there is more than one float value in the string it will be ignored.- Specified by:
MFRotation
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFTime
Parse an SFTime value. If there is more than one float value in the string it will be ignored.- Specified by:
SFTime
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The time value parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFTime
Parse an MFTime value. In VRML97 MFTime are not legal field types. However, we provide it here for completeness and that it might be used by VRML 3.0.MFTime ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- Specified by:
MFTime
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of time values parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFTime
Parse an MFTime value. If there is more than one float value in the string it will be ignored.- Specified by:
MFTime
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFColor
Parse an SFColor value. The color differs from the float value by being clamped between 0 and 1. Any more than a single colour value is ignored.SFColor ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL
- Specified by:
SFColor
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three color components
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFColor
Parse an SFColorRGBA value. If there is more than one float value in the string it will be ignored.- Specified by:
SFColor
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFColor
Parse an MFColor value. The color differs from the float value by being clamped between 0 and 1.MFColor ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFColor
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of colors, no range checking
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFColor
Parse an MFColor value. If there is more than one float value in the string it will be ignored.- Specified by:
MFColor
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFColorRGBA
Parse a SFColorRGBA value. The color differs from the float value by being clamped between 0 and 1. Any more than a single colour value is ignored.SFColorRGBA ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL
- Specified by:
SFColorRGBA
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three color components
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFColorRGBA
Parse a SFColorRGBA value. The color differs from the float value by being clamped between 0 and 1. Any more than a single colour value is ignored.SFColorRGBA ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL
- Specified by:
SFColorRGBA
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three color components
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFColorRGBA
Parse an MFColorRGBA value. The color differs from the float value by being clamped between 0 and 1.MFColorRGBA ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFColorRGBA
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of colors, no range checking
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFColorRGBA
Parse an MFColorRGBA value. The color differs from the float value by being clamped between 0 and 1.MFColorRGBA ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFColorRGBA
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of colors, no range checking
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFImage
Parse an SFImage value.SFImage ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL (NUMBER_LITERAL)*
- Specified by:
SFImage
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The integers that are parsed as an image
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFImage
Parse an MFVec2f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFImage
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The three components of the vector
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFImage
Parse an MFImage value.SFImage ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL (NUMBER_LITERAL)*
- Specified by:
MFImage
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The integers that are parsed as an image
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFImage
Parse an MFImage value.SFImage ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL (NUMBER_LITERAL)*
- Specified by:
MFImage
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The integers that are parsed as an image
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix3f
Parse an SFMatrix3f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 9 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix3f
Parse an SFMatrix3f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The 9 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix3f
Parse an MFMatrix3f value.MFMatrix3f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 9 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix3f
Parse an MFMatrix3f value. If there is more than one float value in the string it will be ignored.- Specified by:
MFMatrix3f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The array of 9 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix3d
Parse an SFMatrix3d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 9 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix3d
Parse an SFMatrix3d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 9 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix3d
Parse an MFMatrix3d value.MFMatrix3d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 9 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix3d
Parse an MFMatrix3d value.MFMatrix3d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix3d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 9 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix4f
Parse an SFMatrix4f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 16 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix4f
Parse an SFMatrix4f value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The 16 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix4f
Parse an MFMatrix4f value.MFMatrix4f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 16 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix4f
Parse an MFMatrix4f value. If there is more than one float value in the string it will be ignored.- Specified by:
MFMatrix4f
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as an array of strings to be parsed- Returns:
- The array of 16 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix4d
Parse an SFMatrix4d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 16 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
SFMatrix4d
Parse an SFMatrix4d value. If there is more than one float value in the string it will be ignored.- Specified by:
SFMatrix4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The 16 components of the matrix
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix4d
Parse an MFMatrix4d value.MFMatrix4d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 16 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-
MFMatrix4d
Parse an MFMatrix4d value.MFMatrix4d ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- Specified by:
MFMatrix4d
in interfaceVRMLFieldReader
- Parameters:
value
- The raw value as a string to be parsed- Returns:
- The array of 16 component matrices parsed
- Throws:
InvalidFieldFormatException
- The field does not match the required profile
-