cashew-s-editor-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CASHeW-s-editor-patches] XML Base Patch


From: Andrew John Hughes
Subject: [CASHeW-s-editor-patches] XML Base Patch
Date: Sat, 9 Apr 2005 02:29:08 +0100
User-agent: Mutt/1.5.6+20040907i

I'm committing the attached patch to add support for XML Base to our RDF
handler (http://www.w3.org/TR/xmlbase/).  This also adds a pair type, which
I created and then didn't need...  No doubt it will come in useful somewhere.

Changelog:

2005-04-09  Andrew John Hughes  <address@hidden>

        * lib/Makefile.am:
        Added creation of xml.jar.
        * src/nongnu/cashews/commons/Pair.java:
        Free heterogenous pair type at no extra cost...
        (left): New field.
        (right): New field.
        (Pair(A,B)): New constructor.
        (setLeft(A)): New method.
        (setRight(B)): New method.
        (getLeft()): New method.
        (getRight()): New method.
        * src/nongnu/cashews/rdf/XMLParser.java:
        (rdfHandler): New field.
        (XMLParser(java.util.logging.Handler)):
        Retain a reference to the handler.
        (parse(String)): Links to parse(org.xml.sax.InputSource).
        (parse(org.xml.sax.InputSource): Set the base URI from the system ID.
        (RDFHandler): Use XmlBaseHandler as superclass.
        (RDFHandler.rdfLogger): Renamed from logger.
        (RDFHandler.RDFHandler(java.util.logging.Handler)): Call superclass.
        (RDFHandler.startDocument()): Likewise.
        (RDFHandler.startElement(String,String,String,org.xml.sax.Attributes)):
        Likewise.
        (RDFHandler.characters(char[],int,int)): Likewise.
        (RDFHandler.endElement(String,String,String)): Likewise.
        * src/nongnu/cashews/xml/XmlBaseHandler.java:
        New class.
        (XML_NAMESPACE): New constant.
        (uris): New field.
        (xmlBaseLogger): New field.
        (level): New field.
        (lastElement): New field.
        (lastLevel): New field.
        (XmlBaseHandler(java.util.logging.Handler)): New method.
        (setBaseURI(String)): New method.
        (startDocument()): New method.
        (startElement(String,String,String,org.xml.sax.Attributes)):
        New method.
        (endElement(String,String,String)): New method.
        (pushURI(String)): New method.
        (popURI()): New method.
        (getBaseURI()): New method.
        (getHierarchicalLevel()): New method.
        (logAttributes(org.xml.sax.Attributes)): New method.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

Attachment: base.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]