public abstract class RegistrySchemaGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug |
protected static boolean |
verbose |
protected static java.lang.String |
XS_NS |
protected static java.lang.String |
XS_PREFIX |
Constructor and Description |
---|
RegistrySchemaGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(org.w3c.dom.Document document,
org.w3c.dom.Element parent,
org.w3c.dom.Element item,
java.util.Set propertyNames) |
protected org.w3c.dom.Element |
createKey(org.w3c.dom.Document document,
java.lang.String name,
java.lang.String selector,
java.lang.String field) |
protected org.w3c.dom.Element |
createKeyRef(org.w3c.dom.Document document,
java.lang.String name,
java.lang.String refer,
java.lang.String selector,
java.lang.String field) |
protected org.w3c.dom.Element |
createType(org.w3c.dom.Document document,
org.w3c.dom.Element parent,
org.w3c.dom.Element propertyList,
java.util.Set propertyNames) |
protected static java.util.List |
findFilesContaining(java.io.File directory,
java.lang.String content) |
protected abstract org.w3c.dom.Document |
generateSchema(org.w3c.dom.Document registry) |
protected void |
generateSchema(java.io.File[] sources,
java.io.File target) |
protected org.w3c.dom.Document |
mergeDocuments(org.w3c.dom.Document[] registries) |
protected void |
serialize(org.w3c.dom.Document document,
java.io.File file) |
protected static final java.lang.String XS_PREFIX
protected static final java.lang.String XS_NS
protected static boolean verbose
protected static boolean debug
protected void generateSchema(java.io.File[] sources, java.io.File target) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected static java.util.List findFilesContaining(java.io.File directory, java.lang.String content) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected org.w3c.dom.Document mergeDocuments(org.w3c.dom.Document[] registries)
protected abstract org.w3c.dom.Document generateSchema(org.w3c.dom.Document registry) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
protected void serialize(org.w3c.dom.Document document, java.io.File file) throws java.io.FileNotFoundException, javax.xml.transform.TransformerException
java.io.FileNotFoundException
javax.xml.transform.TransformerException
protected org.w3c.dom.Element createType(org.w3c.dom.Document document, org.w3c.dom.Element parent, org.w3c.dom.Element propertyList, java.util.Set propertyNames)
protected void addAttribute(org.w3c.dom.Document document, org.w3c.dom.Element parent, org.w3c.dom.Element item, java.util.Set propertyNames)
protected org.w3c.dom.Element createKey(org.w3c.dom.Document document, java.lang.String name, java.lang.String selector, java.lang.String field)
protected org.w3c.dom.Element createKeyRef(org.w3c.dom.Document document, java.lang.String name, java.lang.String refer, java.lang.String selector, java.lang.String field)