Class SMFFormatVersionMutable

    • Method Detail

      • create

        public static SMFFormatVersionMutable create​(int major,
                                                     int minor)
        Construct a modifiable instance of SMFFormatVersionType.
        Parameters:
        major - The value for the major attribute
        minor - The value for the minor attribute
        Returns:
        A new modifiable instance
      • create

        public static SMFFormatVersionMutable create()
        Construct a modifiable instance of SMFFormatVersionType.
        Returns:
        A new modifiable instance
      • major

        public final int major()
        Specified by:
        major in interface SMFFormatVersionType
        Returns:
        The major number for a format
      • minor

        public final int minor()
        Specified by:
        minor in interface SMFFormatVersionType
        Returns:
        The minor number for a format
      • clear

        public SMFFormatVersionMutable clear()
        Clears the object by setting all attributes to their initial values.
        Returns:
        this for use in a chained invocation
      • from

        public SMFFormatVersionMutable from​(SMFFormatVersionType instance)
        Fill this modifiable instance with attribute values from the provided SMFFormatVersionType instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this for use in a chained invocation
      • from

        public SMFFormatVersionMutable from​(SMFFormatVersionMutable instance)
        Fill this modifiable instance with attribute values from the provided SMFFormatVersionType instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this for use in a chained invocation
      • setMajor

        public SMFFormatVersionMutable setMajor​(int major)
        Assigns a value to the major attribute.
        Parameters:
        major - The value for major
        Returns:
        this for use in a chained invocation
      • setMinor

        public SMFFormatVersionMutable setMinor​(int minor)
        Assigns a value to the minor attribute.
        Parameters:
        minor - The value for minor
        Returns:
        this for use in a chained invocation
      • majorIsSet

        public final boolean majorIsSet()
        Returns true if the required attribute major is set.
        Returns:
        true if set
      • minorIsSet

        public final boolean minorIsSet()
        Returns true if the required attribute minor is set.
        Returns:
        true if set
      • unsetMajor

        public final SMFFormatVersionMutable unsetMajor()
        Reset an attribute to its initial value.
        Returns:
        this for use in a chained invocation
      • unsetMinor

        public final SMFFormatVersionMutable unsetMinor()
        Reset an attribute to its initial value.
        Returns:
        this for use in a chained invocation
      • isInitialized

        public final boolean isInitialized()
        Returns true if all required attributes are set, indicating that the object is initialized.
        Returns:
        true if set
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of SMFFormatVersionMutable that have equal attribute values. An uninitialized instance is equal only to itself.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: major, minor.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Generates a string representation of this SMFFormatVersionType. If uninitialized, some attribute values may appear as question marks.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation