public final class FootnoteSweeper extends Object implements ValidateHook
Modifier and Type | Field and Description |
---|---|
static Name |
A_ELEM |
static Name |
APPENDICES_ELEM |
static Name |
APPENDIX_ELEM |
static Name |
BACKMATTER_ELEM |
static Name |
BOOK_ELEM |
static Name |
CHAPTER_ELEM |
static Name |
CLASS_ATTR |
static Name |
DIV_ELEM |
static Name |
EBOOK_HEAD_ELEM |
static Namespace |
EBOOK_NS |
static Name |
EBOOK_TITLE_ELEM |
static Name |
FRONTMATTER_ELEM |
static Name |
HEADCOMMON_ELEM |
static Name |
HREF_ATTR |
static Name |
ID_ATTR |
static Name |
INDEX_ELEM |
static Name |
LOE_ELEM |
static Name |
LOF_ELEM |
static Name |
LOT_ELEM |
static Name |
LOX_ELEM |
static Name |
PAGENAME_ATTR |
static Name |
PART_ELEM |
static Name |
SAMEPAGE_ATTR |
static Name |
SECTION_ELEM |
static Name |
SPAN_ELEM |
static Name |
TOC_ELEM |
Constructor and Description |
---|
FootnoteSweeper() |
Modifier and Type | Method and Description |
---|---|
void |
checkingDocument(Document doc,
Reason reason,
URL saveAsURL)
Invoked before a document conforming to a schema is validated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
documentChecked
public static final Namespace EBOOK_NS
public static final Name BOOK_ELEM
public static final Name PART_ELEM
public static final Name APPENDICES_ELEM
public static final Name CHAPTER_ELEM
public static final Name APPENDIX_ELEM
public static final Name SECTION_ELEM
public static final Name FRONTMATTER_ELEM
public static final Name BACKMATTER_ELEM
public static final Name TOC_ELEM
public static final Name LOT_ELEM
public static final Name LOF_ELEM
public static final Name LOE_ELEM
public static final Name LOX_ELEM
public static final Name INDEX_ELEM
public static final Name HEADCOMMON_ELEM
public static final Name EBOOK_HEAD_ELEM
public static final Name EBOOK_TITLE_ELEM
public static final Name PAGENAME_ATTR
public static final Name SAMEPAGE_ATTR
public static final Name DIV_ELEM
public static final Name A_ELEM
public static final Name SPAN_ELEM
public static final Name CLASS_ATTR
public static final Name HREF_ATTR
public static final Name ID_ATTR
public void checkingDocument(Document doc, Reason reason, URL saveAsURL)
ValidateHook
Document validation can occur at user's will but also automatically after a document has been created or opened and also before a document is saved.
If this hook modifies the document, it must be careful to
use Document.beginEdit()
/
Document.endEdit()
if needed to.
If this hook modifies the document, it is recommended that it describes to the UndoManager what it has done by adding a label to topmost undo action.
Receiving this notification guarantees that
ValidateHook.documentChecked(com.xmlmind.xml.doc.Document, boolean, com.xmlmind.xml.validate.Diagnostic[])
will also being invoked and this, even if
document validation has been canceled by the application.
checkingDocument
in interface ValidateHook
doc
- document that is to be checked for validityreason
- the reason why this method is being invoked;
null
if unknownsaveAsURL
- the new location of the document;
null
if reason!=SAVE_AS
.UndoManager