com.dyuproject.protostuff.runtime
Class ObjectSchema

java.lang.Object
  extended by com.dyuproject.protostuff.runtime.PolymorphicSchema
      extended by com.dyuproject.protostuff.runtime.ObjectSchema
All Implemented Interfaces:
Schema<java.lang.Object>

public abstract class ObjectSchema
extends PolymorphicSchema

A schema for dynamic types (fields where the type is Object).

Author:
David Yu
Date created:
Feb 1, 2011

Nested Class Summary
 
Nested classes/interfaces inherited from class com.dyuproject.protostuff.runtime.PolymorphicSchema
PolymorphicSchema.Factory, PolymorphicSchema.Handler
 
Field Summary
protected  Pipe.Schema<java.lang.Object> pipeSchema
           
 
Fields inherited from class com.dyuproject.protostuff.runtime.PolymorphicSchema
strategy
 
Constructor Summary
ObjectSchema(IdStrategy strategy)
           
 
Method Summary
 java.lang.String getFieldName(int number)
           
 int getFieldNumber(java.lang.String name)
           
 Pipe.Schema<java.lang.Object> getPipeSchema()
          The pipe schema associated with this schema.
 void mergeFrom(Input input, java.lang.Object owner)
           
 java.lang.String messageFullName()
           
 java.lang.String messageName()
           
 void writeTo(Output output, java.lang.Object value)
           
 
Methods inherited from class com.dyuproject.protostuff.runtime.PolymorphicSchema
isInitialized, newMessage, setValue, typeClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pipeSchema

protected final Pipe.Schema<java.lang.Object> pipeSchema
Constructor Detail

ObjectSchema

public ObjectSchema(IdStrategy strategy)
Method Detail

getPipeSchema

public Pipe.Schema<java.lang.Object> getPipeSchema()
Description copied from class: PolymorphicSchema
The pipe schema associated with this schema.

Specified by:
getPipeSchema in class PolymorphicSchema

getFieldName

public java.lang.String getFieldName(int number)

getFieldNumber

public int getFieldNumber(java.lang.String name)

messageFullName

public java.lang.String messageFullName()

messageName

public java.lang.String messageName()

mergeFrom

public void mergeFrom(Input input,
                      java.lang.Object owner)
               throws java.io.IOException
Throws:
java.io.IOException

writeTo

public void writeTo(Output output,
                    java.lang.Object value)
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009-2014. All Rights Reserved.