use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getLandCoverDatasetGeometryGmlIdTargetProperty.
private ListMultimap<String, Property> getLandCoverDatasetGeometryGmlIdTargetProperty() {
List<ChildDefinition<?>> childDefs = getLandCoverDatasetGeometryPath();
ChildDefinition<?> gmlId = DefinitionUtil.getChild(childDefs.get(childDefs.size() - 1), new QName(GML_NS, "id"));
childDefs.add(gmlId);
return createTargetProperty(childDefs);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getLandCoverUnitGeometryGmlIdTargetProperty.
private ListMultimap<String, Property> getLandCoverUnitGeometryGmlIdTargetProperty() {
List<ChildDefinition<?>> childDefs = getLandCoverUnitGeometryPath();
ChildDefinition<?> geometry = childDefs.get(childDefs.size() - 1);
ChildDefinition<?> abstractGeometry = DefinitionUtil.getChild(geometry, new QName("http://www.opengis.net/gml/3.2/AbstractGeometry", "choice"));
assertNotNull(abstractGeometry);
ChildDefinition<?> multiSurface = DefinitionUtil.getChild(abstractGeometry, new QName(GML_NS, "MultiSurface"));
assertNotNull(multiSurface);
ChildDefinition<?> gmlId = DefinitionUtil.getChild(multiSurface, new QName(GML_NS, "id"));
assertNotNull(gmlId);
childDefs.add(abstractGeometry);
childDefs.add(multiSurface);
childDefs.add(gmlId);
return createTargetProperty(childDefs);
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getLandCoverUnitGeometryPath.
private List<ChildDefinition<?>> getLandCoverUnitGeometryPath() {
ChildDefinition<?> geometry = DefinitionUtil.getChild(landCoverUnitType, new QName(LANDCOVER_NS, "geometry"));
assertNotNull(geometry);
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(geometry);
return childDefs;
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getLandCoverDatasetGeometryPath.
private List<ChildDefinition<?>> getLandCoverDatasetGeometryPath() {
ChildDefinition<?> extent = DefinitionUtil.getChild(landCoverDatasetType, new QName(LANDCOVER_NS, "extent"));
assertNotNull(extent);
ChildDefinition<?> exExtent = DefinitionUtil.getChild(extent, new QName(GMD_NS, "EX_Extent"));
assertNotNull(exExtent);
ChildDefinition<?> geographicElement = DefinitionUtil.getChild(exExtent, new QName(GMD_NS, "geographicElement"));
assertNotNull(geographicElement);
ChildDefinition<?> exGeographicExtentChoice = DefinitionUtil.getChild(geographicElement, new QName("http://www.isotc211.org/2005/gmd/AbstractEX_GeographicExtent", "choice"));
assertNotNull(exGeographicExtentChoice);
ChildDefinition<?> exBoundingPolygon = DefinitionUtil.getChild(exGeographicExtentChoice, new QName(GMD_NS, "EX_BoundingPolygon"));
assertNotNull(exBoundingPolygon);
ChildDefinition<?> polygon = DefinitionUtil.getChild(exBoundingPolygon, new QName(GMD_NS, "polygon"));
assertNotNull(polygon);
ChildDefinition<?> abstractGeometry = DefinitionUtil.getChild(polygon, new QName("http://www.opengis.net/gml/3.2/AbstractGeometry", "choice"));
assertNotNull(abstractGeometry);
ChildDefinition<?> multiSurface = DefinitionUtil.getChild(abstractGeometry, new QName(GML_NS, "MultiSurface"));
assertNotNull(multiSurface);
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(extent);
childDefs.add(exExtent);
childDefs.add(geographicElement);
childDefs.add(exGeographicExtentChoice);
childDefs.add(exBoundingPolygon);
childDefs.add(polygon);
childDefs.add(abstractGeometry);
childDefs.add(multiSurface);
return childDefs;
}
use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.
the class AppSchemaMappingTest method getCodeSpaceTargetProperty.
private ListMultimap<String, Property> getCodeSpaceTargetProperty() {
ChildDefinition<?> nameChildDef = DefinitionUtil.getChild(landCoverDatasetType, new QName(GML_NS, "name"));
ChildDefinition<?> codeSpaceChildDef = DefinitionUtil.getChild(nameChildDef, new QName("codeSpace"));
List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
childDefs.add(nameChildDef);
childDefs.add(codeSpaceChildDef);
return createTargetProperty(childDefs);
}
Aggregations