org.bibalex.daf.entities.phase
Class ReflectionDef

java.lang.Object
  extended by org.bibalex.daf.entities.phase.ReflectionDef

public class ReflectionDef
extends java.lang.Object

Represents the reflection section of a phase.

Author:
Shehab.Kamal

Field Summary
 java.lang.String method
          The 'Method' property of the element.
 
Constructor Summary
ReflectionDef()
          Creates a new instance of ReflectionDef.
ReflectionDef(org.w3c.dom.Node node)
          Creates a new instance of ReflectionDef.
ReflectionDef(java.lang.String nodeRep)
          Creates a new instance of ReflectionDef.
 
Method Summary
private  void createElementFromNode(org.w3c.dom.Node node)
          Creates the ReflectionDef element by supplying its XmlNode represenation.
 java.lang.String toString()
          Returns the string representation of this object.
 java.lang.String toXmlString()
          Returns a String representing the ReflectionDef in xml format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

public java.lang.String method
The 'Method' property of the element.

Constructor Detail

ReflectionDef

public ReflectionDef()
Creates a new instance of ReflectionDef.


ReflectionDef

public ReflectionDef(org.w3c.dom.Node node)
              throws PhaseDefinitionException
Creates a new instance of ReflectionDef.

Parameters:
node - The Xml node that representd the element.
Throws:
PhaseDefinitionException - If the given node couldn't be parsed.

ReflectionDef

public ReflectionDef(java.lang.String nodeRep)
              throws PhaseDefinitionException
Creates a new instance of ReflectionDef.

Parameters:
nodeRep - The Xml String representing this element.
Throws:
PhaseDefinitionException - If the given String couldn't be parsed.
Method Detail

createElementFromNode

private void createElementFromNode(org.w3c.dom.Node node)
                            throws PhaseDefinitionException
Creates the ReflectionDef element by supplying its XmlNode represenation.

Parameters:
node - The Xml Node representing this element.
Throws:
PhaseDefinitionException - If the node name is not 'Folder' or attributes are missing.

toString

public java.lang.String toString()
Returns the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this object.

toXmlString

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

Returns:
A String representing the ReflectionDef in xml format.