GXPARSE hosted by SourceForge.net Logo

ca.gorman.xml.parse.toolkit
Class MutableAttribute

java.lang.Object
  extended by ca.gorman.xml.parse.toolkit.AbstractAttribute
      extended by ca.gorman.xml.parse.toolkit.MutableAttribute
All Implemented Interfaces:
Attribute

public class MutableAttribute
extends AbstractAttribute
implements Attribute

Constructable and mutable realization of Attribute. This class makes the contructors and setters of the base class visible to the public.


Constructor Summary
MutableAttribute()
           Create an uninitialized Attribute.
MutableAttribute(Attribute attribute)
           Create an initialized Attribute.
MutableAttribute(QName qName, String type)
           Create a named Attribute with unitialized value.
MutableAttribute(QName qName, String type, String value, boolean isDeclared, boolean isSpecified)
           Create an initialized Attribute.
 
Method Summary
 void setDeclared(boolean b)
           Indicate whether the attribute was declared..
 void setQName(QName qName)
           Set attribute name.
protected  void setSpecified(boolean b)
           Indicate whether the attribute value was provided from the input, rather than from a default value.
 void setType(String type)
           Set attribute type.
 void setValue(String value)
           Set attribute value.
 
Methods inherited from class ca.gorman.xml.parse.toolkit.AbstractAttribute
equals, getQName, getQuotableValue, getType, getValue, hashCode, isDeclared, isSpecified, newInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.gorman.xml.parse.Attribute
equals, getQName, getQuotableValue, getType, getValue, hashCode, isDeclared, isSpecified
 

Constructor Detail

MutableAttribute

public MutableAttribute(QName qName,
                        String type,
                        String value,
                        boolean isDeclared,
                        boolean isSpecified)

Create an initialized Attribute.


MutableAttribute

public MutableAttribute(Attribute attribute)

Create an initialized Attribute.


MutableAttribute

public MutableAttribute(QName qName,
                        String type)

Create a named Attribute with unitialized value.


MutableAttribute

public MutableAttribute()

Create an uninitialized Attribute.

Method Detail

setQName

public final void setQName(QName qName)
Description copied from class: AbstractAttribute

Set attribute name.

Overrides:
setQName in class AbstractAttribute

setType

public final void setType(String type)
Description copied from class: AbstractAttribute

Set attribute type.

Overrides:
setType in class AbstractAttribute

setValue

public final void setValue(String value)
Description copied from class: AbstractAttribute

Set attribute value.

Overrides:
setValue in class AbstractAttribute

setDeclared

public void setDeclared(boolean b)
Description copied from class: AbstractAttribute

Indicate whether the attribute was declared..

Overrides:
setDeclared in class AbstractAttribute

setSpecified

protected void setSpecified(boolean b)
Description copied from class: AbstractAttribute

Indicate whether the attribute value was provided from the input, rather than from a default value.

Overrides:
setSpecified in class AbstractAttribute

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License