|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dyuproject.protostuff.MapSchema<java.lang.String,V>
com.dyuproject.protostuff.StringMapSchema<V>
public class StringMapSchema<V>
A schema for a Map with String keys.
The key and value can be null (depending on the particular map impl).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.dyuproject.protostuff.MapSchema |
|---|
MapSchema.MapWrapper<K,V>, MapSchema.MessageFactories, MapSchema.MessageFactory |
| Field Summary | |
|---|---|
static StringMapSchema<java.lang.String> |
VALUE_STRING
The schema for Map |
Pipe.Schema<V> |
vPipeSchema
The pipe schema of the message value. |
Schema<V> |
vSchema
The schema of the message value. |
| Fields inherited from class com.dyuproject.protostuff.MapSchema |
|---|
FIELD_NAME_ENTRY, FIELD_NAME_KEY, FIELD_NAME_VALUE, messageFactory, pipeSchema |
| Constructor Summary | |
|---|---|
StringMapSchema(Schema<V> vSchema)
|
|
StringMapSchema(Schema<V> vSchema,
Pipe.Schema<V> vPipeSchema)
|
|
| Method Summary | |
|---|---|
protected void |
putValueFrom(Input input,
MapSchema.MapWrapper<java.lang.String,V> wrapper,
java.lang.String key)
Puts the entry(key and value), obtained from the input, into the MapWrapper. |
protected java.lang.String |
readKeyFrom(Input input,
MapSchema.MapWrapper<java.lang.String,V> wrapper)
Reads the key from the input. |
protected void |
transferKey(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the key from the input to the output. |
protected void |
transferValue(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the value from the input to the output. |
protected void |
writeKeyTo(Output output,
int fieldNumber,
java.lang.String value,
boolean repeated)
Writes the key to the output. |
protected void |
writeValueTo(Output output,
int fieldNumber,
V value,
boolean repeated)
Writes the value to the output. |
| Methods inherited from class com.dyuproject.protostuff.MapSchema |
|---|
getFieldName, getFieldNumber, isInitialized, mergeFrom, messageFullName, messageName, newMessage, typeClass, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringMapSchema<java.lang.String> VALUE_STRING
public final Schema<V> vSchema
public final Pipe.Schema<V> vPipeSchema
| Constructor Detail |
|---|
public StringMapSchema(Schema<V> vSchema)
public StringMapSchema(Schema<V> vSchema,
Pipe.Schema<V> vPipeSchema)
| Method Detail |
|---|
protected final java.lang.String readKeyFrom(Input input,
MapSchema.MapWrapper<java.lang.String,V> wrapper)
throws java.io.IOException
MapSchema
readKeyFrom in class MapSchema<java.lang.String,V>java.io.IOException
protected void putValueFrom(Input input,
MapSchema.MapWrapper<java.lang.String,V> wrapper,
java.lang.String key)
throws java.io.IOException
MapSchemaMapWrapper.
putValueFrom in class MapSchema<java.lang.String,V>java.io.IOException
protected final void writeKeyTo(Output output,
int fieldNumber,
java.lang.String value,
boolean repeated)
throws java.io.IOException
MapSchema
writeKeyTo in class MapSchema<java.lang.String,V>java.io.IOException
protected void writeValueTo(Output output,
int fieldNumber,
V value,
boolean repeated)
throws java.io.IOException
MapSchema
writeValueTo in class MapSchema<java.lang.String,V>java.io.IOException
protected void transferKey(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
throws java.io.IOException
MapSchema
transferKey in class MapSchema<java.lang.String,V>java.io.IOException
protected void transferValue(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
throws java.io.IOException
MapSchema
transferValue in class MapSchema<java.lang.String,V>java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||