Package | Description |
---|---|
uk.ac.sheffield.jast |
Readers for parsing XML to Java and writers for serialising Java to XML.
|
uk.ac.sheffield.jast.build |
Builders for constructing Java syntax trees by call-back from an XML parser.
|
uk.ac.sheffield.jast.test |
Test programs to demonstrate the use of these XML processing tools.
|
uk.ac.sheffield.jast.xml |
Types that model the DOM-tree nodes of an XML document object model.
|
Modifier and Type | Field and Description |
---|---|
protected Document |
XMLReader.document
The top-level Document constructed by this reader.
|
Modifier and Type | Method and Description |
---|---|
Document |
XMLReader.readDocument()
Parses XML data from the input source and creates a classic Java XML
syntax tree.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLReader.validate(Document document)
Validates the Document using its own XMLSchema.
|
void |
XMLWriter.writeDocument(Document document)
Writes a Document to an XML output file or stream.
|
Modifier and Type | Field and Description |
---|---|
private Document |
XMLBuilder.document
The top-level Document constructed by this builder.
|
Modifier and Type | Method and Description |
---|---|
Document |
XMLBuilder.getDocument()
Returns the document that was built by this XMLBuilder.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLBuilder.validate(Document document)
Validates the Document using its own XMLSchema.
|
Modifier and Type | Field and Description |
---|---|
private static Document |
TestXPathMatcher.document |
Modifier and Type | Class and Description |
---|---|
class |
XMLSchema
XMLSchema is a kind of document denoting an XML Schema Definition (XSD).
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.addContent(Content node)
Adds a Content node to this Document.
|
Document |
Document.clone()
Clones this Document node.
|
private Document |
Document.deepCopy(Document other)
Secret method to deep copy a partly-cloned Document.
|
Document |
Content.getDocument()
Returns the Document associated with this Content node.
|
Document |
Document.setDeclaration(Declaration declaration)
Sets the XML declaration associated with this Document.
|
Document |
Document.setDoctype(Doctype doctype)
Sets the optional XML Doctype associated with this Document.
|
Document |
Document.setEncoding(java.lang.String encoding)
Sets the character encoding associated with this Document.
|
Document |
Document.setRootElement(Element root)
Sets the root Element of this Document.
|
Document |
Document.setVersion(java.lang.String version)
Sets the XML version associated with this Document.
|
Modifier and Type | Method and Description |
---|---|
boolean |
XMLSchema.accept(Document document)
Reports whether this XMLSchema accepts a given Document as valid.
|
boolean |
Doctype.accept(Document document)
Reports whether this Doctype accepts a given Document as valid.
|
private Document |
Document.deepCopy(Document other)
Secret method to deep copy a partly-cloned Document.
|
void |
XMLSchema.validate(Document document)
Validates a given Document, raising a SemanticError if it is invalid.
|
void |
Doctype.validate(Document document)
Validates a given Document, raising a SemanticError if it is invalid.
|
Constructor and Description |
---|
XMLSchema(Document document)
Creates an XMLSchema from an existing Document.
|