Exemplo n.º 1
0
		public virtual XMPProperty GetArrayItem(String schemaNS, String arrayName, int itemIndex
			)
		{
			ParameterAsserts.AssertSchemaNS(schemaNS);
			ParameterAsserts.AssertArrayName(arrayName);
			String itemPath = XMPPathFactory.ComposeArrayItemPath(arrayName, itemIndex);
			return GetProperty(schemaNS, itemPath);
		}
Exemplo n.º 2
0
		public virtual bool DoesArrayItemExist(String schemaNS, String arrayName, int itemIndex
			)
		{
			try
			{
				ParameterAsserts.AssertSchemaNS(schemaNS);
				ParameterAsserts.AssertArrayName(arrayName);
				String path = XMPPathFactory.ComposeArrayItemPath(arrayName, itemIndex);
				return DoesPropertyExist(schemaNS, path);
			}
			catch (XMPException)
			{
				return false;
			}
		}
Exemplo n.º 3
0
		public virtual void DeleteArrayItem(String schemaNS, String arrayName, int itemIndex
			)
		{
			try
			{
				ParameterAsserts.AssertSchemaNS(schemaNS);
				ParameterAsserts.AssertArrayName(arrayName);
				String itemPath = XMPPathFactory.ComposeArrayItemPath(arrayName, itemIndex);
				DeleteProperty(schemaNS, itemPath);
			}
			catch (XMPException)
			{
				// EMPTY, exceptions are ignored within delete
			}
		}