protected static class

AbstractResource.MultipleFormEntry

extends Object
implements AbstractResource.ResourceEntry
java.lang.Object
   ↳ com.google.gwt.i18n.rebind.AbstractResource.MultipleFormEntry

Class Overview

Implementation of ResourceEntry that supports multiple forms per entry.

Summary

Public Constructors
AbstractResource.MultipleFormEntry(String key)
Public Methods
void addForm(String form, String value)
String getForm(String form)
Retrieve a particular form for this entry.
Collection<String> getForms()
Returns a list of forms associated with this entry.
String getKey()
Returns key for this entry (must not be null).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.i18n.rebind.AbstractResource.ResourceEntry

Public Constructors

public AbstractResource.MultipleFormEntry (String key)

Public Methods

public void addForm (String form, String value)

public String getForm (String form)

Retrieve a particular form for this entry.

Parameters
form form to retrieve (null for the default)
Returns
  • null if the requested form is not present

public Collection<String> getForms ()

Returns a list of forms associated with this entry. The default form (also the only form for anything other than messages with plural support) is always available and not present in this list.

public String getKey ()

Returns key for this entry (must not be null).