public class XMLDocument extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected XMLToken |
cacheToken |
protected XMLContext |
context |
protected XMLScanner |
lexer |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
XMLDocument() |
XMLDocument(XMLContext context)
Creates a new instance of XMLDocument
|
| Modifier and Type | Method and Description |
|---|---|
int |
find(String str,
int fromIndex,
boolean caseSensitive)
Find the first occurrence of the specified String starting at the specified index.
|
XMLToken |
getScannerStart(int pos)
Return XMLToken
|
void |
insertString(int offset,
String str,
AttributeSet a) |
void |
remove(int offs,
int len) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockprotected XMLScanner lexer
protected XMLContext context
protected XMLToken cacheToken
public XMLDocument()
public XMLDocument(XMLContext context)
context - XMLContextpublic XMLToken getScannerStart(int pos) throws BadLocationException
pos - positionBadLocationExceptionpublic void insertString(int offset,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionpublic void remove(int offs,
int len)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionpublic int find(String str, int fromIndex, boolean caseSensitive) throws BadLocationException
str - String to findfromIndex - caseSensitive - true or falseBadLocationException - if fromIndex was not a valid part of the documentCopyright © 2000–2017 Apache Software Foundation. All rights reserved.