org.purl.sword.base
Class XmlName

java.lang.Object
  extended by org.purl.sword.base.XmlName

public class XmlName
extends Object

Author:
Neil Taylor (nst@aber.ac.uk)

Constructor Summary
XmlName(nu.xom.Attribute attribute)
           
XmlName(nu.xom.Element element)
           
XmlName(String prefix, String localName, String namespace)
          Create a new instance with the specified prefix and local name.
 
Method Summary
 boolean equals(Object other)
           
 String getLocalName()
          Get the local name.
 String getNamespace()
          Get the current namespace value.
 String getPrefix()
          Get the prefix.
 String getQualifiedName()
           
 void setLocalName(String localName)
          Set the local name.
 void setNamespace(String namespace)
          Set the namespace value.
 void setPrefix(String prefix)
          Set the prefix.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlName

public XmlName(String prefix,
               String localName,
               String namespace)
Create a new instance with the specified prefix and local name.

Parameters:
prefix - The namespace prefix.
localName - The element's local name.

XmlName

public XmlName(nu.xom.Element element)

XmlName

public XmlName(nu.xom.Attribute attribute)
Method Detail

getPrefix

public String getPrefix()
Get the prefix.

Returns:
the prefix

setPrefix

public void setPrefix(String prefix)
Set the prefix.

Parameters:
prefix - the prefix to set

getLocalName

public String getLocalName()
Get the local name.

Returns:
the localName

setLocalName

public void setLocalName(String localName)
Set the local name.

Parameters:
localName - the localName to set

getNamespace

public String getNamespace()
Get the current namespace value.

Returns:
the namespace

setNamespace

public void setNamespace(String namespace)
Set the namespace value.

Parameters:
namespace - the namespace to set

getQualifiedName

public String getQualifiedName()

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2009 The DSpace Foundation. All Rights Reserved.