The Attribute Class

package org.jdom;

public class Attribute implements Serializable, Cloneable {

    protected String    name;
    protected Namespace namespace;
    protected String    value;
    protected Element   parent;

    protected Attribute()
    public    Attribute(String name, String value)
    public    Attribute(String name, String value, Namespace namespace)

    public String    getName()
    public Attribute setName(String name)
    public String    getQualifiedName()
    public String    getNamespacePrefix()
    public String    getNamespaceURI()
    public Namespace getNamespace()
    public String    getValue()
    public Attribute setValue(String value)
    protected Attribute setParent(Element parent)
    
    public Attribute detach()

    /////////////////////////////////////////////////////////////////
    // Basic Utility Methods
    /////////////////////////////////////////////////////////////////

    public final String  toString()
    public final boolean equals(Object ob)
    public final int     hashCode()
    public final Object  clone()

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

    public int     getIntValue() throws DataConversionException
    public long    getLongValue() throws DataConversionException
    public float   getFloatValue() throws DataConversionException
    public double  getDoubleValue() throws DataConversionException
    public boolean getBooleanValue() throws DataConversionException
    
}

Previous | Next | Top | Cafe con Leche

Copyright 2000-2003 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified April 21, 2002