public class GraphMLParseValueSerializerContext extends Object implements IValueSerializerContext, com.yworks.yfiles.graphml.IValueSerializerOwnerContext
IValueSerializerContext
that should be used in a GraphML parse context.Constructor and Description |
---|
GraphMLParseValueSerializerContext(IParseContext context)
Creates a new instance that wraps .
|
Modifier and Type | Method and Description |
---|---|
Object |
getOwner()
The parent object if such an object exists currently.
|
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 the wrapped
IParseContext for this serviceType, otherwise . |
void |
setOwner(Object value)
The parent object if such an object exists currently.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDictionaryLookup, createDynamic, createSingle, createSingle, createWrapped, lookup, lookup, safeLookup
public GraphMLParseValueSerializerContext(IParseContext context)
context
context
- The current write contextpublic final Object getOwner()
getOwner
in interface com.yworks.yfiles.graphml.IValueSerializerOwnerContext
setOwner(Object)
public final ValueSerializer getValueSerializerFor(PropertyInfo descriptor)
IValueSerializerContext
PropertyInfo
.getValueSerializerFor
in interface IValueSerializerContext
descriptor
- The descriptor of the property.null
.public ValueSerializer getValueSerializerFor(Type type)
IValueSerializerContext
getValueSerializerFor
in interface IValueSerializerContext
type
- The type to obtain a serializer for.null
.public Object lookup(Class serviceType)
IParseContext
for this serviceType, otherwise .null
lookup
in interface ILookup
serviceType
- The serviceTypeIParseContext
for this serviceType, otherwise null
public final void setOwner(Object value)
value
- The Owner to set.getOwner()