public class TextualFormats extends Object implements IDocumentFormat
Modifier and Type | Class and Description |
---|---|
static class |
TextualFormats.AllEnumerable
Implements IEnumerable generic interface, that enables a 'foreach'
possibility for the TextualFormats type
|
Modifier and Type | Field and Description |
---|---|
static TextualFormats.AllEnumerable |
All
Returns an internal class, that provides enumerable possibilities over all existing Textual formats.
|
static TextualFormats |
Html
HyperText Markup Language document (HTML) is the extension for web pages created for display in browsers.
|
static TextualFormats |
Md
Markdown is a lightweight markup language for creating formatted text using a plain-text editor.
|
static TextualFormats |
Txt
Plain Text Document (TXT) represents a text document that contains plain text in the form of lines.
|
static TextualFormats |
Xml
eXtensible Markup Language document (XML) that is similar to HTML but different in using tags for defining objects.
|
Constructor and Description |
---|
TextualFormats() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(IDocumentFormat other)
Determines whether this instance is equal to the other specified
IDocumentFormat instance
|
boolean |
equals(Object obj)
Determines whether this instance is equal to the other specified object,
that is presumably of boxed TextualFormats
|
boolean |
equals(TextualFormats other)
Determines whether this instance is equal to the other specified
TextualFormats instance
|
static TextualFormats |
fromExtension(String extension)
Returns instance of
TextualFormats structure, associated to
specified filename extension, or throws an exception, if extension cannot
be properly parsed |
String |
getExtension()
Returns an extension (without leading dot character) of this textual
format in lower case
|
String |
getMime()
Returns a MIME code for this format
|
String |
getName()
Returns a formal full name of this textual format
|
int |
hashCode()
Returns a hash-code, that is immutable for this instance
|
static boolean |
op_Equality(TextualFormats first,
TextualFormats second)
Checks two given TextualFormats instances on equality
|
static boolean |
op_Inequality(TextualFormats first,
TextualFormats second)
Checks two given TextualFormats instances on inequality
|
String |
toString()
Returns the name of this particular format, same as 'Name' property
|
public static final TextualFormats.AllEnumerable All
Returns an internal class, that provides enumerable possibilities over all existing Textual formats.
public static final TextualFormats Html
HyperText Markup Language document (HTML) is the extension for web pages created for display in browsers.
Learn more about this file format <a href="https://wiki.fileformat.com/web/html">here</a>
.
public static final TextualFormats Md
Markdown is a lightweight markup language for creating formatted text using a plain-text editor.
Learn more about this file format <a href="https://docs.fileformat.com/word-processing/md/">here</a>
.
public static final TextualFormats Txt
Plain Text Document (TXT) represents a text document that contains plain text in the form of lines.
Learn more about this file format <a href="https://wiki.fileformat.com/word-processing/txt">here</a>
.
public static final TextualFormats Xml
eXtensible Markup Language document (XML) that is similar to HTML but different in using tags for defining objects.
Learn more about this file format <a href="https://wiki.fileformat.com/web/xml">here</a>
.
public final boolean equals(IDocumentFormat other)
Determines whether this instance is equal to the other specified IDocumentFormat instance
other
- Other IDocumentFormat instance. If it is not a
TextualFormats, method will return 'false'public boolean equals(Object obj)
Determines whether this instance is equal to the other specified object, that is presumably of boxed TextualFormats
public final boolean equals(TextualFormats other)
Determines whether this instance is equal to the other specified TextualFormats instance
other
- Other TextualFormats instance, that should be checked on
equality with thispublic static TextualFormats fromExtension(String extension)
Returns instance of TextualFormats
structure, associated to
specified filename extension, or throws an exception, if extension cannot
be properly parsed
extension
- Filename extension of any supportable textual format,
with or without leading dot character, case-independent. Cannot be NULL
or empty, should be valid.public final String getExtension()
Returns an extension (without leading dot character) of this textual format in lower case
getExtension
in interface IDocumentFormat
public final String getMime()
Returns a MIME code for this format
getMime
in interface IDocumentFormat
public final String getName()
Returns a formal full name of this textual format
getName
in interface IDocumentFormat
public int hashCode()
Returns a hash-code, that is immutable for this instance
public static boolean op_Equality(TextualFormats first, TextualFormats second)
Checks two given TextualFormats instances on equality
first
- First TextualFormats instance to checksecond
- Second TextualFormats instance to checkpublic static boolean op_Inequality(TextualFormats first, TextualFormats second)
Checks two given TextualFormats instances on inequality
first
- First TextualFormats instance to checksecond
- Second TextualFormats instance to check