Class SoSFName

  • public class SoSFName
    extends SoSField
    Field containing a name. A field containing a name. Names are short series of characters generally used for labels or names, and are stored in a special table designed to allow fast lookup and comparison. For most purposes, an SoSFString field is probably more appropriate.

    SoSFNames are written to file as a string of characters. Names must begin with an underscore or alphabetic character, and must consist entirely of underscores, alphabetic characters, or numbers.

    See Also:
    SoField, SoSField, SoMFName
    • Constructor Detail

      • SoSFName

        public SoSFName​(SoFieldContainer fieldContainer,
                        java.lang.String fieldName,
                        SoField.FieldTypes fieldType,
                        java.lang.String defaultValue)
        Default constructor.
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Returns this field's value.
      • setValue

        public void setValue​(java.lang.String newValue)
        Sets this field to newValue.
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class SoField