using System.Collections.Generic;
namespace ImaginationOverflow.UniversalDeepLinking.Editor.External
{
///
/// Represents an array element in plist document.
///
public class PlistElementArray : PlistElement
{
///
/// The values stored in the array element.
///
public List values = new List();
///
/// Convenience method to append new string element to values.
///
/// The value of the new string element.
public void AddString(string val)
{
this.values.Add((PlistElement)new PlistElementString(val));
}
///
/// Convenience method to append new integer element to values.
///
/// The value of the new integer element.
public void AddInteger(int val)
{
this.values.Add((PlistElement)new PlistElementInteger(val));
}
///
/// Convenience method to append new boolean element to values.
///
/// The value of the new boolean element.
public void AddBoolean(bool val)
{
this.values.Add((PlistElement)new PlistElementBoolean(val));
}
///
/// Convenience method to append new array to values.
///
///
/// The new array element.
///
public PlistElementArray AddArray()
{
PlistElementArray plistElementArray = new PlistElementArray();
this.values.Add((PlistElement)plistElementArray);
return plistElementArray;
}
///
/// Convenience method to append new dictionary to values.
///
///
/// The new dictionary element.
///
public PlistElementDict AddDict()
{
PlistElementDict plistElementDict = new PlistElementDict();
this.values.Add((PlistElement)plistElementDict);
return plistElementDict;
}
}
}