|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.PHXComponentBranch
public class PHXComponentBranch
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 | |
|---|---|
PHXComponentBranch()
Constructs an empty branch |
|
PHXComponentBranch(org.w3c.dom.Element branchElement)
Constructs a branch based on an XML branch node |
|
PHXComponentBranch(java.lang.String name)
Constructs an empty named branch |
|
| Method Summary | |
|---|---|
void |
addVersion(PHXComponentVersion v)
Adds a version to this branch |
PHXComponentBranch |
findBranch(java.lang.String name)
Finds any sub-branch that is part of any version in this branch by name |
PHXComponentVersion |
findVersion(java.lang.String name)
Finds a sub-version by the specified name |
void |
fromXML(java.lang.String xmlString)
Reads in an XML description of a branch into this object |
java.lang.String |
getName()
Gets the name of this branch |
int |
getNumVersions()
Returns how many versions there are in this branch |
PHXComponentVersion |
getParent()
Retrieves the parent version |
PHXComponentVersion |
getVersion(int i)
Gets the i'th version |
java.util.Iterator |
getVersions()
Returns an Iterator over the sub-versions |
void |
insertVersion(PHXComponentVersion v,
int location)
Inserts a version to this branch at a particular location |
void |
setName(java.lang.String name)
Changes the branch name |
java.lang.String |
toXML()
Converts this branch into an XML String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHXComponentBranch()
public PHXComponentBranch(java.lang.String name)
public PHXComponentBranch(org.w3c.dom.Element branchElement)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public PHXComponentVersion getParent()
public void setName(java.lang.String name)
public java.lang.String getName()
public void addVersion(PHXComponentVersion v)
public void insertVersion(PHXComponentVersion v,
int location)
public int getNumVersions()
public java.util.Iterator getVersions()
public PHXComponentVersion getVersion(int i)
public PHXComponentVersion findVersion(java.lang.String name)
public PHXComponentBranch findBranch(java.lang.String name)
public void fromXML(java.lang.String xmlString)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOExceptionpublic java.lang.String toXML()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||