www.element4solution.com

e4s.translate
Class E4TranslationsVec

java.lang.Object
  extended by e4s.translate.E4TranslationsVec

public class E4TranslationsVec
extends java.lang.Object

Encapsulated Vector class used only to hold elements of type E4Label_Intf.

Since:
JDK 1.4
See Also:
E4Label_Intf, e4s.html.E4HtmlElement_Intf#collectTranslationsForEditing...(), e4s.html.HTML#editTranslations()

Constructor Summary
E4TranslationsVec()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void addElement(E4Label_Intf element)
          Add an element to the translations vector.
 void addElements(E4TranslationsVec vec)
           
 java.util.Enumeration elements()
          Get an enumeration of the elements from the Vector.
 int size()
          Get the number of elements.
 void updateElement(E4Label_Intf element)
          Update an element to the translations vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E4TranslationsVec

public E4TranslationsVec()
Method Detail

addElement

public void addElement(E4Label_Intf element)
Add an element to the translations vector. Add only, if the element requires translation (E4Label_Intf.shallHaveTranslation()) and an equal text does not exist in the Vector so far.

Parameters:
element - the translation element to be added

updateElement

public void updateElement(E4Label_Intf element)
Update an element to the translations vector. Update only, if the element requires translation (E4Label_Intf.shallHaveTranslation()). If not existing, then the element will be added.

Parameters:
element - the translation element to be added

elements

public java.util.Enumeration elements()
Get an enumeration of the elements from the Vector. All elements are of type E4Label_Intf.

Returns:
the elements Enumeration or null if no elements have been added so far. Return of an empty Enumeration could be possible.

size

public int size()
Get the number of elements.

Returns:
0, if no elements have been added or the number of elements in the vector

addElements

public void addElements(E4TranslationsVec vec)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com