com.groupdocs.editor.htmlcss.resources.textual

Class TextType

    • Constructor Detail

      • TextType

        public TextType()
    • Method Detail

      • equals

        public boolean equals(Object obj)

        Determines whether this instance is equal with specified uncasted object, which presumably is another "TextType" instance

        Overrides:
        equals in class Object
        Parameters:
        obj - Other TextType instance, that is boxed to object
        Returns:
        Returns true if are equal or false if are unequal
      • equals

        public final boolean equals(TextType other)

        Determines whether this instance is equal with specified "TextType" instance

        Parameters:
        other - Other TextType instance, that should be compared with this on equality
        Returns:
        Returns true if are equal or false if are unequal
      • getCss

        public static TextType getCss()

        CSS type of the textual resource

      • getFileExtension

        public final String getFileExtension()

        File extension (without leading dot character) of a particular textual resource

        Specified by:
        getFileExtension in interface IResourceType
      • getFormalName

        public final String getFormalName()

        Returns a formal name of this textual resource type

        Specified by:
        getFormalName in interface IResourceType
      • getMimeCode

        public final String getMimeCode()

        MIME code of a particular textual resource type

        Specified by:
        getMimeCode in interface IResourceType
      • getUndefined

        public static TextType getUndefined()

        Special value, which marks undefined, unknown or unsupported textual resource

      • getXml

        public static TextType getXml()

        XML type of the textual resource

      • hashCode

        public int hashCode()

        Returns a hash-code, which is a constant number for this specific value type

        Overrides:
        hashCode in class Object
        Returns:
        Signed 4-byte integer number. Returns 0 if this instance has default value.
      • op_Equality

        public static boolean op_Equality(TextType first,
                                          TextType second)

        Defines whether two specific "TextType" instances are equal

        Parameters:
        first - First TextType instance
        second - Second TextType instance
        Returns:
        Returns true if are equal or false if are unequal
      • op_Inequality

        public static boolean op_Inequality(TextType first,
                                            TextType second)

        Defines whether two specific "TextType" instances are not equal

        Parameters:
        first - First TextType instance
        second - Second TextType instance
        Returns:
        Returns true if are unequal or false if are equal
      • parseFromFilenameWithExtension

        public static TextType parseFromFilenameWithExtension(String filename)

        Returns TextType value, which is equivalent of filename extension, which is extracted from specified filename with extension or pure extension

        Parameters:
        filename - Filename with extension, can be relative or absolute path, or pure extension itself
        Returns:
        Parsed TextType instance on success or TextType.Undefined on failure