variablecollection-ag凯发旗舰厅



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 variablecollection 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 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)
          sets the variable with the specified name.
 
constructor detail

variablecollection

public variablecollection()
initializes a new instance of the variablecollection class.
method detail

get

public java.lang.string get(java.lang.string name)
gets the variable with the specified name.
parameters:
name - name
returns:
string

set

public void set(java.lang.string name,
                java.lang.string value)
sets the variable with the specified name.
parameters:
name - name
value - value

getcount

public int getcount()
gets the count of variables.
returns:
size of 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:
string

getvaluebyindex

public java.lang.string getvaluebyindex(int index)
gets variable's value by the index.
parameters:
index - the index.
returns:
string

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()


网站地图