use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getFirstObservationDateTargetProperty.
private ListMultimap<String, Property> getFirstObservationDateTargetProperty() {
ChildDefinition<?> lcvObsChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(LANDCOVER_NS, "landCoverObservation"));
assertNotNull(lcvObsChildDef);
ChildDefinition<?> lcvObsFeatureTypeChildDef = DefinitionUtil.getChild(lcvObsChildDef, new QName(LANDCOVER_NS, "LandCoverObservation"));
assertNotNull(lcvObsFeatureTypeChildDef);
ChildDefinition<?> obsDateChildDef = DefinitionUtil.getChild(lcvObsFeatureTypeChildDef, new QName(LANDCOVER_NS, "observationDate"));
assertNotNull(obsDateChildDef);
List<ChildDefinition<?>> childDefs = Arrays.asList(lcvObsChildDef, lcvObsFeatureTypeChildDef, obsDateChildDef);
List<Integer> contextNames = Arrays.asList(0);
return createTargetProperty(landCoverUnitType, childDefs, contextNames, null);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getDescriptionNilReasonTargetProperty.
private ListMultimap<String, Property> getDescriptionNilReasonTargetProperty() {
ChildDefinition<?> description = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "description"));
assertNotNull(description);
ChildDefinition<?> nilReason = DefinitionUtil.getChild(description, new QName(GML_NIL_REASON));
assertNotNull(nilReason);
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(description);
childDefs.add(nilReason);
return createTargetProperty(childDefs);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getGmlIdTargetProperty.
private ListMultimap<String, Property> getGmlIdTargetProperty() {
ChildDefinition<?> gmlIdChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "id"));
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(gmlIdChildDef);
return createTargetProperty(childDefs);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getBeginLifespanTargetProperty.
private ListMultimap<String, Property> getBeginLifespanTargetProperty() {
ChildDefinition<?> beginLifeSpan = DefinitionUtil.getChild(landCoverUnitType, new QName(LANDCOVER_NS, "beginLifespanVersion"));
assertNotNull(beginLifeSpan);
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(beginLifeSpan);
return createTargetProperty(childDefs);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getDescriptionTargetProperty.
private ListMultimap<String, Property> getDescriptionTargetProperty() {
ChildDefinition<?> descriptionChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "description"));
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(descriptionChildDef);
return createTargetProperty(childDefs);
}
Aggregations