java.lang.Object
com.aspose.words.WarningSource
public class WarningSource
- extends java.lang.Object
Utility class containing constants.
Specifies the module that produces a warning during document loading or saving.
Example:
Shows how to work with the warning source.
Document doc = new Document(getMyDir() + "Emphases markdown warning.docx");
WarningInfoCollection warnings = new WarningInfoCollection();
doc.setWarningCallback(warnings);
doc.save(getArtifactsDir() + "DocumentBuilder.EmphasesWarningSourceMarkdown.md");
for (WarningInfo warningInfo : warnings) {
if (warningInfo.getSource() == WarningSource.MARKDOWN)
Assert.assertEquals("The (*, 0:11) cannot be properly written into Markdown.", warningInfo.getDescription());
}
|
Field Summary |
static final int | UNKNOWN = 0 | |
|
The warning source is not specified.
|
static final int | LAYOUT = 1 | |
|
Module that builds a document layout.
|
static final int | DRAWING_ML = 2 | |
|
Module that renders DrawingML shapes.
|
static final int | OFFICE_MATH = 3 | |
|
Module that renders OfficeMath.
|
static final int | SHAPES = 4 | |
|
Module that renders ordinary shapes.
|
static final int | METAFILE = 5 | |
|
Module that renders metafiles.
|
static final int | XPS = 6 | |
|
Module that renders XPS.
|
static final int | PDF = 7 | |
|
Module that renders PDF.
|
static final int | IMAGE = 8 | |
|
Module that renders images.
|
static final int | DOCX = 9 | |
|
Module that reads/writes DOCX files.
|
static final int | DOC = 10 | |
|
Module that reads/writes binary DOC files.
|
static final int | TEXT = 11 | |
|
Module that reads/writes plaintext files.
|
static final int | RTF = 12 | |
|
Module that reads/writes RTF files.
|
static final int | WORD_ML = 13 | |
|
Module that reads/writes WML files.
|
static final int | NRX = 14 | |
|
Common modules that are shared between DOCX/WML reader/writer modules.
|
static final int | ODT = 15 | |
|
Module that reads/writes ODT files.
|
static final int | HTML = 16 | |
|
Module that reads/writes HTML/MHTML files.
|
static final int | VALIDATOR = 17 | |
|
Module that verifies model consistency and validity.
|
static final int | XAML = 18 | |
|
Module that reads/writes Xaml files.
|
static final int | SVM = 19 | |
|
Module that reads Svm files.
|
static final int | MATH_ML = 20 | |
|
Module that reads W3C MathML files.
|
static final int | FONT = 21 | |
|
Module that reads font files.
|
static final int | SVG = 22 | |
|
Module that reads SVG files.
|
static final int | MARKDOWN = 23 | |
|
Module that reads/writes Markdown files.
|
static final int | CHM = 24 | |
|
Module that reads CHM files.
|
static final int | EPUB = 25 | |
|
Module that reads/writes EPUB files.
|
static final int | XML = 26 | |
|
Module that reads XML files.
|
static final int | XLSX = 27 | |
|
Module that writes XLSX files.
|
UNKNOWN = 0 | |
public static final int UNKNOWN |
-
The warning source is not specified.
LAYOUT = 1 | |
public static final int LAYOUT |
-
Module that builds a document layout.
DRAWING_ML = 2 | |
public static final int DRAWING_ML |
-
Module that renders DrawingML shapes.
OFFICE_MATH = 3 | |
public static final int OFFICE_MATH |
-
Module that renders OfficeMath.
SHAPES = 4 | |
public static final int SHAPES |
-
Module that renders ordinary shapes.
METAFILE = 5 | |
public static final int METAFILE |
-
Module that renders metafiles.
XPS = 6 | |
public static final int XPS |
-
Module that renders XPS.
PDF = 7 | |
public static final int PDF |
-
Module that renders PDF.
IMAGE = 8 | |
public static final int IMAGE |
-
Module that renders images.
DOCX = 9 | |
public static final int DOCX |
-
Module that reads/writes DOCX files.
DOC = 10 | |
public static final int DOC |
-
Module that reads/writes binary DOC files.
TEXT = 11 | |
public static final int TEXT |
-
Module that reads/writes plaintext files.
RTF = 12 | |
public static final int RTF |
-
Module that reads/writes RTF files.
WORD_ML = 13 | |
public static final int WORD_ML |
-
Module that reads/writes WML files.
NRX = 14 | |
public static final int NRX |
-
Common modules that are shared between DOCX/WML reader/writer modules.
ODT = 15 | |
public static final int ODT |
-
Module that reads/writes ODT files.
HTML = 16 | |
public static final int HTML |
-
Module that reads/writes HTML/MHTML files.
VALIDATOR = 17 | |
public static final int VALIDATOR |
-
Module that verifies model consistency and validity.
XAML = 18 | |
public static final int XAML |
-
Module that reads/writes Xaml files.
SVM = 19 | |
public static final int SVM |
-
Module that reads Svm files.
MATH_ML = 20 | |
public static final int MATH_ML |
-
Module that reads W3C MathML files.
FONT = 21 | |
public static final int FONT |
-
Module that reads font files.
SVG = 22 | |
public static final int SVG |
-
Module that reads SVG files.
MARKDOWN = 23 | |
public static final int MARKDOWN |
-
Module that reads/writes Markdown files.
CHM = 24 | |
public static final int CHM |
-
Module that reads CHM files.
EPUB = 25 | |
public static final int EPUB |
-
Module that reads/writes EPUB files.
XML = 26 | |
public static final int XML |
-
Module that reads XML files.
XLSX = 27 | |
public static final int XLSX |
-
Module that writes XLSX files.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.