Interface INameable

    • Method Detail

      • getName

        String getName()
        Gets the name of this resource. The resource name corresponds to different things depending on the type of resource. For a StartDocument the name is the URI of the document. Otherwise, in most cases the name is the identifier of the resource (This is the equivalent of the XLIFF resname attribute).
        Returns:
        This resource name, or null if there is none.
      • setName

        void setName​(String name)
        Sets the name of this resource. The resource name is the equivalent of the XLIFF resname attribute.
        Parameters:
        name - New name to set.
      • getType

        String getType()
        Gets the type information associated with this resource. For example "button".
        Returns:
        The type information associated with this resource.
      • setType

        void setType​(String value)
        Sets the type information associated with this resource. For example "button".
        Parameters:
        value - The new type information.
      • getMimeType

        String getMimeType()
        Gets the type of content of this resource. For example "text/xml".
        Returns:
        The type of content of this resource.
      • setMimeType

        void setMimeType​(String value)
        Sets the type of content of this resource. For example "text/xml".
        Parameters:
        value - The new type of content of this resource.
      • isTranslatable

        boolean isTranslatable()
        Indicates if the content of this resource is translatable. By default this indicator is set to true for all resources.
        Returns:
        True if the content of this resource is translatable. False if it is not translatable.
      • setIsTranslatable

        void setIsTranslatable​(boolean value)
        Sets the flag indicating if the content of this resource is translatable.
        Parameters:
        value - True to indicate that the content of this resource is translatable.
      • preserveWhitespaces

        boolean preserveWhitespaces()
        Indicates if the white-spaces in the content of this resource should be preserved. By default this indicator is set to false for all resources.
        Returns:
        True if the white-spaces in the content of this resource should be preserved.
      • setPreserveWhitespaces

        void setPreserveWhitespaces​(boolean value)
        sets the flag indicating if the white-spaces in the content of this resource should be preserved.
        Parameters:
        value - True to indicate that the white-spaces in the content of this resource should be preserved.