org.bibalex.daf.entities.phase
Class SemiPhaseDef

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

public class SemiPhaseDef
extends java.lang.Object

Represents either the PrePhase or PostPhase definition.

Author:
Shehab.Kamal

Field Summary
 DatabaseDef database
          Holds the database definition section of the phase.
 PhysicalDef physical
          Holds the physical definition section of the phase.
 ReflectionDef reflection
          Holds the reflection definition section of the phase.
 java.lang.String type
          A String representing the type of the SemiPhaseDef.
 
Constructor Summary
SemiPhaseDef(org.w3c.dom.Node node)
          Creates a new instance of SemiPhaseDef.
SemiPhaseDef(java.lang.String nodeRep)
          Creates a new instance of SemiPhaseDef.
 
Method Summary
private  void createElementFromNode(org.w3c.dom.Node node)
          Creates the SemiPhaseDef 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 SemiPhaseDef in xml format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

physical

public PhysicalDef physical
Holds the physical definition section of the phase. This section could be null.


reflection

public ReflectionDef reflection
Holds the reflection definition section of the phase. This section could be null.


database

public DatabaseDef database
Holds the database definition section of the phase. This section could be null.


type

public java.lang.String type
A String representing the type of the SemiPhaseDef. That is, whether it is a pre-phase or post-phase.

Constructor Detail

SemiPhaseDef

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

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

SemiPhaseDef

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

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 SemiPhaseDef element by supplying its XmlNode represenation.

Parameters:
node - The Xml Node representing this element.
Throws:
PhaseDefinitionException - If the node name is not 'PrePhase' or 'PostPhase' or children couldn't be created.

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 SemiPhaseDef in xml format.

Returns:
A String representing the SemiPhaseDef in xml format.