Class: PHXComponentVersion
Last update: 22.06.2026Package: com.phoenix_int.aserver
Class Hierarchy
↳ java.lang.Object
↳ com.phoenix_int.aserver.PHXComponentVersion
Declaration
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
| Constructor and Description |
|---|
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
| Modifier and Type | Method and Description |
|---|---|
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 nameauthor- The version authordescription- The version descriptiondate- 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