dk.brics.xsugar.stylesheet
Class QName

java.lang.Object
  extended by dk.brics.xsugar.stylesheet.Unit
      extended by dk.brics.xsugar.stylesheet.QName
All Implemented Interfaces:
Name

public class QName
extends Unit
implements Name

QName.


Constructor Summary
QName(String prefix, String localname, Location loc)
          Constructs a new QName.
 
Method Summary
 String getLocalname()
          Returns the localname of this QName.
 String getPrefix()
          Returns the prefix of this QName.
 void setPrefix(String prefix)
          Sets the prefix of this QName.
 String toString()
           
 void visit(Visitor visitor)
          Visits this node.
 
Methods inherited from class dk.brics.xsugar.stylesheet.Unit
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QName

public QName(String prefix,
             String localname,
             Location loc)
Constructs a new QName.

Parameters:
prefix - prefix
localname - localname
loc - source location
Method Detail

getLocalname

public String getLocalname()
Returns the localname of this QName.

Returns:
localname

getPrefix

public String getPrefix()
Returns the prefix of this QName.

Returns:
prefix, empty string if absent

setPrefix

public void setPrefix(String prefix)
Sets the prefix of this QName.

Parameters:
prefix - prefix

toString

public String toString()
Overrides:
toString in class Object

visit

public void visit(Visitor visitor)
Visits this node.

Specified by:
visit in interface Name
Parameters:
visitor - visitor


Copyright © 2004-2007 Anders Møller & Claus Brabrand.