de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive
|
|||
protected
String
|
name |
||
protected
String
|
plaintext |
||
private static
long
|
serialVersionUID |
||
protected
String
|
text |
|
|||
public
|
ArchiveEntryImpl()
Creates a new instance of ArchiveEntryImpl.
|
||
public
|
ArchiveEntryImpl(String name, Map m)
Creates a new instance of ArchiveEntryImpl.
|
||
public
|
ArchiveEntryImpl(String name)
Creates a new instance of ArchiveEntryImpl.
|
|
|||
public
int
|
compareTo(Object o)
Compares the name
This can be used for implenting a Comparator and using it to sort a list of entry names.
The comparison is performed case-insensitive.
|
||
protected
boolean
|
equalEntry(String key, String val1, String val2)
|
||
public
boolean
|
equals(Object o)
Tests for equality of the whole entry. Unlike compareTo(),
this compares all key/value-fields, too, not only the entry name.
|
||
public
Map
|
getMap()
|
||
public
String
|
getName()
Returns the name of the entry.
|
||
public
String
|
getPlainText()
|
||
public
String
|
getText()
|
||
public
String
|
getValue(String key)
Gets a field's value.
|
||
public
boolean
|
isOptional()
May be overwritten by subclass.
|
||
public
void
|
setName(String name)
|
||
public
void
|
setPlainText(String text)
|
||
public
void
|
setText(String text)
|
||
public
String
|
toString()
May be overwritten by subclass.
|
Tagged Values | |
static
|
false
|
documentation#author
|
Jens Gulden
|
documentation#version
|
0.2.0
|
|
protected
String name
protected
String plaintext
private static final
long serialVersionUID
protected
String text
|
public
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveEntryImpl
ArchiveEntryImpl()
public
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveEntryImpl
ArchiveEntryImpl(String name, Map m)
name
-
m
- Map with default key/value-fields.
public
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveEntryImpl
ArchiveEntryImpl(String name)
name
- The name of the entry.
|
public
int compareTo(Object o)
o
- An instance of ArchiveEntry
to compare with based on the name.
protected
boolean equalEntry(String key, String val1, String val2)
key
-
val1
-
val2
-
public
boolean equals(Object o)
o
- Another instance of ArchiveEntryImpl
to test for equality with.
public
Map
getMap()
public
String
getName()
public
String
getPlainText()
public
String
getText()
public
String
getValue(String key)
key
- The field key.
public
boolean isOptional()
public
void setName(String name)
name
-
public
void setPlainText(String text)
text
-
public
void setText(String text)
text
-
public
String
toString()