dk.brics.xsugar.stylesheet
Class Attribute

java.lang.Object
  extended by dk.brics.xsugar.stylesheet.Unit
      extended by dk.brics.xsugar.stylesheet.Attribute

public class Attribute
extends Unit

Attribute.


Constructor Summary
Attribute(Name name, Value value, Location loc)
          Constructs a new attribute.
 
Method Summary
 Name getName()
          Returns the name of this attribute.
 Value getValue()
          Returns the value of this attribute.
 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, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(Name name,
                 Value value,
                 Location loc)
Constructs a new attribute.

Parameters:
name - attribute name
value - attribute value
loc - source location
Method Detail

getName

public Name getName()
Returns the name of this attribute.

Returns:
name

getValue

public Value getValue()
Returns the value of this attribute.

Returns:
value

visit

public void visit(Visitor visitor)
Visits this node.

Parameters:
visitor - visitor


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