The Element Class

package org.jdom;

public class Element implements Serializable, Cloneable {

    protected String    name;
    protected Namespace namespace;
    protected Element   parent;
    protected boolean   isRootElement;
    protected List      attributes;
    protected List      content;

    protected Element() {}
    public    Element(String name, Namespace namespace) {}
    public    Element(String name) {}
    public    Element(String name, String uri) {}
    public    Element(String name, String prefix, String uri) {}

    public String     getName() {}
    public Namespace  getNamespace() {}
    public String     getNamespacePrefix() {}
    public String     getNamespaceURI() {}
    public String     getQualifiedName() {}
    
    public Element    getParent() {}
    protected Element setParent(Element parent) {}
    public boolean    isRootElement() {}
    protected Element setIsRootElement(boolean isRootElement) {}
    
    public String     getContent() {}
    public Element    setContent(String textContent) {}
    public boolean    hasMixedContent() {}
    public List       getMixedContent() {}
    public Element    setMixedContent(List mixedContent) {}
    public List       getChildren() {}
    public List       getChildren(String name, String uri) {}
    public List       getChildren(String name) {}
    public List       getChildren(String name, Namespace ns) {}
    public Element    setChildren(List children) {}
    public Element    getChild(String name, String uri) throws NoSuchElementException {}
    public Element    getChild(String name, Namespace ns) throws NoSuchElementException {}
    public Element    addChild(String text) {}
    public Element    addChild(Element element) {}
    public Element    addChild(Entity entity) {}
    public Element    addChild(ProcessingInstruction processingInstruction) {}
    public boolean    removeChild(ProcessingInstruction processingInstruction) {}
    public boolean    removeChild(Element element) {}
    public boolean    removeChild(Entity entity) {}
    public boolean    removeChild(String name, String uri) {}
    public boolean    removeChild(String name) {}
    public boolean    removeChild(String name, Namespace ns) {}
    public boolean    removeChildren(String name, String uri) {}
    public boolean    removeChildren(String name) {}
    public boolean    removeChildren(String name, Namespace ns) {}
    public boolean    removeChildren() {}
    public Element    addChild(Comment comment) {}
    public boolean    removeChild(Comment comment) {}
    public List       getAttributes() {}
    public Attribute  getAttribute(String name, String uri) throws NoSuchAttributeException {}
    public Attribute  getAttribute(String name) throws NoSuchAttributeException {}
    public Attribute  getAttribute(String name, Namespace ns) throws NoSuchAttributeException {}
    public Element    setAttributes(List attributes) {}
    public Element    addAttribute(Attribute attribute) {}
    public Element    addAttribute(String name, String value) {}
    public void       removeAttribute(String name, String uri) {}
    public void       removeAttribute(String name) {}
    public void       removeAttribute(String name, Namespace ns) {}
    
    public Element    getCopy(String name, Namespace ns) {}
    public Element    getCopy(String name, String uri) {}
    public Element    getCopy(String name, String prefix, String uri) {}

    /////////////////////////////////////////////////////////////////
    // Basic Utility Methods
    ///////////////////////////////////////////////////////////////// 
    public final String  toString() {}
    public final String  getSerializedForm() {}
    public final boolean equals(Object ob) {}
    public final int     hashCode() {}
    public final Object  clone() {}

    /////////////////////////////////////////////////////////////////
    // Convenience Methods below here
    /////////////////////////////////////////////////////////////////

    public int     getIntContent(int defaultValue) {}
    public int     getIntContent() throws DataConversionException {}
    public long    getLongContent(long defaultValue) {}
    public long    getLongContent() throws DataConversionException {}
    public float   getFloatContent(float defaultValue) {}
    public float   getFloatContent() throws DataConversionException {}
    public double  getDoubleContent(double defaultValue) {}
    public double  getDoubleContent() throws DataConversionException {}
    public boolean getBooleanContent(boolean defaultValue) {}
    public boolean getBooleanContent() throws DataConversionException {}
    public char    getCharContent(char defaultValue) {}
    public char    getCharContent() throws DataConversionException {}

}


Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified June 19, 2000