Class X3DConcreteField

java.lang.Object
org.web3d.x3d.jsail.fields.X3DConcreteField
All Implemented Interfaces:
X3DField
Direct Known Subclasses:
MFBool, MFColor, MFColorRGBA, MFDouble, MFFloat, MFImage, MFInt32, MFMatrix3d, MFMatrix3f, MFMatrix4d, MFMatrix4f, MFNode, MFRotation, MFString, MFTime, MFVec2d, MFVec2f, MFVec3d, MFVec3f, MFVec4d, MFVec4f, SFBool, SFColor, SFColorRGBA, SFDouble, SFFloat, SFImage, SFInt32, SFMatrix3d, SFMatrix3f, SFMatrix4d, SFMatrix4f, SFNode, SFRotation, SFString, SFTime, SFVec2d, SFVec2f, SFVec3d, SFVec3f, SFVec4d, SFVec4f

public abstract class X3DConcreteField extends Object implements X3DField
Concrete implementation class corresponding to X3DField.

See Also:
  • Field Details

    • validationResult

      protected static StringBuilder validationResult
      Results log of local validation.
  • Constructor Details

    • X3DConcreteField

      public X3DConcreteField()
  • Method Details

    • getValidationResult

      public String getValidationResult()
      Get output of results from prior validation, if any
      Returns:
      validation results (if any)
    • getDefinition

      public X3DConcreteFieldDefinition getDefinition()
      WARNING not implemented
      Returns:
      null
    • isReadable

      public boolean isReadable()
      Check whether field is readable, default /true/
      Returns:
      whether field is readable
      See Also:
    • setReadable

      public void setReadable(boolean newValue)
      Set whether field is readable
      Parameters:
      newValue - new status for readable
      See Also:
    • isWritable

      public boolean isWritable()
      Check whether field is writable, default /true/
      Returns:
      whether field is writable
      See Also:
    • setWritable

      public void setWritable(boolean newValue)
      Set whether field is writable
      Parameters:
      newValue - new status for writable
      See Also:
    • addX3DEventListener

      public void addX3DEventListener(X3DFieldEventListener newListener)
      WARNING not tested
      Parameters:
      newListener - the listener to add
    • removeX3DEventListener

      public void removeX3DEventListener(X3DFieldEventListener oldListener)
      WARNING not tested
      Parameters:
      oldListener - the listener to remove
    • getTupleSize

      public static int getTupleSize(String fieldType)
      Compute tuple size for given type (for example, SFVec3f and MFVec3f have tupleSize of 3).
      Parameters:
      fieldType - of interest
      Returns:
      tuple size
    • initialize

      public abstract void initialize()
      Initialization sets default initial value.