com.spire.doc
Class VariableCollection

java.lang.Object
  extended by com.spire.doc.VariableCollection
All Implemented Interfaces:
java.lang.Iterable

public class VariableCollection
extends java.lang.Object
implements java.lang.Iterable


Constructor Summary
VariableCollection()
          Initializes a new instance of the class.
 
Method Summary
 void add(java.lang.String name, java.lang.String value)
          Adds variable to document.
 java.lang.String get(java.lang.String name)
          Gets or sets the variable with the specified name.
 int getCount()
          Gets the count of variables.
 java.lang.String getNameByIndex(int index)
          Gets variable's key by the index.
 java.lang.String getValueByIndex(int index)
          Gets variable's value by the index.
 java.util.Iterator iterator()
           
 void remove(java.lang.String name)
          Removes document variable with specified name from the document.
 void set(java.lang.String name, java.lang.String value)
          Gets or sets the variable with the specified name.
 

Constructor Detail

VariableCollection

public VariableCollection()
Initializes a new instance of the class.

Method Detail

get

public java.lang.String get(java.lang.String name)
Gets or sets the variable with the specified name.

Parameters:
name -
Returns:

set

public void set(java.lang.String name,
                java.lang.String value)
Gets or sets the variable with the specified name.

Parameters:
name -
value -

getCount

public int getCount()
Gets the count of variables.


add

public void add(java.lang.String name,
                java.lang.String value)
Adds variable to document.

Parameters:
name - The name.
value - The value.

getNameByIndex

public java.lang.String getNameByIndex(int index)
Gets variable's key by the index.

Parameters:
index - The index.
Returns:

getValueByIndex

public java.lang.String getValueByIndex(int index)
Gets variable's value by the index.

Parameters:
index - The index.
Returns:

remove

public void remove(java.lang.String name)
Removes document variable with specified name from the document.

Parameters:
name - The name.

iterator

public java.util.Iterator iterator()