WarningType
Overview
WarningType is an enum in Aspose.Words FOSS for Java.
Specifies the type of a warning that is issued by Aspose.Words during document loading or saving.
Edition status of its 19 listed members (a property and its accessor methods are listed separately, overloads once): 19 not yet exercised by a verified example.
This enum declares 7 methods for WarningType objects in Java programs.
Available methods include: fromName, fromNames, getName, getNames, getValues, toString, toStringSet.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
DATA_LOSS_CATEGORY | Some text/char/image or other data will be missing from either the document tree following load, or from the created document following save. |
DATA_LOSS | Generic data loss, no specific code. |
MAJOR_FORMATTING_LOSS_CATEGORY | The resulting document or a particular location in it might look substantially different compared to the original document. |
MAJOR_FORMATTING_LOSS | Generic major formatting loss, no specific code. |
MINOR_FORMATTING_LOSS_CATEGORY | The resulting document or a particular location in it might look somewhat different compared to the original document. |
MINOR_FORMATTING_LOSS | Generic minor formatting loss, no specific code. |
FONT_SUBSTITUTION | Font has been substituted. |
FONT_EMBEDDING | Loss of embedded font information during document saving. |
UNEXPECTED_CONTENT_CATEGORY | Some content in the source document could not be recognized (i.e. is unsupported), this may or may not cause issues or result in data/formatting loss. |
UNEXPECTED_CONTENT | Generic unexpected content, no specific code. |
HINT | Advises of a potential problem or suggests an improvement. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of WarningType values. |
Methods
| Signature | Description |
|---|---|
getName(warningType: int) → String | Returns JAVA_STYLE string representation of integer WarningType value. |
getNames(warningType: int) → Set<String> | Returns string representation of integer WarningType value. |
toString(warningType: int) → String | Returns DotNetStyle string representation of integer WarningType value. |
toStringSet(attr: int) → String | Returns DotNetStyle string representation of integer WarningType value. |
fromName(warningTypeName: String) → int | Returns integer representation by WarningType name. |
fromNames(warningTypeNames: Set<String>) → int | Returns flags integer representation by WarningType names. |
getValues() → int[] | Returns array of WarningType values. |