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

ValueDescription
DATA_LOSS_CATEGORYSome text/char/image or other data will be missing from either the document tree following load, or from the created document following save.
DATA_LOSSGeneric data loss, no specific code.
MAJOR_FORMATTING_LOSS_CATEGORYThe resulting document or a particular location in it might look substantially different compared to the original document.
MAJOR_FORMATTING_LOSSGeneric major formatting loss, no specific code.
MINOR_FORMATTING_LOSS_CATEGORYThe resulting document or a particular location in it might look somewhat different compared to the original document.
MINOR_FORMATTING_LOSSGeneric minor formatting loss, no specific code.
FONT_SUBSTITUTIONFont has been substituted.
FONT_EMBEDDINGLoss of embedded font information during document saving.
UNEXPECTED_CONTENT_CATEGORYSome 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_CONTENTGeneric unexpected content, no specific code.
HINTAdvises of a potential problem or suggests an improvement.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of WarningType values.

Methods

SignatureDescription
getName(warningType: int) → StringReturns JAVA_STYLE string representation of integer WarningType value.
getNames(warningType: int) → Set<String>Returns string representation of integer WarningType value.
toString(warningType: int) → StringReturns DotNetStyle string representation of integer WarningType value.
toStringSet(attr: int) → StringReturns DotNetStyle string representation of integer WarningType value.
fromName(warningTypeName: String) → intReturns integer representation by WarningType name.
fromNames(warningTypeNames: Set<String>) → intReturns flags integer representation by WarningType names.
getValues() → int[]Returns array of WarningType values.

See Also