[Jsxe-cvs] SF.net SVN: jsxe: [901] branches/jsxe2
Status: Inactive
Brought to you by:
ian_lewis
|
From: <ian...@us...> - 2006-06-05 23:51:26
|
Revision: 901 Author: ian_lewis Date: 2006-06-03 23:06:10 -0700 (Sat, 03 Jun 2006) ViewCVS: http://svn.sourceforge.net/jsxe/?rev=901&view=rev Log Message: ----------- added XMLElement to model element nodes Modified Paths: -------------- branches/jsxe2/Changelog branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java Added Paths: ----------- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java Modified: branches/jsxe2/Changelog =================================================================== --- branches/jsxe2/Changelog 2006-06-04 01:54:23 UTC (rev 900) +++ branches/jsxe2/Changelog 2006-06-04 06:06:10 UTC (rev 901) @@ -1,3 +1,7 @@ +06/04/2006 Ian Lewis <Ian...@me...> + + * XMLElement was added to model element nodes + 06/03/2006 Ian Lewis <Ian...@me...> * Added the XMLException class for use in handling XML errors Added: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java (rev 0) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java 2006-06-04 06:06:10 UTC (rev 901) @@ -0,0 +1,62 @@ +/* +XMLElement.java +:tabSize=4:indentSize=4:noTabs=true: +:folding=explicit:collapseFolds=1: + +Copyright (C) 2006 Ian Lewis (Ian...@me...) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +Optionally, you may find a copy of the GNU General Public License +from http://www.fsf.org/copyleft/gpl.txt +*/ + +package net.sourceforge.jsxe.dom; + +//{{{ Imports +import java.util.HashMap; +//}}} + +/** + * The XMLElement class represents an element in the XMLDocument tree. It allows + * attibute modifications which will translate to text modifications in the + * XMLDocument. + * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) + * @version $Id$ + * @see XMLDocument + * @since jsXe 0.5 pre1 + */ +public class XMLElement extends XMLNode { + + //{{{ XMLElement constructor + /** + * Creates a new XMLElement + * @param document the document that owns this element + */ + XMLElement(XMLDocument document) { + m_attributes = new HashMap(); + }//}}} + + //{{{ getAttributes() + /** + * Returns a HashMap of attribute names to XMLAttribute objects. + */ + public HashMap getAttributes() { + return m_attributes; + }//}}} + + //{{{ Private Members + private HashMap m_attributes; + //}}} +} Property changes on: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLElement.java ___________________________________________________________________ Name: svn:executable + * Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java 2006-06-04 01:54:23 UTC (rev 900) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/XMLNode.java 2006-06-04 06:06:10 UTC (rev 901) @@ -43,7 +43,7 @@ /** * <p>The XMLNode class is meant to represent an XMLNode in a XMLDocument tree * but also as a section of text within that document tree. It - * allows tree and attribute modifications only, however these modifications + * allows tree modifications only, however these modifications * will correspond to text modifications to the XMLDocument. Direct text * modifications are only allowed at the XMLDocument level.</p> * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |