Class AbstractSpecificGraphToObjectDeserializer
java.lang.Object
ai.stapi.graphoperations.graphDeserializers.ogmDeserializer.specific.AbstractSpecificGraphToObjectDeserializer
- All Implemented Interfaces:
SpecificGraphToObjectDeserializer
- Direct Known Subclasses:
InterfaceGraphToObjectDeserializer,LeafGraphToObjectDeserializer,ListGraphToObjectDeserializer,MapGraphToObjectDeserializer,ObjectGraphToObjectDeserializer
public abstract class AbstractSpecificGraphToObjectDeserializer
extends Object
implements SpecificGraphToObjectDeserializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GenericGraphToObjectDeserializerprotected final GraphReaderprotected final GenericGraphMappingProviderprotected final GenericSerializationTypeByNodeProvider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpecificGraphToObjectDeserializer(GraphReader graphReader, GenericGraphToObjectDeserializer genericDeserializer, GenericSerializationTypeByNodeProvider serializationTypeProvider, GenericGraphMappingProvider mappingProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected ai.stapi.graph.traversableGraphElements.TraversableGraphElementconvertReadResultToTraversableGraphElement(ReadResult readResult) protected booleandoesGraphDescriptionDescribesGivenGraphElement(ai.stapi.graph.traversableGraphElements.TraversableGraphElement element, GraphDescription graphDescription) protected List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement>ensureElementsAreNodes(List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> traversedField, GraphDescription lastGraphDescription) protected ai.stapi.graph.traversableGraphElements.TraversableGraphElementloadElement(ai.stapi.identity.UniqueIdentifier graphElementId, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository graph) protected List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement>traverseMultipleGraphBranch(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph) protected ai.stapi.graph.traversableGraphElements.TraversableGraphElementtraverseSingleGraphBranch(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph) protected ObjecttraverseSingleGraphBranchToValue(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph, MissingTraversalTargetResolvingStrategy missingFieldStrategy) protected GraphDescriptionupdateLastGraphDescription(GraphDescription lastGraphDescription, GraphDescription lastlyTraversedDescription) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.stapi.graphoperations.graphDeserializers.ogmDeserializer.specific.SpecificGraphToObjectDeserializer
deserialize, deserialize, supports
-
Field Details
-
graphReader
-
genericDeserializer
-
serializationTypeProvider
-
mappingProvider
-
-
Constructor Details
-
AbstractSpecificGraphToObjectDeserializer
protected AbstractSpecificGraphToObjectDeserializer(GraphReader graphReader, GenericGraphToObjectDeserializer genericDeserializer, GenericSerializationTypeByNodeProvider serializationTypeProvider, GenericGraphMappingProvider mappingProvider)
-
-
Method Details
-
traverseSingleGraphBranch
protected ai.stapi.graph.traversableGraphElements.TraversableGraphElement traverseSingleGraphBranch(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph) -
traverseMultipleGraphBranch
protected List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> traverseMultipleGraphBranch(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph) -
traverseSingleGraphBranchToValue
protected Object traverseSingleGraphBranchToValue(ai.stapi.identity.UniqueIdentifier firstElementId, Declaration declaration, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextualGraph, MissingTraversalTargetResolvingStrategy missingFieldStrategy) -
doesGraphDescriptionDescribesGivenGraphElement
protected boolean doesGraphDescriptionDescribesGivenGraphElement(ai.stapi.graph.traversableGraphElements.TraversableGraphElement element, GraphDescription graphDescription) -
loadElement
protected ai.stapi.graph.traversableGraphElements.TraversableGraphElement loadElement(ai.stapi.identity.UniqueIdentifier graphElementId, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository graph) -
convertReadResultToTraversableGraphElement
protected ai.stapi.graph.traversableGraphElements.TraversableGraphElement convertReadResultToTraversableGraphElement(ReadResult readResult) -
updateLastGraphDescription
protected GraphDescription updateLastGraphDescription(GraphDescription lastGraphDescription, GraphDescription lastlyTraversedDescription) -
ensureElementsAreNodes
protected List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> ensureElementsAreNodes(List<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> traversedField, GraphDescription lastGraphDescription)
-