[Jsxe-cvs] SF.net SVN: jsxe: [988] branches/jsxe2/src/net/sourceforge/jsxe/dom
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-07-06 16:51:46
|
Revision: 988 Author: ian_lewis Date: 2006-07-06 09:51:38 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/jsxe/?rev=988&view=rev Log Message: ----------- XMLElement will now compile; AdapterNode is not deprecated to avoid so many warnings Modified Paths: -------------- branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNodeListener.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocument.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocumentEvent.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLException.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNodeListener.java Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java 2006-07-06 16:51:38 UTC (rev 988) @@ -62,7 +62,6 @@ * @version $Id$ * @see XMLDocument * @see XMLDocument#addAdapterNode(AdapterNode, String, String, short) - * @deprecated */ public class AdapterNode { Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNodeListener.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNodeListener.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNodeListener.java 2006-07-06 16:51:38 UTC (rev 988) @@ -46,9 +46,6 @@ //}}} -/** - * @deprecated - */ public interface AdapterNodeListener { //{{{ nodeAdded() Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocument.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocument.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocument.java 2006-07-06 16:51:38 UTC (rev 988) @@ -999,7 +999,7 @@ * in the event that specs that will alter how the document is serialized or * parsed are changed. * @param location the location of the change. null if unknown - * @deprecated structureCHange + * @deprecated use fireInsert() or fireRemove() instead. */ protected void fireStructureChanged(AdapterNode location) { ListIterator iterator = listeners.listIterator(); Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocumentEvent.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocumentEvent.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLDocumentEvent.java 2006-07-06 16:51:38 UTC (rev 988) @@ -35,7 +35,7 @@ * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) * @version $Id$ * @see XMLDocument - * @since jsXe 0.5 pre1 + * @since jsXe 0.5 pre2 */ public abstract class XMLDocumentEvent { Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java 2006-07-06 16:51:38 UTC (rev 988) @@ -35,7 +35,7 @@ * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) * @version $Id$ * @see XMLDocument - * @since jsXe 0.5 pre1 + * @since jsXe 0.5 pre2 */ public class XMLElement extends XMLNode { @@ -43,11 +43,28 @@ /** * Creates a new XMLElement * @param document the document that owns this element + * @param localName the local name of the element. */ - XMLElement(XMLDocument document) { + XMLElement(XMLDocument document, String localName) throws XMLException { + super(document); + setLocalName(localName); m_attributes = new HashMap(); }//}}} + //{{{ XMLElement constructor + /** + * Creates a new XMLElement + * @param document the document that owns this element + * @param prefix the namespace prefix for this element + * @param localName the local name of the element. + */ + XMLElement(XMLDocument document, String prefix, String localName) throws XMLException { + super(document); + setNSPrefix(prefix); + setLocalName(localName); + m_attributes = new HashMap(); + }//}}} + //{{{ getAttributes() /** * Returns a HashMap of attribute names to XMLAttribute objects. @@ -56,6 +73,17 @@ return m_attributes; }//}}} + //{{{ getNodeType() + public int getNodeType() { + return ELEMENT_NODE; + }//}}} + + //{{{ setLocalName() + public void setLocalName(String localName) throws XMLException { + //TODO: error checking for invalid name + super.setLocalName(localName); + }//}}} + //{{{ Private Members private HashMap m_attributes; //}}} Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLException.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLException.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLException.java 2006-07-06 16:51:38 UTC (rev 988) @@ -35,7 +35,7 @@ * @version $Id$ * @see XMLDocument * @see XMLNode - * @since jsXe 0.5 pre1 + * @since jsXe 0.5 pre2 */ public class XMLException extends RuntimeException { Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java 2006-07-06 16:51:38 UTC (rev 988) @@ -50,7 +50,7 @@ * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) * @version $Id$ * @see XMLDocument - * @since jsXe 0.5 pre1 + * @since jsXe 0.5 pre2 */ public abstract class XMLNode { Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNodeListener.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNodeListener.java 2006-07-05 18:50:43 UTC (rev 987) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNodeListener.java 2006-07-06 16:51:38 UTC (rev 988) @@ -31,7 +31,7 @@ * * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) * @version $Id$ - * @since jsXe 0.5 pre1 + * @since jsXe 0.5 pre2 * @see XMLDocument */ public interface XMLNodeListener { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |