public class WarningInfoCollection extends java.lang.Object implements IWarningCallback, java.lang.Iterable
WarningInfo objects.
To learn more, visit the Programming with Documents documentation article.
You can use this collection object as the simplest form of IWarningCallback implementation to gather all warnings that Aspose.Words generates during a load or save operation. Create an instance of this class and assign it to the LoadOptions.getWarningCallback() / LoadOptions.setWarningCallback(com.aspose.words.IWarningCallback) or DocumentBase.getWarningCallback() / DocumentBase.setWarningCallback(com.aspose.words.IWarningCallback) property.
WarningInfo,
IWarningCallback| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all elements from the collection.
|
WarningInfo |
get(int index)
Gets an item at the specified index.
|
int |
getCount()
Gets the number of elements contained in the collection.
|
java.util.Iterator |
iterator()
Returns an iterator object that can be used to iterate over all items in the collection.
|
void |
warning(WarningInfo info)
Implements the
IWarningCallback interface. |
public int getCount()
public WarningInfo get(int index)
index - Zero-based index of the item.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic void clear()
public void warning(WarningInfo info)
IWarningCallback interface. Adds a warning to this collection.warning in interface IWarningCallback