com.aspose.slides.pptx
Class TagsEx

java.lang.Object
  extended by com.aspose.slides.pptx.TagsEx

public class TagsEx
extends java.lang.Object

Represents the collection of tags (user defined pairs of strings)


Method Summary
 int add(java.lang.String name, java.lang.String value)
          Adds a new tag to collection.
 void clear()
          Removes all tags from the collection.
 boolean contains(java.lang.String name)
          Determines whether the collection contains a specific name.
 java.lang.String get(java.lang.String name)
          Returns a key and a value pair of a tag.
 java.lang.String getByIndex(int index)
          Returns value of a tag at the specified index.
 java.lang.String getKey(int index)
          Returns key of a tag at the specified index.
 int indexOfKey(java.lang.String name)
          Returns the zero-based index of the specified key in the collection.
 void remove(java.lang.String name)
          Removes the tag with a specified name from the collection.
 void removeAt(int index)
          Removes the tag at the specified index.
 void set(java.lang.String name, java.lang.String value)
          Sets a key and a value pair of a tag.
 int size()
          Returns a number of tags in the collectoin.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Returns a number of tags in the collectoin.


add

public int add(java.lang.String name,
               java.lang.String value)
Adds a new tag to collection.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
The index of the added tag.

remove

public void remove(java.lang.String name)
Removes the tag with a specified name from the collection.

Parameters:
name - The name of tag to remove.

indexOfKey

public int indexOfKey(java.lang.String name)
Returns the zero-based index of the specified key in the collection.

Parameters:
name - The name to locate in the collection.
Returns:
The zero-based index of key, if key is found in the collection; otherwise, -1.

contains

public boolean contains(java.lang.String name)
Determines whether the collection contains a specific name.

Parameters:
name - The key to locate.
Returns:
True if the collection contains an tag with the specified key; otherwise, false.

removeAt

public void removeAt(int index)
Removes the tag at the specified index.

Parameters:
index - The zero-based index of the tag to remove.

clear

public void clear()
Removes all tags from the collection.


getByIndex

public java.lang.String getByIndex(int index)
Returns value of a tag at the specified index.

Parameters:
index - Index of a tag to return.
Returns:
Value of a tag.

getKey

public java.lang.String getKey(int index)
Returns key of a tag at the specified index.

Parameters:
index - Index of a tag to return.
Returns:
Key of a tag.

get

public java.lang.String get(java.lang.String name)
Returns a key and a value pair of a tag.

Parameters:
name - Key of a tag.
Returns:
Value of a tag.

set

public void set(java.lang.String name,
                java.lang.String value)
Sets a key and a value pair of a tag.

Parameters:
name - Key of a tag.
value - Value of a tag