|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.BranchNode | +--org.sourcejammer.project.controller.MasterFileNode
Title: $FileName: MasterFileNode.java$
Field Summary | |
private java.util.HashMap |
branchesByFileID
|
private java.util.HashMap |
identifiers
|
private long |
key
|
private boolean |
locked
|
private long |
uniqueID
|
Fields inherited from class org.sourcejammer.project.controller.BranchNode |
|
Constructor Summary | |
MasterFileNode()
|
Method Summary | |
protected void |
applyIndex(BranchNode branch)
|
void |
checkKey(long key)
This method throws BadMethodArgumentException (runtime) if the node is not locked or if the keys do not match. |
int |
childCount()
|
boolean |
containsIdentifier(java.lang.String identifier)
|
BranchNode |
getBranchByFileID(long fileID)
|
java.lang.String |
getNodeName()
|
long |
getUniqueID()
Returns the uniqueID. |
protected boolean |
isIdentifierUnique(java.lang.String identifier)
|
boolean |
isLocked()
|
boolean |
isShared()
|
void |
lock(long key)
Locks this node so that set methods can only be run if this combination is included. |
void |
setFileID(long fileID)
Sets the fileID. |
void |
setParent()
|
void |
setUniqueID(long uniqueID,
long key)
Sets the uniqueID. |
abstract void |
store(long key,
ArchiveInfoFlex archive)
|
void |
unlock(long key)
|
Methods inherited from class org.sourcejammer.project.controller.BranchNode |
addBranchNode, getBranchNode, getBranchView, getFileID, getIdentifier, getInitialVersionID, setIdentifier, setInitialVersionID, setParent, subBranches |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashMap identifiers
private java.util.HashMap branchesByFileID
private long uniqueID
private boolean locked
private long key
Constructor Detail |
public MasterFileNode()
Method Detail |
public BranchNode getBranchByFileID(long fileID)
protected void applyIndex(BranchNode branch)
applyIndex
in class BranchNode
public boolean containsIdentifier(java.lang.String identifier)
protected boolean isIdentifierUnique(java.lang.String identifier)
isIdentifierUnique
in class BranchNode
public void setParent()
public long getUniqueID()
getUniqueID
in interface org.sourcejammer.project.Node
public java.lang.String getNodeName()
getNodeName
in interface org.sourcejammer.project.Node
public boolean isShared()
isShared
in interface org.sourcejammer.project.Node
public int childCount()
childCount
in interface org.sourcejammer.project.Node
public void setUniqueID(long uniqueID, long key)
uniqueID
- The uniqueID to setpublic void lock(long key) throws SecurityException
SecurityException
public boolean isLocked()
public void unlock(long key) throws SecurityException
SecurityException
public void checkKey(long key)
checkKey
in class BranchNode
public abstract void store(long key, ArchiveInfoFlex archive) throws FileAccessException
FileAccessException
public void setFileID(long fileID)
BranchNode
setFileID
in class BranchNode
fileID
- The fileID to setBranchNode.setFileID(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |