Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public void addContent(FBAbstractElement newElement)
 {
     if (newElement == null)
     {
         return;
     }
     this.content.Add(newElement.Name, newElement);
 }
Ejemplo n.º 3
0
        override public Boolean isEqualTo(FBAbstractElement other)
        {
            if (other.GetType() != this.GetType())
            {
                return(false);
            }

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

            return this.root.isEqualTo(((FBVersion)other).root);
        }
Ejemplo n.º 6
0
 public void addElement(FBAbstractElement element)
 {
     this.root.addContent(element);
 }
Ejemplo n.º 7
0
 public void addElement(FBAbstractElement element)
 {
     this.root.addContent(element);
 }
Ejemplo n.º 8
0
 public void addContent(FBAbstractElement newElement)
 {
     if (newElement == null) return;
     this.content.Add(newElement.Name, newElement);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 10
0
 abstract public Boolean isEqualTo(FBAbstractElement other);
Ejemplo n.º 11
0
 override public Boolean isEqualTo(FBAbstractElement other)
 {
     return(Equals(other));
 }