public class TextType extends Object implements IResourceType
Represents one supportable textual resource type
Constructor and Description |
---|
TextType() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether this instance is equal with specified uncasted object,
which presumably is another "TextType" instance
|
boolean |
equals(TextType other)
Determines whether this instance is equal with specified "TextType"
instance
|
static TextType |
getCss()
CSS type of the textual resource
|
String |
getFileExtension()
File extension (without leading dot character) of a particular textual
resource
|
String |
getFormalName()
Returns a formal name of this textual resource type
|
String |
getMimeCode()
MIME code of a particular textual resource type
|
static TextType |
getUndefined()
Special value, which marks undefined, unknown or unsupported textual
resource
|
static TextType |
getXml()
XML type of the textual resource
|
int |
hashCode()
Returns a hash-code, which is a constant number for this specific value
type
|
static boolean |
op_Equality(TextType first,
TextType second)
Defines whether two specific "TextType" instances are equal
|
static boolean |
op_Inequality(TextType first,
TextType second)
Defines whether two specific "TextType" instances are not equal
|
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
|
public boolean equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "TextType" instance
public final boolean equals(TextType other)
Determines whether this instance is equal with specified "TextType" instance
other
- Other TextType instance, that should be compared with this
on equalitypublic static TextType getCss()
CSS type of the textual resource
public final String getFileExtension()
File extension (without leading dot character) of a particular textual resource
getFileExtension
in interface IResourceType
public final String getFormalName()
Returns a formal name of this textual resource type
getFormalName
in interface IResourceType
public final String getMimeCode()
MIME code of a particular textual resource type
getMimeCode
in interface IResourceType
public static TextType getUndefined()
Special value, which marks undefined, unknown or unsupported textual resource
public static TextType getXml()
XML type of the textual resource
public int hashCode()
Returns a hash-code, which is a constant number for this specific value type
public static boolean op_Equality(TextType first, TextType second)
Defines whether two specific "TextType" instances are equal
first
- First TextType instancesecond
- Second TextType instancepublic static boolean op_Inequality(TextType first, TextType second)
Defines whether two specific "TextType" instances are not equal
first
- First TextType instancesecond
- Second TextType instancepublic 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
filename
- Filename with extension, can be relative or absolute path, or pure extension itself