com.microsoft.tfs.core.clients.framework.catalog
Class CatalogDependencyGroup

java.lang.Object
  extended by com.microsoft.tfs.core.clients.framework.catalog.CatalogDependencyGroup

public class CatalogDependencyGroup
extends java.lang.Object

Manages node dependencies for CatalogNodes.

Since:
TEE-SDK-10.1

Constructor Summary
CatalogDependencyGroup()
          Default constructor.
CatalogDependencyGroup(CatalogDependencyGroup dependencies)
          Copy constructor.
 
Method Summary
 void addSetDependency(java.lang.String key, CatalogNode node)
          Adds the CatalogNode to the dependency set that has the provided key.
 void clearDependencySets()
          Clears the dependency set.
 void clearSingletonDependencies()
          Clears the singleton dependencies.
 CatalogNode[] getAllDependencies()
          Returns all the nodes that are dependencies.
 CatalogNode[] getDependencySet(java.lang.String key)
          Returns The set of the dependency sets.
 java.util.HashMap<java.lang.String,java.util.ArrayList<CatalogNode>> getSets()
          Returns the set of dependency sets.
 CatalogNode getSingletonDependency(java.lang.String key)
          Returns the CatalogNode that is a dependency of this node that is associated with the given key.
 java.util.HashMap<java.lang.String,CatalogNode> getSingletons()
          The set of singleton dependencies.
 void removeSetDependency(java.lang.String key)
          Removes the entire dependency set that is associated with the given key.
 void removeSetDependency(java.lang.String key, CatalogNode node)
          Removes the provided node from the dependency set that is associated with the given key.
 void removeSingletonDependency(java.lang.String key)
          Removes the node dependency with the given key.
 void setSingletonDependency(java.lang.String key, CatalogNode node)
          Sets the singleton dependency for the given node with the key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogDependencyGroup

public CatalogDependencyGroup()
Default constructor.


CatalogDependencyGroup

public CatalogDependencyGroup(CatalogDependencyGroup dependencies)
Copy constructor.

Method Detail

getAllDependencies

public CatalogNode[] getAllDependencies()
Returns all the nodes that are dependencies. This is not a distinct set.


setSingletonDependency

public void setSingletonDependency(java.lang.String key,
                                   CatalogNode node)
Sets the singleton dependency for the given node with the key. This will add the dependency if it is not present and overwrite it if it is.

Parameters:
key - The key for this dependency.
node - The node the dependency is set on.

removeSingletonDependency

public void removeSingletonDependency(java.lang.String key)
Removes the node dependency with the given key.

Parameters:
key - The key for this dependency.

getSingletonDependency

public CatalogNode getSingletonDependency(java.lang.String key)
Returns the CatalogNode that is a dependency of this node that is associated with the given key. If the key does not associate with a given dependency then null will be returned.

Parameters:
key - The key for this dependency.
Returns:
The CatalogNode that is a dependency of this node.

getSingletons

public java.util.HashMap<java.lang.String,CatalogNode> getSingletons()
The set of singleton dependencies.


addSetDependency

public void addSetDependency(java.lang.String key,
                             CatalogNode node)
Adds the CatalogNode to the dependency set that has the provided key.

Parameters:
key - The key for this dependency.
node - The node to add to the dependency set.

removeSetDependency

public void removeSetDependency(java.lang.String key)
Removes the entire dependency set that is associated with the given key.

Parameters:
key - The key for this dependency.

removeSetDependency

public void removeSetDependency(java.lang.String key,
                                CatalogNode node)
Removes the provided node from the dependency set that is associated with the given key.

Parameters:
key - The key for this dependency.
node - The node to add to the dependency set.

getDependencySet

public CatalogNode[] getDependencySet(java.lang.String key)
Returns The set of the dependency sets.


getSets

public java.util.HashMap<java.lang.String,java.util.ArrayList<CatalogNode>> getSets()
Returns the set of dependency sets.


clearSingletonDependencies

public void clearSingletonDependencies()
Clears the singleton dependencies.


clearDependencySets

public void clearDependencySets()
Clears the dependency set.



© 2015 Microsoft. All rights reserved.