net.sf.jsefa.xml.lowlevel.model
Class AttributeImpl

java.lang.Object
  extended by net.sf.jsefa.xml.lowlevel.model.AttributeImpl
All Implemented Interfaces:
Attribute

public final class AttributeImpl
extends Object
implements Attribute

Implementation of Attribute.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig

Constructor Summary
AttributeImpl(QName name, String value)
          Constructs a new AttributeImpl.
 
Method Summary
 QName getName()
          Returns the name of the attribute.
 String getValue()
          Returns the value of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeImpl

public AttributeImpl(QName name,
                     String value)
Constructs a new AttributeImpl.

Parameters:
name - the name of the attribute
value - the value of the attribute
Method Detail

getName

public QName getName()
Returns the name of the attribute.

Specified by:
getName in interface Attribute
Returns:
the attribute name

getValue

public String getValue()
Returns the value of the attribute.

Specified by:
getValue in interface Attribute
Returns:
the attribute value


Copyright © 2014. All rights reserved.