|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.util.xml.XMLConfig
public class XMLConfig
A class that can be used to configure the XML tools for a particular application or set of applications. It provides factory methods and information that affects the behaviour of the XML tools.
Field Summary | |
---|---|
protected ClassFinder |
defaultClassFinder
|
protected ClassSyntax |
defaultClassSyntax
|
protected FileSyntaxManager |
defaultFileSyntaxManager
|
protected XMLTranslator |
defaultXMLTranslator
|
protected java.lang.String |
homeNameSpaceURI
|
protected java.lang.String |
SAXDriverClass
|
Constructor Summary | |
---|---|
XMLConfig()
|
Method Summary | |
---|---|
void |
addImport(java.lang.String name)
Adds an import in the default ClassFinder. |
ClassFinder |
defaultClassFinder()
|
ClassSyntax |
defaultClassSyntax()
|
FileSyntaxManager |
defaultFileSyntaxManager()
|
XMLTranslator |
defaultXMLTranslator()
|
org.jdom.Namespace |
getHomeNamespace()
|
ClassFinder |
makeClassFinder()
|
ClassSyntax |
makeClassSyntax(ClassFinder finder)
|
protected void |
makeDefaultInstances()
|
FileSyntaxManager |
makeFileSyntaxManager()
|
org.jdom.output.XMLOutputter |
makePrettyXMLOutputter()
Constructs a JDOM XMLOutputter that outputs a JDOM Document in a nicely indented fashion. |
org.jdom.input.SAXBuilder |
makeSAXBuilder()
Constructs a JDOM SAXBuilder. |
javax.swing.JMenu |
makeTreeEditorLookAtMenu(XMLTreeEditFrame frame)
|
XMLTranslator |
makeXMLTranslator()
|
XMLTranslator |
makeXMLTranslator(ClassSyntax syntax)
|
java.lang.String |
SAXDriverClass()
Returns the class name of the SAX parser that should be used by the XML.parseXML methods. |
void |
setHomeNamespaceURI(java.lang.String uri)
|
void |
setSAXDriverClass(java.lang.String name)
|
java.lang.Class[] |
treeEditorTemplateClassRoots()
|
java.util.List |
xmlSyntaxClasses(ClassSyntax classSyntax,
java.lang.Class rootClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassFinder defaultClassFinder
protected ClassSyntax defaultClassSyntax
protected XMLTranslator defaultXMLTranslator
protected FileSyntaxManager defaultFileSyntaxManager
protected java.lang.String homeNameSpaceURI
protected java.lang.String SAXDriverClass
Constructor Detail |
---|
public XMLConfig()
Method Detail |
---|
public ClassFinder makeClassFinder()
public ClassSyntax makeClassSyntax(ClassFinder finder)
public XMLTranslator makeXMLTranslator(ClassSyntax syntax)
public XMLTranslator makeXMLTranslator()
public FileSyntaxManager makeFileSyntaxManager()
protected void makeDefaultInstances()
public ClassFinder defaultClassFinder()
public ClassSyntax defaultClassSyntax()
public XMLTranslator defaultXMLTranslator()
public FileSyntaxManager defaultFileSyntaxManager()
public void addImport(java.lang.String name)
public org.jdom.Namespace getHomeNamespace()
public void setHomeNamespaceURI(java.lang.String uri)
public java.lang.String SAXDriverClass()
XML.parseXML
methods.
public void setSAXDriverClass(java.lang.String name)
public org.jdom.input.SAXBuilder makeSAXBuilder()
public org.jdom.output.XMLOutputter makePrettyXMLOutputter()
XMLConfig conf = ...; XMLOutputter outputter = conf.makePrettyXMLOutputter() outputter.output(doc, System.out); System.out.flush();The outputter has 1 space indent and newlines=true
public java.lang.Class[] treeEditorTemplateClassRoots()
public javax.swing.JMenu makeTreeEditorLookAtMenu(XMLTreeEditFrame frame)
public java.util.List xmlSyntaxClasses(ClassSyntax classSyntax, java.lang.Class rootClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |