com.phoenix_int.aserver
Class PHXComponentVersion

java.lang.Object
  extended by com.phoenix_int.aserver.PHXComponentVersion

public class PHXComponentVersion
extends java.lang.Object

This class represents a version on a revision history tree for a version controlled component.

Includes functionality for reading/writing XML version descriptions.


Constructor Summary
PHXComponentVersion(org.w3c.dom.Element versionNode)
          Constructs a version based on information In an XML Element
PHXComponentVersion(java.lang.String name)
          Constructs a version with a given name
PHXComponentVersion(java.lang.String name, java.lang.String author, java.lang.String description, java.util.Date date)
          Constructs a version with the specified meta data
 
Method Summary
 void addBranch(PHXComponentBranch b)
          Adds a sub-branch to this version.
 java.lang.String getAuthor()
          Gets the version author
 PHXComponentBranch getBranch(int i)
          Returns the i'th sub-branch
 java.util.Iterator getBranches()
          Returns an Iterator over the sub-branches
 java.util.Date getDate()
          Gets the version date
 java.lang.String getDescription()
          Gets the version description
 java.lang.String getName()
          Gets the version name
 int getNumBranches()
          Gets the number of sub-branches
 PHXComponentBranch getParent()
          Gets our parent branch
 void setAuthor(java.lang.String author)
          Sets the version author
 void setDate(java.util.Date date)
          Sets the version date
 void setDescription(java.lang.String description)
          Sets the version description
 void setName(java.lang.String name)
          Sets the version name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PHXComponentVersion

public PHXComponentVersion(java.lang.String name)
Constructs a version with a given name


PHXComponentVersion

public PHXComponentVersion(java.lang.String name,
                           java.lang.String author,
                           java.lang.String description,
                           java.util.Date date)
Constructs a version with the specified meta data

Parameters:
name - The version name
author - The version author
description - The version description
date - The date of the version

PHXComponentVersion

public PHXComponentVersion(org.w3c.dom.Element versionNode)
                    throws java.io.IOException
Constructs a version based on information In an XML Element

Throws:
java.io.IOException
Method Detail

getParent

public PHXComponentBranch getParent()
Gets our parent branch


setName

public void setName(java.lang.String name)
Sets the version name


getName

public java.lang.String getName()
Gets the version name


setAuthor

public void setAuthor(java.lang.String author)
Sets the version author


getAuthor

public java.lang.String getAuthor()
Gets the version author


setDescription

public void setDescription(java.lang.String description)
Sets the version description


getDescription

public java.lang.String getDescription()
Gets the version description


setDate

public void setDate(java.util.Date date)
Sets the version date


getDate

public java.util.Date getDate()
Gets the version date


addBranch

public void addBranch(PHXComponentBranch b)
Adds a sub-branch to this version. Will set the sub-branches parent to this version


getNumBranches

public int getNumBranches()
Gets the number of sub-branches


getBranches

public java.util.Iterator getBranches()
Returns an Iterator over the sub-branches


getBranch

public PHXComponentBranch getBranch(int i)
Returns the i'th sub-branch