|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.util.SimpleDataRecord<StringRecord>
org.starhope.appius.user.StringRecord
public class StringRecord
A string, tied to identifiers, with minimal translation support
| Field Summary | |
|---|---|
private int |
myID
unique ID |
private String |
myIdent
unique ID |
private static long |
serialVersionUID
WRITEME: Document this brpocock@star-hope.org |
private Map<String,String> |
values
The collection of versions of this string in various languages |
| Fields inherited from class org.starhope.appius.util.SimpleDataRecord |
|---|
myLoader, timeLastChanged, timeLastSaved |
| Constructor Summary | |
|---|---|
StringRecord(RecordLoader<StringRecord> loader)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
int |
getCacheableID()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
String |
getCacheableIdent()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
int |
getID()
|
String |
getIdent()
|
String |
getLocalised(String language_dialect)
|
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
void |
setID(int id)
|
void |
setIdent(String newIdent)
|
void |
setValue(String language,
String value)
|
String |
toString()
|
| Methods inherited from class org.starhope.appius.util.SimpleDataRecord |
|---|
changed, checkStale, compareTo, equals, finalize, getRecordLoader, getTimeLastChanged, getTimeLastSaved, hashCode, isBeingLoaded, markAsLoaded, markAsSaved, markForReload, onRemove, onRetrieve, onStore, save, setRecordLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private int myID
private String myIdent
private final Map<String,String> values
| Constructor Detail |
|---|
public StringRecord(RecordLoader<StringRecord> loader)
loader - WRITEME| Method Detail |
|---|
public int getCacheableID()
throws NotFoundException
DataRecordDataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both.
NotFoundException - if the item doesn't have a distinct
numeric IDDataRecord.getCacheableID()
public String getCacheableIdent()
throws NotFoundException
DataRecordDataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both.
NotFoundException - if the item doesn't have a distinct
string identifierDataRecord.getCacheableIdent()public int getID()
public String getIdent()
public String getLocalised(String language_dialect)
language_dialect - language and dialect code
public String getSubversionRevision()
HasSubversionRevisionReturn the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence.
As an example,the Subversion revision string for this file is "$Rev: 1968 $"
@Override
public String getSubversionRevision () {
return "$Rev: ";
}
HasSubversionRevision.getSubversionRevision()public void setID(int id)
id - the myID to setpublic void setIdent(String newIdent)
newIdent - the myIdent to set
public void setValue(String language,
String value)
language - languagevalue - valuepublic String toString()
toString in class SimpleDataRecord<StringRecord>Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||