Class AccJsonObjectLikeBase
java.lang.Object
org.aksw.jenax.io.json.accumulator.AccJsonBase
org.aksw.jenax.io.json.accumulator.AccJsonObjectLikeBase
- All Implemented Interfaces:
AccJson,AccJsonNode,AccJsonObjectLike
- Direct Known Subclasses:
AccJsonFragmentBody,AccJsonObject
Common base class for accumulators of Objects and Fragments.
-
Field Summary
FieldsFields inherited from class org.aksw.jenax.io.json.accumulator.AccJsonBase
currentSourceNode, hasBegun, oldSourceNode, parent, skipOutput, value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAccJsonObjectLikeBase(Map<org.apache.jena.graph.Node, Integer> fieldIdToIndex, AccJsonEdge[] edgeAccs) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptContribution(RdfElement value, AccContextRdf context) For materialization: Whenever end() is called on a state with materialization enabled, then it passes its accumulated value to the parent using this method.voidaddEdge(AccJsonEdge subAcc) Internal method, use only for debugging/testingorg.aksw.commons.path.json.PathJsongetPath()Methods inherited from class org.aksw.jenax.io.json.accumulator.AccJsonBase
begin, end, ensureBegun, getInternalValue, getParent, getValue, hasBegun, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.io.json.accumulator.AccJson
begin, end, getInternalValue, getParent, getValue, hasBegun, setParent, transition
-
Field Details
-
fieldIdToIndex
-
edgeAccs
-
currentFieldIndex
protected int currentFieldIndex -
currentFieldAcc
-
-
Constructor Details
-
AccJsonObjectLikeBase
protected AccJsonObjectLikeBase(Map<org.apache.jena.graph.Node, Integer> fieldIdToIndex, AccJsonEdge[] edgeAccs)
-
-
Method Details
-
getPath
public org.aksw.commons.path.json.PathJson getPath() -
addEdge
Internal method, use only for debugging/testing -
acceptContribution
Description copied from interface:AccJsonFor materialization: Whenever end() is called on a state with materialization enabled, then it passes its accumulated value to the parent using this method.- Specified by:
acceptContributionin interfaceAccJson
-