src2xml
Class Element

java.lang.Object
  extended by src2xml.Element

public abstract class Element
extends java.lang.Object

Element is an abstract representation of a region in the source code. Its specializations can contain other nested regions or consist just in a plain String.

See Also:
ElementReader

Field Summary
 java.lang.String id
           
 
Constructor Summary
Element(java.lang.String s_id)
          Class constructor
 
Method Summary
abstract  java.lang.String Print()
          Print the region XML representation, surrounded by a tag
abstract  void Show(int lvl)
          A debug facility that shows the Elements tree in the standard output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id
Constructor Detail

Element

public Element(java.lang.String s_id)
Class constructor

Parameters:
s_id - An IDentificative String for this region
See Also:
ElementNode, ElementLeaf
Method Detail

Print

public abstract java.lang.String Print()
                                throws java.lang.Exception
Print the region XML representation, surrounded by a tag

Returns:
The tagged String
Throws:
java.lang.Exception - If something's wrong
See Also:
String

Show

public abstract void Show(int lvl)
A debug facility that shows the Elements tree in the standard output stream

Parameters:
lvl - Just to keep track of the level in the tree