org.bibalex.daf.entities.phase
Class PhysicalElement

java.lang.Object
  extended by org.bibalex.daf.entities.phase.PhysicalElement
Direct Known Subclasses:
FileElement, FolderElement

public abstract class PhysicalElement
extends java.lang.Object

The base class for PhysicalElements. Used to create FileElements and FolderElements.

Author:
Shehab.Kamal

Constructor Summary
PhysicalElement()
           
 
Method Summary
static PhysicalElement createElement(org.w3c.dom.Node node)
          Creates one of the concrete classes according to the given node.
abstract  java.lang.String toXmlString()
          Returns a String representing the PhysicalElement in xml format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalElement

public PhysicalElement()
Method Detail

createElement

public static PhysicalElement createElement(org.w3c.dom.Node node)
                                     throws PhaseDefinitionException
Creates one of the concrete classes according to the given node.

Parameters:
node - The node to create a PhysicalElement from.
Returns:
A PhysicalElement corresponding to the given node, or null if there is no concrete class associated with the node
Throws:
PhaseDefinitionException - If the element couldn't be created from the given node.

toXmlString

public abstract java.lang.String toXmlString()
Returns a String representing the PhysicalElement in xml format.

Returns:
A String representing the PhysicalElement in xml format.