ArtifactCacheItem
using System.Collections;
namespace kCura.WinEDDS
{
public class ArtifactCacheItem
{
private string _name;
private string _path;
private int _artifactID;
private ArrayList _children;
public string Name {
get {
return _name;
}
set {
_name = value;
}
}
public string Path {
get {
return _path;
}
set {
_path = value;
}
}
public int ArtifactID {
get {
return _artifactID;
}
set {
_artifactID = value;
}
}
public ArtifactCacheItem[] Children {
get {
return (ArtifactCacheItem[])_children.ToArray(typeof(ArtifactCacheItem));
}
set {
_children = new ArrayList(value);
}
}
public void AddChild(ArtifactCacheItem item)
{
_children.Add(item);
}
public ArtifactCacheItem(string name, string path, int artifactID)
{
_name = name;
_path = path;
_artifactID = artifactID;
_children = new ArrayList();
}
}
}