dk.brics.xsugar.stylesheet
Class Element

java.lang.Object
  extended by dk.brics.xsugar.stylesheet.Unit
      extended by dk.brics.xsugar.stylesheet.Element
All Implemented Interfaces:
Item

public class Element
extends Unit
implements Item

Element.


Constructor Summary
Element(Name name, List<Attribute> attrs, List<Item> contents, boolean unordered, Location loc)
          Constructs a new element.
 
Method Summary
 List<Attribute> getAttributes()
          Returns the attributes of this element.
 List<Item> getContents()
          Returns the contents of this element
 Name getName()
          Returns the name of this element.
 boolean isUnordered()
          Returns true if this element is at top-level of unordered production.
 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

Element

public Element(Name name,
               List<Attribute> attrs,
               List<Item> contents,
               boolean unordered,
               Location loc)
Constructs a new element.

Parameters:
name - element name
attrs - attributes
contents - element contents
unordered - unordered flag
loc - source location
Method Detail

getAttributes

public List<Attribute> getAttributes()
Returns the attributes of this element.

Returns:
list of attributes

getContents

public List<Item> getContents()
Returns the contents of this element

Returns:
contents

getName

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

Returns:
name

isUnordered

public boolean isUnordered()
Returns true if this element is at top-level of unordered production.

Returns:
unordered flag

visit

public void visit(Visitor visitor)
Visits this node.

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


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