예제 #1
0
        override public Boolean isEqualTo(FBAbstractElement other)
        {
            if (other.GetType() != this.GetType())
            {
                return(false);
            }

            FBDirectory othdir = (FBDirectory)other;

            if (othdir.content.Count != this.content.Count)
            {
                return(false);
            }

            foreach (KeyValuePair <string, FBAbstractElement> entry in this.content)
            {
                if (!othdir.content.ContainsKey(entry.Key))
                {
                    return(false);
                }
                else
                if (!entry.Value.isEqualTo(othdir.content[entry.Key]))
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #2
0
 public void addContent(FBAbstractElement newElement)
 {
     if (newElement == null)
     {
         return;
     }
     this.content.Add(newElement.Name, newElement);
 }
예제 #3
0
        override public Boolean isEqualTo(FBAbstractElement other)
        {
            if (other.GetType() != this.GetType())
            {
                return(false);
            }

            return(this.root.isEqualTo(((FBVersion)other).root));
        }
예제 #4
0
 public abstract Boolean isEqualTo(FBAbstractElement other);
예제 #5
0
        public override Boolean isEqualTo(FBAbstractElement other)
        {
            if (other.GetType() != this.GetType())
            {
                return false;
            }

            return this.root.isEqualTo(((FBVersion)other).root);
        }
예제 #6
0
 public void addElement(FBAbstractElement element)
 {
     this.root.addContent(element);
 }
예제 #7
0
 public void addElement(FBAbstractElement element)
 {
     this.root.addContent(element);
 }
예제 #8
0
 public void addContent(FBAbstractElement newElement)
 {
     if (newElement == null) return;
     this.content.Add(newElement.Name, newElement);
 }
예제 #9
0
        public override Boolean isEqualTo(FBAbstractElement other)
        {
            if (other.GetType() != this.GetType())
            {
                return false;
            }

            FBDirectory othdir = (FBDirectory) other;
            if (othdir.content.Count != this.content.Count)
                return false;

            foreach (KeyValuePair<string, FBAbstractElement> entry in this.content)
            {
                if (!othdir.content.ContainsKey(entry.Key))
                    return false;
                else
                    if (!entry.Value.isEqualTo(othdir.content[entry.Key]))
                        return false;
            }

            return true;
        }
예제 #10
0
 abstract public Boolean isEqualTo(FBAbstractElement other);
예제 #11
0
 override public Boolean isEqualTo(FBAbstractElement other)
 {
     return(Equals(other));
 }