public class TextualFormats extends com.aspose.ms.lang.Struct<TextualFormats> implements IDocumentFormat
Encapsulates all textual (text-based) formats, including markup (XML, HTML) and all DSV
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)
|
static TextualFormats |
Txt
Plain Text Document (TXT)
|
static TextualFormats |
Xml
eXtensible Markup Language document (XML)
|
Constructor and Description |
---|
TextualFormats() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
TextualFormats |
Clone() |
void |
CloneTo(TextualFormats that) |
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 boolean |
equals(TextualFormats obj1,
TextualFormats obj2) |
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 |
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
|
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)
public static final TextualFormats Txt
Plain Text Document (TXT)
public static final TextualFormats Xml
eXtensible Markup Language document (XML)
public TextualFormats Clone()
Clone
in class com.aspose.ms.System.ValueType<TextualFormats>
public void CloneTo(TextualFormats that)
CloneTo
in class com.aspose.ms.System.ValueType<TextualFormats>
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
equals
in interface com.aspose.ms.System.IEquatable<IDocumentFormat>
equals
in class Object
obj
- Other boxed TextualFormats instancepublic 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 boolean equals(TextualFormats obj1, TextualFormats obj2)
public 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 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