Search in sources :

Example 11 with TTLList

use of org.hl7.fhir.dstu3.utils.formats.Turtle.TTLList in project org.hl7.fhir.core by hapifhir.

the class TurtleParser method parseChild.

private void parseChild(Turtle src, TTLComplex object, Element context, Set<String> processed, Property property, String path, String name) throws FHIRException {
    processed.add(name);
    String npath = path + "/" + property.getName();
    TTLObject e = object.getPredicates().get(FHIR_URI_BASE + name);
    if (e == null)
        return;
    if (property.isList() && (e instanceof TTLList)) {
        TTLList arr = (TTLList) e;
        for (TTLObject am : arr.getList()) {
            parseChildInstance(src, npath, object, context, property, name, am);
        }
    } else {
        parseChildInstance(src, npath, object, context, property, name, e);
    }
}
Also used : TTLObject(org.hl7.fhir.utilities.turtle.Turtle.TTLObject) TTLList(org.hl7.fhir.utilities.turtle.Turtle.TTLList)

Example 12 with TTLList

use of org.hl7.fhir.dstu3.utils.formats.Turtle.TTLList in project org.hl7.fhir.core by hapifhir.

the class TurtleParser method parseChild.

private void parseChild(Turtle src, TTLComplex object, Element context, Set<String> processed, Property property, String path, String name) throws FHIRException {
    processed.add(name);
    String npath = path + "/" + property.getName();
    TTLObject e = object.getPredicates().get(FHIR_URI_BASE + name);
    if (e == null)
        return;
    if (property.isList() && (e instanceof TTLList)) {
        TTLList arr = (TTLList) e;
        for (TTLObject am : arr.getList()) {
            parseChildInstance(src, npath, object, context, property, name, am);
        }
    } else {
        parseChildInstance(src, npath, object, context, property, name, e);
    }
}
Also used : TTLObject(org.hl7.fhir.utilities.turtle.Turtle.TTLObject) TTLList(org.hl7.fhir.utilities.turtle.Turtle.TTLList)

Aggregations

TTLList (org.hl7.fhir.utilities.turtle.Turtle.TTLList)6 TTLObject (org.hl7.fhir.utilities.turtle.Turtle.TTLObject)6 FHIRFormatError (org.hl7.fhir.exceptions.FHIRFormatError)4 TTLURL (org.hl7.fhir.utilities.turtle.Turtle.TTLURL)4 TTLList (org.hl7.fhir.dstu3.utils.formats.Turtle.TTLList)3 TTLObject (org.hl7.fhir.dstu3.utils.formats.Turtle.TTLObject)3 TTLList (org.hl7.fhir.r4.utils.formats.Turtle.TTLList)3 TTLObject (org.hl7.fhir.r4.utils.formats.Turtle.TTLObject)3 SpecialElement (org.hl7.fhir.dstu3.elementmodel.Element.SpecialElement)2 StructureDefinition (org.hl7.fhir.dstu3.model.StructureDefinition)2 TTLURL (org.hl7.fhir.dstu3.utils.formats.Turtle.TTLURL)2 SpecialElement (org.hl7.fhir.r4.elementmodel.Element.SpecialElement)2 StructureDefinition (org.hl7.fhir.r4.model.StructureDefinition)2 TTLURL (org.hl7.fhir.r4.utils.formats.Turtle.TTLURL)2 SpecialElement (org.hl7.fhir.r4b.elementmodel.Element.SpecialElement)2 NamedElement (org.hl7.fhir.r4b.elementmodel.ParserBase.NamedElement)2 StructureDefinition (org.hl7.fhir.r4b.model.StructureDefinition)2 SpecialElement (org.hl7.fhir.r5.elementmodel.Element.SpecialElement)2 NamedElement (org.hl7.fhir.r5.elementmodel.ParserBase.NamedElement)2 StructureDefinition (org.hl7.fhir.r5.model.StructureDefinition)2