com.dyuproject.protostuff.runtime
Class MappedSchema.Field<T>
java.lang.Object
com.dyuproject.protostuff.runtime.MappedSchema.Field<T>
- Enclosing class:
- MappedSchema<T>
public abstract static class MappedSchema.Field<T>
- extends java.lang.Object
Represents a field of a message/pojo.
|
Method Summary |
protected abstract void |
mergeFrom(Input input,
T message)
Reads the field value into the message. |
protected abstract void |
transfer(Pipe pipe,
Input input,
Output output,
boolean repeated)
Transfer the input field to the output field. |
protected abstract void |
writeTo(Output output,
T message)
Writes the value of a field to the output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
public final WireFormat.FieldType type
number
public final int number
name
public final java.lang.String name
repeated
public final boolean repeated
groupFilter
public final int groupFilter
MappedSchema.Field
public MappedSchema.Field(WireFormat.FieldType type,
int number,
java.lang.String name,
boolean repeated,
Tag tag)
MappedSchema.Field
public MappedSchema.Field(WireFormat.FieldType type,
int number,
java.lang.String name,
Tag tag)
writeTo
protected abstract void writeTo(Output output,
T message)
throws java.io.IOException
- Writes the value of a field to the
output.
- Throws:
java.io.IOException
mergeFrom
protected abstract void mergeFrom(Input input,
T message)
throws java.io.IOException
- Reads the field value into the
message.
- Throws:
java.io.IOException
transfer
protected abstract void transfer(Pipe pipe,
Input input,
Output output,
boolean repeated)
throws java.io.IOException
- Transfer the input field to the output field.
- Throws:
java.io.IOException
Copyright © 2009-2014. All Rights Reserved.