Package org.web3d.vrml.parser
Interface VRMLFieldReader
- All Known Implementing Classes:
VRML97FieldReader
,X3DFieldReader
public interface VRMLFieldReader
A parser interface for raw field values to turn them into Java primitive
types for use within the runtime application.
The parser assumes that we have a raw field value that does not contain any surrounding values. For example, it expects MFField values to be stripped of surrounding brackets before being passed to these methods.
There are two ways of using this class: parsing a know field type, and parsing an unknown field type and getting the parser to return the appropriate (closest guess) value to you.
The assumption of this parser is that each time you call the method it will have a non-zero length, non-empty string. There should be at least one non-whitespace character in the string. If not, a parse exception will be raised. By default, the boolean value parsing is upper case.
- Version:
- $Revision: 1.9 $
- Author:
- Justin Couch
-
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 SFColor value.float[]
SFColorRGBA
(String value) Parse an SFColorRGBA value.float[]
SFColorRGBA
(String[] value) Parse an SFColorRGBA value.double
Parse an SFDouble value.float
Parse an SFFloat value.int[]
Parse an SFImage value.int[]
Parse an SFImage 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.
-
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.- Parameters:
l
- The locator instance to be used
-
setCaseSensitive
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.- 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[]
- 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.- 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*
- 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.MFInt32 ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- 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
-
SFLong
Parse an SFLong value. If there is more than one int value in the string it will be ignored.- 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*
- 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*
- 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.- 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*
- 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.MFFloat ::= "[" NUMBER_LITERAL* "]" | NUMBER_LITERAL*
- 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
-
SFDouble
Parse an SFDouble value. If there is more than one double value in the string it will be ignored.- 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*
- 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*
- 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.- 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")*
- 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")*
- 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.- 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)*
- 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)*
- 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.- 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.- 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.- 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.- 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)*
- 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)*
- 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.MFVec2f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- 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.MFVec2f ::= "[" (NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL)*
- 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.- 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.- Parameters:
value
- The raw value as an array of strings 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)*
- 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.- Parameters:
value
- The raw value as an array of strings 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.- 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.- 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)*
- 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)*
- 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.- 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.- 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)*
- 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.- 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.- 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.- 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)*
- 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)*
- 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.- 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.- 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
-
MFRotation
Parse an MFRotation value.MFRotation ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- 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.MFRotation ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- 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
-
SFTime
Parse an SFTime value. If there is more than one float value in the string it will be ignored.- 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*
- 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. 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*
- 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
-
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
- 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 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
- 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
-
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)*
- 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. 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)*
- 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
-
SFColorRGBA
Parse an SFColorRGBA value. If there is more than one float value in the string it will be ignored.SFColorRGBA ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL
- 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 an SFColorRGBA value. If there is more than one float value in the string it will be ignored.SFColorRGBA ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL
- 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.MFColor ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- 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.MFColor ::= "[" (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)* "]" | (NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL)*
- 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)*
- 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 SFImage value.SFImage ::= NUMBER_LITERAL NUMBER_LITERAL NUMBER_LITERAL (NUMBER_LITERAL)*
- 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)*
- 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)*
- 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.- 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.- 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)*
- 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.- 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.- 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.- 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)*
- 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)*
- 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.- 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.- 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)*
- 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.- 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.- 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.- 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)*
- 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)*
- 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
-