com.groupdocs.editor.htmlcss.resources.textual

Class TextType

  • java.lang.Object
    • com.aspose.ms.System.ValueType<T>
      • com.aspose.ms.lang.Struct<TextType>
        • com.groupdocs.editor.htmlcss.resources.textual.TextType
  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<TextType>, IResourceType


    public class TextType
    extends com.aspose.ms.lang.Struct<TextType>
    implements com.aspose.ms.System.IEquatable<TextType>, IResourceType

    Represents one supportable textual resource type

    • Constructor Detail

      • TextType

        public TextType()
    • Method Detail

      • Clone

        public TextType Clone()
        Specified by:
        Clone in class com.aspose.ms.System.ValueType<TextType>
      • CloneTo

        public void CloneTo(TextType that)
        Specified by:
        CloneTo in class com.aspose.ms.System.ValueType<TextType>
      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<TextType>
        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

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