|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.parsers.XMLParser org.apache.xerces.parsers.AbstractXMLDocumentParser org.apache.xerces.parsers.AbstractDOMParser org.apache.xerces.parsers.DOMParser org.alltimeflashdreamer.util.xml.XMLDataHandler org.alltimeflashdreamer.filelister.xml.FileListerXMLHandler
Title: FileListerXMLHandler
Description: This is the parser and writer class for reading and writing the FileLister configuration XML file.
Organization: All Time Flash Dreamer
Field Summary | |
static String |
CONFIGFILE
name of FileLister's configuration file |
Fields inherited from class org.alltimeflashdreamer.util.xml.XMLDataHandler |
ISVALIDATING, USECATALOGRESOLVER |
Fields inherited from class org.apache.xerces.parsers.DOMParser |
SYMBOL_TABLE, XMLGRAMMAR_POOL |
Fields inherited from class org.apache.xerces.parsers.AbstractDOMParser |
CORE_DOCUMENT_CLASS_NAME, CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fBaseURIStack, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentEntityDecl, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDeferredEntityDecl, fDocument, fDocumentClassName, fDocumentImpl, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fDOMFilter, fErrorHandler, fFilterReject, fFirstChunk, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDocument, fInDTD, fInDTDExternalSubset, fInternalSubset, fNamespaceAware, fRejectedElement, fSkippedElemStack, fStorePSVI, fStringBuffer, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, PSVI_DOCUMENT_CLASS_NAME |
Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
fDocumentSource, fDTDContentModelSource, fDTDSource |
Fields inherited from class org.apache.xerces.parsers.XMLParser |
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration |
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler |
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler |
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
Constructor Summary | |
FileListerXMLHandler(File xmlFile,
boolean bLoadDefaults)
Calls the superclass' constructor and initializes the internal objects JDBC, directory, index, system, link and zip, each representing one of the major sections in the xml file and being fully configured with the values of its section. |
Method Summary | |
Object[][] |
getData()
Returns a list of key/value pairs, ordered as follows: jdbc, directory, system, index, link, zip. |
String[] |
getDescriptions()
Returns a list of description texts (same order as the getData elements). |
Directory |
getDirectory()
Returns the directory element within the config file. |
Index |
getIndex()
Returns the index element within the config file. |
JDBC |
getJDBC()
Returns the jdbc element within the config file. |
Link |
getLink()
Returns the link element within the config file. |
System |
getSystem()
Returns the system element within the config file. |
Zip |
getZip()
Returns the zip element within the config file. |
void |
save(FileListerTableModel model)
Reads all the values of the given model and updates the DOM. |
Methods inherited from class org.alltimeflashdreamer.util.xml.XMLDataHandler |
cloneDocument, getAttributeValue, getChildNode, getFile, getFirstChildElement, getFirstChildNode, getFirstLevelNodes, getFirstText, getFirstTextString, getNodeByName, getNodeNames, getNodeNames, getRootNode, getUniqueElement, isFileChanged, reload, removeCatalog, write, write, write, write, write |
Methods inherited from class org.apache.xerces.parsers.DOMParser |
getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setEntityResolver, setErrorHandler, setFeature, setProperty |
Methods inherited from class org.apache.xerces.parsers.AbstractDOMParser |
abort, attributeDecl, characters, comment, createAttrNode, createElementNode, doctypeDecl, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getDocument, getDocumentClassName, handleBaseURI, handleBaseURI, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, reset, setCharacterData, setDocumentClassName, setLocale, startAttlist, startCDATA, startConditional, startDocument, startDTD, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, textDecl, unparsedEntityDecl, xmlDecl |
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
any, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup |
Methods inherited from class org.apache.xerces.parsers.XMLParser |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONFIGFILE
Constructor Detail |
public FileListerXMLHandler(File xmlFile, boolean bLoadDefaults) throws IOException, SAXException
xmlFile
- the file to be parsedbLoadDefaults
- whether to load the default values or not
IOException
- thrown on file access
SAXException
- thrown on parsing of the config fileMethod Detail |
public Object[][] getData()
public String[] getDescriptions()
public void save(FileListerTableModel model) throws IOException, FileListerException
model
- the model containing the modified data
IOException
- if the writing failed somehow
FileListerException
- if a change in the configuration isn't allowedpublic JDBC getJDBC()
public Directory getDirectory()
public Index getIndex()
public System getSystem()
public Link getLink()
public Zip getZip()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |