|
Xj3D 2.0 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.util.FieldValidator
public class FieldValidator
Validates the value of a VRML field against the specification.
Will throw a InvalidFieldValueException if the value is out of range
| Constructor Summary | |
|---|---|
FieldValidator()
|
|
| Method Summary | |
|---|---|
static void |
checkBBoxSize(java.lang.String idString,
float[] bboxSize)
Check the validity of the bboxSize field. |
static void |
checkBBoxSize2D(java.lang.String idString,
float[] bboxSize)
Check the validity of the 2D bboxSize field. |
static void |
checkColorAlphaVector(java.lang.String idString,
float[] newColor)
Check the validity of a color field Valid range is [0,1] for each element |
static void |
checkColorArray(java.lang.String idString,
float[] newColor)
Check the validity of a MFColor field array. |
static void |
checkColorVector(java.lang.String idString,
float[] newColor)
Check the validity of a color field Valid range is [0,1] for each element |
static void |
checkDoublePosInfinity(java.lang.String idString,
double newDouble)
Check the validity of a double pos infinity field Valid range is [0,infinity) |
static void |
checkFloat(java.lang.String idString,
float newFloat)
Check the validity of a float field Valid range is [0,1] |
static void |
checkFloatPosInfinity(java.lang.String idString,
float newFloat)
Check the validity of a float pos infinity field Valid range is [0,infinity) |
static void |
checkIntPosInfinity(java.lang.String idString,
int newInt)
Check the validity of a integer pos infinity field Valid range is [0,infinity) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldValidator()
| Method Detail |
|---|
public static void checkColorVector(java.lang.String idString,
float[] newColor)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewColor - The proposed new value
InvalidFieldValueException - Value out of spec
public static void checkColorAlphaVector(java.lang.String idString,
float[] newColor)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewColor - The proposed new value
InvalidFieldValueException - Value out of spec
public static void checkColorArray(java.lang.String idString,
float[] newColor)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewColor - The proposed new value
InvalidFieldValueException - Value out of spec
public static void checkFloat(java.lang.String idString,
float newFloat)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewFloat - the float to validate
InvalidFieldValueException - Value out of spec
public static void checkFloatPosInfinity(java.lang.String idString,
float newFloat)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewFloat - the float to validate
InvalidFieldValueException - Value out of spec
public static void checkDoublePosInfinity(java.lang.String idString,
double newDouble)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewDouble - the double to validate
InvalidFieldValueException - Value out of spec
public static void checkIntPosInfinity(java.lang.String idString,
int newInt)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesnewInt - the integer to validate
InvalidFieldValueException - Value out of spec
public static void checkBBoxSize(java.lang.String idString,
float[] bboxSize)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesbboxSize - The field to validate.
InvalidFieldValueException - Value out of spec
public static void checkBBoxSize2D(java.lang.String idString,
float[] bboxSize)
throws InvalidFieldValueException
idString - A field ID name for nice error messagesbboxSize - The field to validate.
InvalidFieldValueException - Value out of spec
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||