TextType

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.htmlcss.resources.IResourceType

public class TextType implements IResourceType

Represents one supportable textual resource type

Constructors

Constructor Description
TextType()

Methods

Method Description
getUndefined() Special value, which marks undefined, unknown or unsupported textual resource
getCss() CSS type of the textual resource
getXml() XML type of the textual resource
getFormalName() Returns a formal name of this textual resource type
getFileExtension() File extension (without leading dot character) of a particular textual resource
getMimeCode() MIME code of a particular textual resource type
equals(TextType other) Determines whether this instance is equal with specified “TextType” instance
equals(Object obj) Determines whether this instance is equal with specified uncasted object, which presumably is another “TextType” instance
op_Equality(TextType first, TextType second) Defines whether two specific “TextType” instances are equal
op_Inequality(TextType first, TextType second) Defines whether two specific “TextType” instances are not equal
hashCode() Returns a hash-code, which is a constant number for this specific value type
parseFromFilenameWithExtension(String filename) Returns TextType value, which is equivalent of filename extension, which is extracted from specified filename with extension or pure extension

TextType()

public TextType()

getUndefined()

public static TextType getUndefined()

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

Returns: TextType

getCss()

public static TextType getCss()

CSS type of the textual resource

Returns: TextType

getXml()

public static TextType getXml()

XML type of the textual resource

Returns: TextType

getFormalName()

public final String getFormalName()

Returns a formal name of this textual resource type

Returns: java.lang.String

getFileExtension()

public final String getFileExtension()

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

Returns: java.lang.String

getMimeCode()

public final String getMimeCode()

MIME code of a particular textual resource type

Returns: java.lang.String

equals(TextType other)

public final boolean equals(TextType other)

Determines whether this instance is equal with specified “TextType” instance

Parameters:

Parameter Type Description
other TextType Other TextType instance, that should be compared with this on equality

Returns: boolean - Returns true if are equal or false if are unequal

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

Parameter Type Description
obj java.lang.Object Other TextType instance, that is boxed to object

Returns: boolean - Returns true if are equal or false if are unequal

op_Equality(TextType first, TextType second)

public static boolean op_Equality(TextType first, TextType second)

Defines whether two specific “TextType” instances are equal

Parameters:

Parameter Type Description
first TextType First TextType instance
second TextType Second TextType instance

Returns: boolean - Returns true if are equal or false if are unequal

op_Inequality(TextType first, TextType second)

public static boolean op_Inequality(TextType first, TextType second)

Defines whether two specific “TextType” instances are not equal

Parameters:

Parameter Type Description
first TextType First TextType instance
second TextType Second TextType instance

Returns: boolean - Returns true if are unequal or false if are equal

hashCode()

public int hashCode()

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

Returns: int - Signed 4-byte integer number. Returns 0 if this instance has default value.

parseFromFilenameWithExtension(String filename)

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:

Parameter Type Description
filename java.lang.String Filename with extension, can be relative or absolute path, or pure extension itself

Returns: TextType - Parsed TextType instance on success or TextType.Undefined on failure