|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.asciiroth.client.core.TypeOnlySerializer<T>
T - public abstract class TypeOnlySerializer<T extends Piece>
A serializer base that will work for any piece that is defined only by its type. Subclasses need only implement the create method and return a new instance of the type.
| Constructor Summary | |
|---|---|
TypeOnlySerializer()
|
|
| Method Summary | |
|---|---|
T |
example()
Provide an example of this piece for display in the editor. |
java.lang.String |
store(T piece)
Create a string representation of this piece, referred to in the code as a "key". |
java.lang.String |
template(java.lang.String key)
Provide a template string that can be used by the editor to guide the creation of a valid instance of this type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface us.asciiroth.client.core.Serializer |
|---|
create, getTag |
| Constructor Detail |
|---|
public TypeOnlySerializer()
| Method Detail |
|---|
public T example()
Serializer
example in interface Serializer<T extends Piece>public java.lang.String store(T piece)
Serializer
store in interface Serializer<T extends Piece>public java.lang.String template(java.lang.String key)
Serializer
template in interface Serializer<T extends Piece>
|
0.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
© 2009 Alx Dark