Skip to main content
Package: com.phoenix_int.aserver Class Hierarchy
Declaration
This class represents a branch on a revision history tree for a version controlled component. Includes functionality for reading/writing XML branch descriptions.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PHXComponentBranch

Constructs an empty branch

PHXComponentBranch

Constructs an empty named branch

PHXComponentBranch

Constructs a branch based on an XML branch node Throws:
  • java.io.IOException

Method Detail

getParent

Retrieves the parent version

setName

Changes the branch name

getName

Gets the name of this branch

addVersion

Adds a version to this branch

insertVersion

Inserts a version to this branch at a particular location

getNumVersions

Returns how many versions there are in this branch

getVersions

Returns an Iterator over the sub-versions

getVersion

Gets the i’th version

findVersion

Finds a sub-version by the specified name

findBranch

Finds any sub-branch that is part of any version in this branch by name

fromXML

Reads in an XML description of a branch into this object Throws:
  • javax.xml.parsers.ParserConfigurationException
  • org.xml.sax.SAXException
  • java.io.IOException

toXML

Converts this branch into an XML String