com.dyuproject.protostuff.runtime
Class ObjectSchema
java.lang.Object
com.dyuproject.protostuff.runtime.ObjectSchema
- All Implemented Interfaces:
- Schema<java.lang.Object>
public abstract class ObjectSchema
- extends java.lang.Object
- implements Schema<java.lang.Object>
A schema for dynamic types (fields where the type is Object).
- Author:
- David Yu
- Date created:
- Feb 1, 2011
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
strategy
public final IdStrategy strategy
pipeSchema
protected final Pipe.Schema<java.lang.Object> pipeSchema
ObjectSchema
public ObjectSchema(IdStrategy strategy)
getFieldName
public java.lang.String getFieldName(int number)
- Specified by:
getFieldName in interface Schema<java.lang.Object>
getFieldNumber
public int getFieldNumber(java.lang.String name)
- Specified by:
getFieldNumber in interface Schema<java.lang.Object>
isInitialized
public boolean isInitialized(java.lang.Object owner)
- Specified by:
isInitialized in interface Schema<java.lang.Object>
messageFullName
public java.lang.String messageFullName()
- Specified by:
messageFullName in interface Schema<java.lang.Object>
messageName
public java.lang.String messageName()
- Specified by:
messageName in interface Schema<java.lang.Object>
newMessage
public java.lang.Object newMessage()
- Specified by:
newMessage in interface Schema<java.lang.Object>
typeClass
public java.lang.Class<? super java.lang.Object> typeClass()
- Specified by:
typeClass in interface Schema<java.lang.Object>
mergeFrom
public void mergeFrom(Input input,
java.lang.Object owner)
throws java.io.IOException
- Specified by:
mergeFrom in interface Schema<java.lang.Object>
- Throws:
java.io.IOException
writeTo
public void writeTo(Output output,
java.lang.Object value)
throws java.io.IOException
- Specified by:
writeTo in interface Schema<java.lang.Object>
- Throws:
java.io.IOException
setValue
protected abstract void setValue(java.lang.Object value,
java.lang.Object owner)
Copyright © 2009-2012. All Rights Reserved.