|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.apl.jxc.XMLSchema
public class XMLSchema
Provides methods for interrogating a W3C XML schema.
Constructor Summary | |
---|---|
XMLSchema(java.io.File file)
Constructs a new XMLSchema. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getChildPaths(java.lang.String elementName)
Returns the child elements and attributes for a given element (i.e. |
javax.swing.tree.TreeModel |
getChildTree(java.lang.String elementName)
Returns a TreeModel of all of child elements and attributes for a given element (i.e. |
java.lang.String |
getDocumentNSPrefix()
Returns the XML schema documents name space prefix. |
java.util.Set<java.lang.String> |
getElementNames()
Returns a set of all element names valid in the XML schema in alphabetical order. |
int |
getRecursion()
Returns the number of times recursive elements will be included. |
java.util.Set<java.lang.String> |
getTopLevelElementNames()
Returns a list of the top level element names in alphabetical order. |
void |
setDocumentNSPrefix(java.lang.String documentNSPrefix)
Sets the XML schema documents name space prefix. |
void |
setRecursion(int recursion)
Sets the number of times to include recursive elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLSchema(java.io.File file) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException
file
- an XSD file containing the XML schema
org.xml.sax.SAXException
- when an error occurs parsing the schema file
java.io.IOException
- when an error occurs reading the schema file
javax.xml.parsers.ParserConfigurationException
- when a parser configuration error occurs
javax.xml.transform.TransformerConfigurationException
- when a transformer configuration error occurs
javax.xml.transform.TransformerException
Method Detail |
---|
public void setRecursion(int recursion)
recursion
- the number of times to recursepublic int getRecursion()
public java.util.Set<java.lang.String> getTopLevelElementNames()
public java.util.Set<java.lang.String> getElementNames()
public java.util.Set<java.lang.String> getChildPaths(java.lang.String elementName)
elementName
- name of the element whose children should be returned
public javax.swing.tree.TreeModel getChildTree(java.lang.String elementName)
elementName
- name of the element whose children should be returned
public void setDocumentNSPrefix(java.lang.String documentNSPrefix)
documentNSPrefix
- the schema documents name space prefixpublic java.lang.String getDocumentNSPrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |