freemind.modes.browsemode
Class BrowseXMLElement

java.lang.Object
  extended byfreemind.main.XMLElement
      extended byfreemind.modes.browsemode.BrowseXMLElement

public class BrowseXMLElement
extends XMLElement


Field Summary
 
Fields inherited from class freemind.main.XMLElement
ignoreCase, NANOXML_MAJOR_VERSION, NANOXML_MINOR_VERSION
 
Constructor Summary
BrowseXMLElement(FreeMindMain frame)
           
 
Method Summary
 void addChild(XMLElement child)
          Adds a child element.
protected  void completeElement()
           
protected  XMLElement createAnotherElement()
          Creates a new similar XML element.
 BrowseNodeModel getMapChild()
           
 java.lang.Object getUserObject()
           
 void setAttribute(java.lang.String name, java.lang.Object value)
          Adds or modifies an attribute.
 void setName(java.lang.String name)
          Changes the name of the element.
 
Methods inherited from class freemind.main.XMLElement
addProperty, addProperty, addProperty, checkCDATA, checkLiteral, countChildren, enumerateAttributeNames, enumerateChildren, enumeratePropertyNames, expectedInput, getAttribute, getAttribute, getAttribute, getBooleanAttribute, getChildren, getContent, getContents, getDoubleAttribute, getDoubleAttribute, getDoubleAttribute, getIntAttribute, getIntAttribute, getIntAttribute, getIntProperty, getLineNr, getName, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getSpecialDoubleProperty, getSpecialIntProperty, getStringAttribute, getStringAttribute, getStringAttribute, getStringProperty, getTagName, invalidValue, invalidValueSet, parseCharArray, parseCharArray, parseFromReader, parseFromReader, parseString, parseString, parseString, parseString, readChar, removeAttribute, removeChild, removeChild, removeProperty, resolveEntity, scanElement, scanIdentifier, scanPCData, scanString, scanWhitespace, scanWhitespace, setContent, setDoubleAttribute, setIntAttribute, setTagName, skipComment, skipSpecialTag, syntaxError, toString, unexpectedEndOfData, unknownEntity, unreadChar, write, write, writeClosingTag, writeEncoded, writeWithoutClosingTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowseXMLElement

public BrowseXMLElement(FreeMindMain frame)
Method Detail

createAnotherElement

protected XMLElement createAnotherElement()
Description copied from class: XMLElement
Creates a new similar XML element.

You should override this method when subclassing XMLElement.

Overrides:
createAnotherElement in class XMLElement

getUserObject

public java.lang.Object getUserObject()
Overrides:
getUserObject in class XMLElement

getMapChild

public BrowseNodeModel getMapChild()

setName

public void setName(java.lang.String name)
Description copied from class: XMLElement
Changes the name of the element.

Overrides:
setName in class XMLElement
Parameters:
name - The new name.
Preconditions:
  • name != null
  • name is a valid XML identifier
See Also:
nanoxml.XMLElement#getName()

addChild

public void addChild(XMLElement child)
Description copied from class: XMLElement
Adds a child element.

Overrides:
addChild in class XMLElement
Parameters:
child - The child element to add.
Preconditions:
  • child != null
  • child.getName() != null
  • child does not have a parent element
Postconditions:
  • countChildren() => old.countChildren() + 1
  • enumerateChildren() => old.enumerateChildren() + child
  • getChildren() => old.enumerateChildren() + child
See Also:
nanoxml.XMLElement#countChildren(), nanoxml.XMLElement#enumerateChildren(), nanoxml.XMLElement#getChildren(), removeChild(XMLElement)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Description copied from class: XMLElement
Adds or modifies an attribute.

Overrides:
setAttribute in class XMLElement
Parameters:
name - The name of the attribute.
value - The value of the attribute.
Preconditions:
  • name != null
  • name is a valid XML identifier
  • value != null
Postconditions:
  • enumerateAttributeNames() => old.enumerateAttributeNames() + name
  • getAttribute(name) => value
See Also:
setDoubleAttribute(String, double), setIntAttribute(String, int), nanoxml.XMLElement#enumerateAttributeNames(), getAttribute(String), getAttribute(String, Object), getAttribute(String, Hashtable, String, boolean), getStringAttribute(String), getStringAttribute(String, String), getStringAttribute(String, Hashtable, String, boolean)

completeElement

protected void completeElement()
Overrides:
completeElement in class XMLElement