net.sf.jsefa.xml.mapping
Class AttributeDescriptor

java.lang.Object
  extended by net.sf.jsefa.xml.mapping.AttributeDescriptor
All Implemented Interfaces:
NodeDescriptor<XmlNodeType>, XmlNodeDescriptor

public final class AttributeDescriptor
extends Object
implements XmlNodeDescriptor

Descriptor for an xml attribute.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig

Constructor Summary
AttributeDescriptor(QName name)
          Constructs a new AttributeDescriptor.
 
Method Summary
 boolean equals(Object obj)
          
 QName getName()
          Returns the name of the attribute.
 XmlNodeType getType()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDescriptor

public AttributeDescriptor(QName name)
Constructs a new AttributeDescriptor.

Parameters:
name - the name of the attribute
Method Detail

getType

public XmlNodeType getType()

Specified by:
getType in interface NodeDescriptor<XmlNodeType>
Returns:
the node type

getName

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

Returns:
the attribute name

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.