org.sourcejammer.project.controller
Class Label

java.lang.Object
  |
  +--org.sourcejammer.project.controller.LabelInfo
        |
        +--org.sourcejammer.project.controller.Label
All Implemented Interfaces:
org.sourcejammer.project.Node

public class Label
extends LabelInfo

Title: $FileName: Label.java$

Version:
$VerNum: 5$

$Description: $
$KeyWordsOff: $

Author:
$AuthorName: Rob MacGrogan$

Field Summary
private  java.util.Vector mvecContents
           
 
Fields inherited from class org.sourcejammer.project.controller.LabelInfo
 
Constructor Summary
Label()
           
 
Method Summary
 void addLabelVersionMappingBean(org.sourcejammer.project.controller.LabelVersionMappingBean bn)
          Add a version node in the form of a Mapping Bean.
 void addVersion(int versionNumber, long verUniqueID, long fileUniqueID, java.lang.String fullSJPath)
          Add a version node to the label.
static Label buildFromXML(org.w3c.dom.Document doc)
           
 int childCount()
          Returns number of files that are part of this label.
 java.util.Iterator getVersions()
          Returns an Iterator object of LabelVersionMappingBeans.
 java.lang.String getXMLText()
           
 void saveXML(java.io.File flTarget)
           
 void setChildCount(int i)
           
 
Methods inherited from class org.sourcejammer.project.controller.LabelInfo
getCreatedDate, getDescription, getNodeName, getRootProjectUniqueID, getSJPathToRootProject, getUniqueID, isShared, setCreatedDate, setDescription, setNodeName, setRootProjectUniqueID, setSJPathToRootProject, setUniqueID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mvecContents

private java.util.Vector mvecContents
Constructor Detail

Label

public Label()
Method Detail

childCount

public int childCount()
Returns number of files that are part of this label.

Specified by:
childCount in interface org.sourcejammer.project.Node
Overrides:
childCount in class LabelInfo

addVersion

public void addVersion(int versionNumber,
                       long verUniqueID,
                       long fileUniqueID,
                       java.lang.String fullSJPath)
Add a version node to the label.

Parameters:
versionNumber - -- the int version number (not the unique ID) of the version being added.
fullSJPath - -- the full SourceJammer server path to the file being added. Path should NOT include the archive name at the beginning.

addLabelVersionMappingBean

public void addLabelVersionMappingBean(org.sourcejammer.project.controller.LabelVersionMappingBean bn)
Add a version node in the form of a Mapping Bean.


getVersions

public java.util.Iterator getVersions()
Returns an Iterator object of LabelVersionMappingBeans.


setChildCount

public void setChildCount(int i)
Overrides:
setChildCount in class LabelInfo

saveXML

public void saveXML(java.io.File flTarget)
             throws FileAccessException
FileAccessException

buildFromXML

public static Label buildFromXML(org.w3c.dom.Document doc)
                          throws FileAccessException
FileAccessException

getXMLText

public java.lang.String getXMLText()
                            throws FileAccessException
FileAccessException


Copyright © 2003 Soucejammer project.