public class DefaultValueSerializerContext extends Object implements IValueSerializerContext
IValueSerializerContext that should be used in a GraphML context.| Constructor and Description |
|---|
DefaultValueSerializerContext() |
| Modifier and Type | Method and Description |
|---|---|
ValueSerializer |
getValueSerializerFor(PropertyInfo descriptor)
Gets the value serializer for a specific
PropertyInfo. |
ValueSerializer |
getValueSerializerFor(Type type)
Gets the value serializer for a specific type.
|
Object |
lookup(Class serviceType)
Returns an instance that implements the given type or
null. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDictionaryLookup, createDynamic, createSingle, createSingle, createWrapped, lookup, lookup, safeLookuppublic final ValueSerializer getValueSerializerFor(PropertyInfo descriptor)
IValueSerializerContextPropertyInfo.getValueSerializerFor in interface IValueSerializerContextdescriptor - The descriptor of the property.null.public ValueSerializer getValueSerializerFor(Type type)
IValueSerializerContextgetValueSerializerFor in interface IValueSerializerContexttype - The type to obtain a serializer for.null.public Object lookup(Class serviceType)
ILookupnull.
Typically, this method will be called in order to obtain a different view or
aspect of the current instance. This is quite similar to casting or using
a super type or interface of this instance, but is not limited to inheritance or
compile time constraints. An instance implementing this method is not
required to return non-null implementations for the types, nor does it
have to return the same instance any time. Also it depends on the
type and context whether the instance returned stays up to date or needs to
be reobtained for subsequent use.